/* ============================================
    HEAD COACH SECTION STYLES
    File: static/css/public/head-coach.css

    Changes from original:
    - FIX: .head-coach-card-column padding 6rem → 2rem (was causing card overflow on mobile)
    - FIX: .head-coach-intro text-align + border handled per breakpoint (was inline style)
    - FIX: .philosophy-connection max-width moved from inline style to CSS
    - FIX: Card column shows first on mobile via order: -1
    - FIX: Added prefers-reduced-motion (parity with holo-cards.css)
    - REMOVED: Dead light-theme fallback selectors (never matched template structure)
   ============================================ */

/* Head Coach Section */
.head-coach-section {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08) 0%, rgba(255, 255, 255, 0.05) 100%);
    padding: 4rem 0;
}

.head-coach-container {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 4rem;
    align-items: start;
}

/* Card Column
   FIX: Was padding: 6rem — caused card overflow on mobile.
   At 375px viewport, 6rem padding (192px total) left only ~183px for a 260px card. */
.head-coach-card-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
    justify-content: center;
}

.head-coach-card-wrapper {
    position: relative;
}

/* Make head coach card distinctive */
/* FIX: Shadows must target __inner (which has border-radius: 18px),
   NOT .holo-card (which is just a transform container with no radius).
   This is why the other coaches' cards had no corner issue — their
   shadows are all on __inner. */
.head-coach-card-wrapper .holo-card {
    transform: scale(1.02);
    transition: all 0.3s ease;
}

.head-coach-card-wrapper .holo-card:hover {
    transform: scale(1.03) translateY(-5px);
}

.head-coach-card-wrapper .holo-card__inner {
    box-shadow:
        0 0 0 3px var(--glow),
        0 0 30px rgba(255, 215, 0, 0.3),
        0 10px 40px rgba(0, 0, 0, 0.2);
}

.head-coach-card-wrapper .holo-card:hover .holo-card__inner {
    box-shadow:
        0 0 0 3px var(--glow),
        0 0 50px rgba(255, 215, 0, 0.5),
        0 15px 50px rgba(0, 0, 0, 0.3);
}

/* Content Column */
.head-coach-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding-top: 1rem;
}

/* Intro Block
   FIX: text-align and border now handled per breakpoint instead of inline style.
   Desktop: left border + left-aligned text (border visually anchors the block).
   Mobile: bottom border + centered text (better for narrow single-column). */
.head-coach-intro {
    border-left: 4px solid rgba(255, 215, 0, 0.6);
    padding-left: 1.5rem;
    text-align: left;
    margin-bottom: 3rem;
}

.head-coach-name {
    font-size: 2.1rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.head-coach-title {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    margin: 0 0 .75rem 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* FIX: max-width moved here from inline style="max-width: 800px; margin: 1.5rem auto 0;" */
.philosophy-connection {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: .75rem 0 0;
}

.philosophy-connection strong {
    color: #FFD700;
    font-weight: 600;
}

/* Achievement Sections */
.achievement-grid {
    display: grid;
    gap: .75rem;
}

.achievement-block h3 {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: .5rem;
    color: #FFD700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.achievement-block h3::before {
    content: "▸";
    color: rgba(255, 215, 0, 0.8);
    font-size: 1.2rem;
}

.achievement-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.achievement-list li {
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.achievement-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: rgba(255, 215, 0, 0.8);
    font-weight: bold;
    font-size: 1.2rem;
}

.achievement-list li strong {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

/* Qualification Badges */
.qualification-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.qualification-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 215, 0, 0.08) 100%);
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 8px;
    padding: 0.5rem .75rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.qualification-badge::before {
    content: "🏆";
    font-size: 1.1rem;
}

.qualification-badge:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25) 0%, rgba(255, 215, 0, 0.15) 100%);
    border-color: rgba(255, 215, 0, 0.6);
    transform: translateY(-2px);
    color: #fff;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Tablet and below */
@media (max-width: 1200px) {
    .head-coach-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* FIX: Card appears first on mobile for visual impact */
    .head-coach-card-column {
        order: -1;
        padding: 1rem;
    }

    .head-coach-card-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }

    .head-coach-content {
        padding-top: 0;
    }

    /* Center the intro text when single-column */
    .head-coach-intro {
        text-align: center;
    }

    .philosophy-connection {
        margin: .75rem auto 0;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .head-coach-section {
        padding: 3rem 0;
    }

    .head-coach-container {
        gap: 2rem;
    }

    /* FIX: Remove padding so card uses full container width */
    .head-coach-card-column {
        padding: 0;
    }

    .head-coach-name {
        font-size: 2rem;
    }

    /* FIX: Switch from left border to bottom border on mobile.
       Left border + centered text looks broken on narrow viewports. */
    .head-coach-intro {
        border-left: none;
        padding-left: 0;
        text-align: center;
        border-bottom: 3px solid rgba(255, 215, 0, 0.6);
        padding-bottom: 1.5rem;
    }

    .philosophy-connection {
        font-size: 1rem;
    }
}

/* Small mobile */
@media (max-width: 640px) {
    .head-coach-name {
        font-size: 1.75rem;
    }

    .qualification-badges {
        flex-direction: column;
    }

    .qualification-badge {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   REDUCED MOTION
   FIX: Added for parity with holo-cards.css
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .qualification-badge,
    .head-coach-card-wrapper .holo-card {
        transition: none;
    }
}
