/* ==========================================
   1. CORE CUSTOM COLOR PROPERTIES & THEMES
   ========================================== */
.light-theme {
    --clr-purple: #98239B;
    --clr-berry: #B23E70;
    --clr-coral: #C95A4B;
    --clr-orange: #E97620;
    --clr-gold: #FF9700;
    --bg-main: #F0F4FA;
    --bg-card: #FFFFFF;
    --bg-footer: #E8EDF5;
    --text-dark: #1E293B;
    --text-muted: #64748B;
    --border-color: #D1D9EB;
    --card-hover-bg: #F5F7FC;
    --card-purple-bg: #F8ECF8;
    --card-orange-bg: #FFF1E5;
    --card-berry-bg: #F9EAF0;
    --tooltip-bg: #1E293B;
    --tooltip-text: #FFFFFF;
}

.dark-theme {
    --clr-purple: #B52DB8;
    --clr-berry: #C95380;
    --clr-coral: #D66A5A;
    --clr-orange: #F1842A;
    --clr-gold: #FFA31A;
    --bg-main: #0D1117;
    --bg-card: #161B26;
    --bg-footer: #101620;
    --text-dark: #E2E8F0;
    --text-muted: #94A3B8;
    --border-color: #2A3350;
    --card-hover-bg: #252D42;
    --card-purple-bg: #351D38;
    --card-orange-bg: #382218;
    --card-berry-bg: #381E2B;
    --tooltip-bg: #E2E8F0;
    --tooltip-text: #0D1117;
}

/* ==========================================
   2. GLOBAL BODY & STRUCTURE RESET
   ========================================== */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

body { 
    background-color: var(--bg-main);
    background-image: 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><g opacity="0.06" fill="none" stroke="%23555" stroke-width="1.5"><circle cx="20" cy="30" r="5"/><path d="M 25 30 L 25 10"/><circle cx="50" cy="60" r="4"/><path d="M 53 60 L 53 40"/><circle cx="80" cy="25" r="5"/><path d="M 85 25 L 85 5"/><path d="M 30 50 Q 35 45 40 50" stroke-linecap="round"/></g></svg>');
    background-size: 100px 100px;
    background-attachment: fixed;
    color: var(--text-dark); 
    line-height: 1.6; 
    display: flex; 
    flex-direction: column; 
    min-height: 100vh; 
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ==========================================
   3. NAVIGATION PORTAL BAR
   ========================================== */
nav { 
    background-color: var(--bg-main);
    padding: 1.1rem 2rem;
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem; /* Generous spacing between circle logo and text */
}

.site-logo {
    height: 45px;
    width: 45px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--clr-orange);
    transition: border-color 0.3s ease;
}

.logo-text {
    font-family: 'IBM Plex Mono', Consolas, monospace;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--clr-purple);
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

/* ==========================================
   4. HEADER & HERO SECTION
   ========================================== */
.hub-header {
    padding: 3rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(152, 35, 155, 0.05) 100%);
    margin-bottom: 2rem;
}

.header-content h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.header-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.good-things {
    color: var(--clr-orange);
    font-weight: 600;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-left: auto;
    margin-right: 1.5rem;
}

.nav-link-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.staff-nav-menu {
    position: relative;
}

.staff-nav-menu summary {
    background: var(--bg-card);
    border: 1px solid color-mix(in srgb, var(--clr-purple) 38%, var(--border-color));
    border-radius: 8px;
    color: var(--clr-purple);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    list-style: none;
    padding: 0.45rem 0.75rem;
}

.staff-nav-menu summary::-webkit-details-marker {
    display: none;
}

.staff-nav-menu summary::after {
    content: "▾";
    margin-left: 0.55rem;
}

.staff-nav-menu[open] summary {
    border-color: var(--clr-purple);
}

.staff-nav-submenu {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    display: grid;
    gap: 0.15rem;
    min-width: 210px;
    padding: 0.4rem;
    position: absolute;
    right: 0;
    top: calc(100% + 0.4rem);
    z-index: 20;
}

.staff-nav-submenu a {
    border-radius: 5px;
    padding: 0.5rem 0.6rem;
    white-space: nowrap;
}

.staff-nav-submenu a:hover,
.staff-nav-submenu a:focus-visible {
    background: var(--card-hover-bg);
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--clr-purple);
}

/* Interactive Manual Theme Toggle Button */
.theme-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    padding: 0.6rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.theme-btn:hover {
    background-color: var(--bg-card);
    border-color: var(--clr-purple);
    color: var(--clr-purple);
}

/* Navigation Socials */
.nav-socials {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: all 0.2s ease;
    text-decoration: none;
}

.nav-socials a:hover {
    background-color: var(--card-hover-bg);
    border-color: var(--clr-orange);
    color: var(--clr-orange);
}

/* ==========================================
   4. MAIN GATEWAY HUB CONTAINER
   ========================================== */
.hub-container { 
    flex: 1; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 5rem 2rem 6rem;
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
}

.hub-header { 
    margin-bottom: 3.25rem;
}

.hub-header h1 { 
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(2.15rem, 4.2vw, 3.25rem);
    color: var(--text-dark); 
    margin: 0 auto 1rem;
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.08;
    max-width: 1000px;
}

.good-things {
    color: var(--clr-gold);
    display: inline-block;
    font-size: 1.12em;
    font-style: italic;
    font-weight: 800;
    text-shadow: 0 2px 18px color-mix(in srgb, var(--clr-gold) 25%, transparent);
}

.hub-header p { 
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-muted); 
    max-width: 600px; 
}

/* ==========================================
   5. COACH SPOTLIGHT SECTION
   ========================================== */
.coach-spotlight {
    order: 3;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, rgba(185, 45, 184, 0.08) 0%, rgba(233, 118, 32, 0.05) 100%);
    border-radius: 12px;
    margin-left: auto;
    margin-right: auto;
    max-width: 1000px;
    position: relative;
    overflow: hidden;
}

.coach-spotlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><defs><linearGradient id="grad" x1="0%25" y1="0%25" x2="100%25" y2="0%25"><stop offset="0%25" style="stop-color:rgba(152,35,155,0.1);stop-opacity:1" /><stop offset="50%25" style="stop-color:rgba(233,118,32,0.1);stop-opacity:1" /><stop offset="100%25" style="stop-color:rgba(152,35,155,0.1);stop-opacity:1" /></linearGradient></defs><path d="M0,60 Q300,30 600,60 T1200,60" fill="none" stroke="url(%23grad)" stroke-width="2" opacity="0.4"/><path d="M0,70 Q300,40 600,70 T1200,70" fill="none" stroke="url(%23grad)" stroke-width="2" opacity="0.25"/><path d="M0,50 Q300,20 600,50 T1200,50" fill="none" stroke="url(%23grad)" stroke-width="2" opacity="0.25"/></svg>');
    background-size: 1200px 120px;
    background-position: 0 0;
    background-repeat: repeat-x;
    pointer-events: none;
    animation: wave-motion 6s linear infinite;
}

@keyframes wave-motion {
    0% { background-position: 0 0; }
    100% { background-position: 1200px 0; }
}

.coach-spotlight > * {
    position: relative;
    z-index: 1;
}

.spotlight-content {
    display: flex;
    gap: 3rem;
    align-items: center;
    justify-content: space-between;
}

.spotlight-text h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.spotlight-text p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.highlight-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.highlight-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
    color: var(--text-dark);
}

.highlight-list i {
    color: var(--clr-orange);
    font-size: 1.2rem;
    min-width: 24px;
}

.spotlight-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 200px;
    height: 200px;
}

.musical-accent {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, var(--clr-purple) 0%, var(--clr-orange) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: white;
    box-shadow: 0 8px 24px rgba(152, 35, 155, 0.2);
    animation: gentle-pulse 2s ease-in-out infinite;
}

@keyframes gentle-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.gateway-grid { 
    order: 2;
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 1.5rem;
    width: 100%; 
    max-width: 1000px;
    margin-bottom: 2rem;
}

/* ==========================================
   5. PORTAL GATEWAY ENTRY CARDS
   ========================================== */
.portal-card { 
    background: var(--card-purple-bg);
    border-radius: 10px;
    padding: 1.75rem 1.25rem 1.25rem;
    border: 1px solid color-mix(in srgb, var(--clr-purple) 18%, var(--border-color));
    box-shadow: 0 10px 24px rgba(32, 20, 40, 0.07);
    min-height: 275px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    align-items: center; 
    cursor: pointer;
}

.portal-card.featured { 
    background: var(--card-orange-bg);
    border-color: color-mix(in srgb, var(--clr-orange) 28%, var(--border-color));
}

.portal-card:nth-child(3) {
    background: var(--card-berry-bg);
    border-color: color-mix(in srgb, var(--clr-berry) 24%, var(--border-color));
}

.portal-card:hover { 
    transform: translateY(-5px); 
    background-color: var(--card-hover-bg);
    box-shadow: 0 18px 36px rgba(32, 20, 40, 0.14);
}

.portal-info h2 { 
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.4rem;
    color: var(--text-dark); 
    margin-bottom: 0.6rem;
    font-weight: 750;
}

.portal-icon {
    align-items: center;
    background: color-mix(in srgb, var(--clr-purple) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--clr-purple) 24%, transparent);
    border-radius: 8px;
    color: var(--clr-purple);
    display: flex;
    font-size: 1.2rem;
    height: 42px;
    justify-content: center;
    margin: 0 auto 1rem;
    width: 42px;
}

.portal-card.featured .portal-icon {
    background: color-mix(in srgb, var(--clr-orange) 16%, transparent);
    border-color: color-mix(in srgb, var(--clr-orange) 28%, transparent);
    color: var(--clr-orange);
}

.portal-card:nth-child(3) .portal-icon {
    background: color-mix(in srgb, var(--clr-berry) 14%, transparent);
    border-color: color-mix(in srgb, var(--clr-berry) 24%, transparent);
    color: var(--clr-berry);
}

.portal-info p { 
    color: var(--text-muted); 
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1rem; 
}

/* ==========================================
   6. PORTAL INTERACTION BUTTONS
   ========================================== */
.btn-portal { 
    background-color: var(--clr-berry); 
    color: #FFFFFF; 
    padding: 0.85rem 1.25rem;
    border-radius: 6px;
    text-decoration: none; 
    font-weight: 600; 
    transition: background-color 0.2s, transform 0.1s; 
    width: 100%; 
    text-align: center; 
}

.btn-portal:hover {
    background-color: var(--clr-purple); 
}

.portal-card.featured .btn-portal { 
    background-color: var(--clr-orange); 
    color: #FFFFFF;
}

.portal-card.featured .btn-portal:hover { 
    background-color: var(--clr-gold); 
}

/* ==========================================
   7. DECOUPLED FOOTER, ICONS & TOOLTIPS
   ========================================== */
footer { 
    background-color: var(--bg-footer); 
    color: var(--text-muted); 
    text-align: center; 
    padding: 1.5rem 2rem;
    margin-top: auto; 
    border-top: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.social-heading {
    color: var(--text-dark);
    font-family: 'IBM Plex Mono', Consolas, monospace;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    margin: 0;
    text-transform: uppercase;
}

.socials-row {
    align-items: center;
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.footer-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.75rem;
    margin-bottom: 0;
}

.footer-icons a {
    color: var(--text-muted);
    font-size: 2.2rem;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    position: relative;
    display: inline-block;
}

/* Hovering cycles footer links seamlessly through your palette highlights */
.footer-icons a:hover {
    color: var(--clr-coral);
    transform: scale(1.1);
}

/* Elegant CSS Native Hover Tooltips */
.footer-icons a[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background-color: var(--tooltip-bg);
    color: var(--tooltip-text);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.footer-icons a[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.copyright {
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
    padding-top: 0.75rem;
    max-width: 600px;
    margin: 0 auto;
    transition: border-color 0.3s ease;
}

@media (max-width: 1000px) {
    .spotlight-content {
        flex-direction: column;
        gap: 2rem;
    }

    .spotlight-visual {
        min-width: 150px;
        height: 150px;
    }

    .musical-accent {
        width: 150px;
        height: 150px;
        font-size: 3.5rem;
    }
}

@media (max-width: 720px) {
    nav {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .nav-socials {
        order: 4;
        flex-basis: 100%;
        justify-content: center;
        gap: 0.8rem;
    }

    .nav-links {
        order: 3;
        flex-basis: 100%;
        justify-content: center;
        margin: 0;
        gap: 1.25rem;
        flex-wrap: wrap;
    }

    .nav-link-group {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }

    .staff-nav-submenu {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .gateway-grid {
        grid-template-columns: 1fr;
    }

    .coach-spotlight {
        padding: 2rem 1.5rem;
        margin-bottom: 1.5rem;
    }

    .spotlight-text h2 {
        font-size: 1.4rem;
    }

    .header-content h1 {
        font-size: clamp(1.75rem, 7vw, 2.35rem);
    }

    .socials-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.75rem;
    }
}
