/* ==========================================================================
   Tournament Event Landing Page (player-facing signup)
   Used by page-tournament-event.php and mockups
   ========================================================================== */

.te-page {
    background-color: #f8f8f8;
}

/* Password gate (custom templates must check post_password_required) */
.te-password-gate {
    padding: 4rem 0;
    min-height: 50vh;
}

.te-password-box {
    max-width: 480px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.te-password-title {
    font-family: 'Faculty Glyphic', sans-serif;
    font-size: 1.75rem;
    color: #333;
    margin: 0 0 0.5rem;
}

.te-password-intro {
    color: #555;
    margin: 0 0 1.5rem;
    line-height: 1.5;
}

.te-password-box form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.te-password-box label {
    font-weight: 600;
    color: #333;
}

.te-password-box input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

.te-password-box input[type="password"]:focus {
    outline: none;
    border-color: #006400;
}

.te-password-box input[type="submit"] {
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background-color: #006400;
    color: white;
    transition: background-color 0.3s ease;
}

.te-password-box input[type="submit"]:hover {
    background-color: #005200;
}

/* Hero meta (date, type) */
.te-hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin: 0 0 1.5rem;
}

.te-hero-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.05rem;
    opacity: 0.95;
}

.te-hero-meta-item .dashicons {
    color: #B59410;
    font-size: 22px;
    width: 22px;
    height: 22px;
}

/* Event details stat cards */
.te-details {
    padding: 3rem 0;
}

.te-details-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.te-detail-card {
    background: white;
    padding: 1.75rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
    border-top: 3px solid #006400;
}

.te-detail-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #B59410;
    margin-bottom: 0.5rem;
}

.te-detail-value {
    display: block;
    font-family: 'Faculty Glyphic', sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.te-detail-note {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.35rem;
}

/* Day-of schedule */
.te-schedule {
    background: white;
    padding: 4rem 0;
}

.te-schedule-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

.te-schedule-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
}

.te-schedule-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1.25rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid #eee;
}

.te-schedule-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.te-schedule-time {
    font-family: 'Faculty Glyphic', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #006400;
}

.te-schedule-event {
    font-size: 1.05rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.25rem;
}

.te-schedule-desc {
    margin: 0;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

.te-schedule-aside {
    background: #1a472a;
    color: white;
    padding: 2rem;
    border-radius: 8px;
}

.te-schedule-aside-title {
    font-family: 'Faculty Glyphic', sans-serif;
    font-size: 1.35rem;
    margin: 0 0 1rem;
}

.te-schedule-aside-list {
    margin: 0;
    padding-left: 1.25rem;
    line-height: 1.7;
    opacity: 0.95;
}

/* Highlights */
.te-highlights {
    padding: 4rem 0;
}

.te-highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.te-highlight-card {
    background: white;
    padding: 1.75rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
}

.te-highlight-icon {
    display: block;
    width: 48px;
    height: 48px;
    margin-bottom: 0.75rem;
    font-size: 48px;
    line-height: 1;
    color: #006400;
}

.te-highlight-title {
    font-family: 'Faculty Glyphic', sans-serif;
    font-size: 1.15rem;
    color: #333;
    margin: 0 0 0.5rem;
}

.te-highlight-text {
    margin: 0;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.55;
}

/* Registration section */
.te-register {
    padding: 4rem 0;
}

.te-register-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
    align-items: start;
}

.te-contact-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    scroll-margin-top: 72px;
}

.te-contact-list {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
}

.te-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    color: #555;
    line-height: 1.5;
}

.te-contact-list .dashicons {
    color: #006400;
    font-size: 24px;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.te-contact-list a {
    color: #006400;
    text-decoration: none;
    font-weight: 600;
}

.te-contact-list a:hover {
    text-decoration: underline;
}

/* Mock CF7-style form */
.te-register-box {
    background: #1a472a;
    color: white;
    padding: 2rem;
    border-radius: 8px;
    scroll-margin-top: 72px;
}

.te-register-box .tournament-eyebrow-light {
    color: rgba(255, 255, 255, 0.85);
}

.te-register-title {
    font-family: 'Faculty Glyphic', sans-serif;
    font-size: 1.5rem;
    margin: 0 0 0.5rem;
}

.te-register-intro {
    margin: 0 0 1.5rem;
    opacity: 0.95;
    line-height: 1.5;
    font-size: 0.95rem;
}

.te-form-mock {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.te-form-name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.te-form-mock label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.te-form-mock input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    box-sizing: border-box;
}

.te-form-mock input:focus {
    outline: none;
    border-color: #B59410;
    box-shadow: 0 0 0 2px rgba(181, 148, 16, 0.3);
}

.te-payment-note {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(181, 148, 16, 0.2);
    border: 1px solid rgba(181, 148, 16, 0.4);
    border-radius: 6px;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 0.25rem;
}

.te-payment-note .dashicons {
    color: #B59410;
    font-size: 22px;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-top: 1px;
}

.te-payment-note strong {
    color: #fff;
}

.te-form-mock .tournament-btn {
    margin-top: 0.5rem;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.te-form-mock .tournament-btn-primary {
    background-color: #B59410;
}

.te-form-mock .tournament-btn-primary:hover {
    background-color: #9e7f0d;
}

.te-form-placeholder-tag {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    opacity: 0.75;
    font-style: italic;
}

/* Utility spacing (replaces inline styles in template) */
.te-section-spaced {
    margin-top: 2rem;
}

.te-section-spaced-sm {
    margin-top: 1.5rem;
}

.te-section-divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 2rem 0;
}

.te-contact-heading {
    font-size: 1.35rem;
}

/* Contact Form 7 inside registration box */
.te-form-wrap .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.te-form-wrap label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: #fff;
}

.te-form-wrap input[type="text"],
.te-form-wrap input[type="email"],
.te-form-wrap input[type="tel"],
.te-form-wrap input[type="number"],
.te-form-wrap textarea,
.te-form-wrap select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    box-sizing: border-box;
}

.te-form-wrap input:focus,
.te-form-wrap textarea:focus,
.te-form-wrap select:focus {
    outline: none;
    border-color: #B59410;
    box-shadow: 0 0 0 2px rgba(181, 148, 16, 0.3);
}

.te-form-wrap .wpcf7-submit,
.te-form-wrap input[type="submit"] {
    display: inline-block;
    width: 100%;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background-color: #B59410;
    color: white;
    transition: all 0.3s ease;
}

.te-form-wrap .wpcf7-submit:hover,
.te-form-wrap input[type="submit"]:hover {
    background-color: #9e7f0d;
}

.te-form-wrap .wpcf7-not-valid-tip {
    color: #ffc9c9;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.te-form-wrap .wpcf7-response-output {
    margin: 0.5rem 0 0;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.te-form-wrap + .te-payment-note {
    margin-top: 1rem;
}

/* Player event cards on main Tournaments page */
.te-player-events {
    padding: 4rem 0;
}

.te-player-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.te-player-event-card {
    display: flex;
    flex-direction: column;
    background: white;
    padding: 1.75rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.te-player-event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    color: inherit;
}

.te-player-event-badge {
    display: inline-block;
    align-self: flex-start;
    padding: 4px 12px;
    background-color: #B59410;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.te-player-event-title {
    font-family: 'Faculty Glyphic', sans-serif;
    font-size: 1.25rem;
    color: #333;
    margin: 0 0 0.5rem;
}

.te-player-event-date {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.95rem;
    color: #006400;
    font-weight: 600;
    margin: 0 0 0.75rem;
}

.te-player-event-date .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.te-player-event-excerpt {
    margin: 0 0 1.25rem;
    color: #555;
    line-height: 1.55;
    font-size: 0.95rem;
    flex-grow: 1;
}

.te-player-event-cta {
    align-self: flex-start;
    margin-top: auto;
}

/* Sticky register bar on scroll (optional visual cue) */
.te-quick-nav {
    background: white;
    border-bottom: 1px solid #eee;
    padding: 0.75rem 0;
    position: sticky;
    top: 45px;
    z-index: 50;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.te-quick-nav-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.te-quick-nav-title {
    font-family: 'Faculty Glyphic', sans-serif;
    font-size: 1.1rem;
    color: #333;
    margin: 0;
}

.te-quick-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.te-quick-nav-links a {
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s;
}

.te-quick-nav-links a:hover {
    color: #006400;
}

/* Responsive */
@media (max-width: 992px) {
    .te-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .te-schedule-grid,
    .te-register-grid,
    .te-highlights-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .te-details-grid {
        grid-template-columns: 1fr;
    }

    .te-form-name-row {
        grid-template-columns: 1fr;
    }

    .te-contact-card,
    .te-register-box {
        scroll-margin-top: 48px;
    }

    .te-schedule-item {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .te-quick-nav-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .te-quick-nav-links {
        gap: 0.75rem 1rem;
    }
}
