/* ============================================================
   Golf Post Nav Bridge CSS
   Provides 2026 navigation styles for legacy base templates.
   NO global resets — only scoped to nav/header/footer components.
   ============================================================ */

/* CSS Custom Properties (used by _nav.html.twig) */
:root {
    --gp-green: #04AD79;
    --gp-green-dark: #047857;
    --gp-green-tint: rgba(4,173,121,0.08);
    --gp-red: #EE3F34;
    --gp-gold: #C5A55A;
    --gp-dark: #2c2c2c;
    --gp-darker: #1e293b;
    --gp-bg: #f5f5f5;
    --gp-bg-card: #ffffff;
    --gp-border: #e2e8f0;
    --gp-text: #1e293b;
    --gp-text-secondary: #64748b;
    --gp-text-muted: #94a3b8;
    --gp-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --gp-radius: 12px;
    --gp-shadow: 0 2px 8px rgba(0,0,0,0.08);
    --gp-shadow-lg: 0 4px 16px rgba(0,0,0,0.10);
    --gp-max-width: 1200px;
    --gp-transition: 0.2s ease;
}

/* ── TOP BAR ── */
.top-bar { background: #fff; border-bottom: 1px solid var(--gp-border); font-size: 12px; color: var(--gp-text-muted); }
.top-bar .container { max-width: var(--gp-max-width); margin: 0 auto; padding: 0 16px; }
.top-bar__inner { display: flex; justify-content: flex-end; align-items: center; height: 32px; gap: 16px; }
.top-bar__link { color: var(--gp-text-muted); font-size: 12px; text-decoration: none; }
.top-bar__link:hover { color: var(--gp-text); text-decoration: none; }
.top-bar__social { display: flex; gap: 12px; }
.top-bar__social a { color: var(--gp-text-muted); font-size: 14px; text-decoration: none; }
.top-bar__social a:hover { color: var(--gp-green); text-decoration: none; }
@media (max-width: 767px) { .top-bar { display: none; } }

/* ── SITE HEADER ── */
.site-header { background: rgba(255,255,255,0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--gp-border); position: sticky; top: 0; z-index: 900; }
.site-header .container { max-width: var(--gp-max-width); margin: 0 auto; padding: 0 16px; }
.site-header__inner { display: flex; align-items: center; height: 56px; gap: 24px; }
.site-header__logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; text-decoration: none; }
.site-header__logo-img { height: 22px; width: auto; display: inline-block; }
@media (max-width: 767px) { .site-header__logo-img { height: 20px; } }
.site-header__search { flex: 1; max-width: 320px; position: relative; }
.site-header__search-input { width: 100%; padding: 8px 14px 8px 36px; border: 1.5px solid var(--gp-border); border-radius: 20px; font-size: 14px; background: var(--gp-bg); outline: none; transition: border-color var(--gp-transition); box-sizing: border-box; }
.site-header__search-input:focus { border-color: var(--gp-green); background: #fff; }
.site-header__search-input::placeholder { color: var(--gp-text-muted); }
.site-header__search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--gp-text-muted); font-size: 14px; pointer-events: none; }
@media (max-width: 767px) { .site-header__search { display: none; } }
.site-header__extras { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.site-header__extra-link { color: var(--gp-text-secondary); font-size: 13px; white-space: nowrap; display: flex; align-items: center; gap: 4px; text-decoration: none; }
.site-header__extra-link:hover { color: var(--gp-green); text-decoration: none; }
.site-header__search-mobile { display: none; color: var(--gp-text-secondary); font-size: 18px; background: none; border: none; cursor: pointer; padding: 4px; }
@media (max-width: 900px) { .site-header__extras .desktop-link { display: none; } }
@media (max-width: 767px) { .site-header__search-mobile { display: flex; } }

/* ── GREEN NAV BAR ── */
.nav-bar { background: var(--gp-green); }
.nav-bar .container { max-width: var(--gp-max-width); margin: 0 auto; padding: 0 16px; }
.nav-bar__inner { display: flex; align-items: center; height: 48px; gap: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.nav-bar__inner::-webkit-scrollbar { display: none; }
.nav-bar__link { color: #fff; font-size: 14px; font-weight: 600; padding: 0 14px; height: 48px; display: flex; align-items: center; white-space: nowrap; transition: background var(--gp-transition); text-decoration: none; }
.nav-bar__link:hover { background: rgba(0,0,0,0.1); text-decoration: none; color: #fff; }
.nav-bar__link--active { background: rgba(0,0,0,0.15); }
.nav-bar__hamburger { display: none; background: none; border: none; color: #fff; font-size: 22px; padding: 0 12px; cursor: pointer; height: 48px; align-items: center; }
@media (max-width: 767px) { .nav-bar__hamburger { display: flex; } .nav-bar__link.desktop-only { display: none; } }

/* ── NAV DROPDOWNS ── */
.nav-bar__dropdown { position: relative; display: inline-flex; padding-bottom: 8px; margin-bottom: -8px; }
.nav-bar__dropdown-menu { display: none; position: absolute; top: calc(100% + 8px); left: -8px; background: #fff; border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,0.18), 0 2px 6px rgba(0,0,0,0.08); min-width: 240px; z-index: 100; padding: 6px 0; border: 1px solid rgba(0,0,0,0.06); }
.nav-bar__dropdown:hover .nav-bar__dropdown-menu { display: block; }
.nav-bar__dropdown-menu a { display: flex; align-items: center; gap: 8px; padding: 9px 16px; color: var(--gp-text); text-decoration: none; font-size: 13px; font-weight: 500; transition: all .15s; }
.nav-bar__dropdown-menu a:hover { background: var(--gp-green-tint); color: var(--gp-green); }
.nav-bar__dropdown-menu__divider { height: 1px; background: #f0f0f0; margin: 4px 12px; }
.nav-bar__dropdown-menu__label { padding: 8px 16px 4px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gp-text-muted); }
.nav-bar__dropdown-menu--mega { min-width: 480px; }
.mega-cols { display: flex; gap: 0; }
.mega-col { flex: 1; padding: 4px 0; }
.mega-col + .mega-col { border-left: 1px solid #f0f0f0; }
/* Player headshots in dropdown */
.dd-player { display: flex; align-items: center; gap: 10px; }
.dd-player__photo { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.dd-rank { font-size: 11px; color: var(--gp-text-muted); margin-left: auto; }
.dd-tour-badge { font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 3px; text-transform: uppercase; background: #eee; color: #555; white-space: nowrap; }
.dd-tour-badge--pga { background: #003865; color: #fff; }
.dd-tour-badge--european, .dd-tour-badge--dpworld { background: #003399; color: #fff; }
.dd-tour-badge--liv { background: #000; color: #ff0000; }
.dd-tour-badge--lpga, .dd-tour-badge--let { background: #8B1A8F; color: #fff; }
.dd-tour-badge--challenge { background: #005f99; color: #fff; }
.dd-tour-badge--kornferry { background: #005030; color: #fff; }
.dd-tour-badge--champions { background: #666; color: #fff; }
.dd-round { font-size: 10px; font-weight: 700; background: var(--gp-red); color: #fff; padding: 1px 6px; border-radius: 3px; margin-left: auto; }

/* ── MOBILE DRAWER ── */
.mobile-drawer { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 9999; }
.mobile-drawer.open { display: flex; }
.mobile-drawer__overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); }
.mobile-drawer__panel { position: relative; width: 300px; max-width: 85vw; background: #fff; height: 100%; overflow-y: auto; padding: 20px; z-index: 1; }
.mobile-drawer__close { position: absolute; top: 12px; right: 12px; background: none; border: none; font-size: 28px; color: var(--gp-text-muted); cursor: pointer; }
.mobile-drawer__logo { font-size: 20px; font-weight: 800; color: var(--gp-text); margin-bottom: 16px; }
.mobile-drawer__link { display: block; padding: 10px 0; font-size: 15px; color: var(--gp-text); text-decoration: none; border-bottom: 1px solid #f0f0f0; }
.mobile-drawer__link:hover { color: var(--gp-green); text-decoration: none; }

/* ── SEARCH OVERLAY ── */
.search-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,0.97); z-index: 10000; padding: 60px 16px 16px; }
.search-overlay.open { display: block; }
.search-overlay__close { position: absolute; top: 16px; right: 20px; background: none; border: none; font-size: 32px; color: var(--gp-text-muted); cursor: pointer; }
.search-overlay__box { max-width: 600px; margin: 0 auto; }
.search-overlay__input { width: 100%; padding: 16px 20px; border: 2px solid var(--gp-border); border-radius: 12px; font-size: 18px; outline: none; box-sizing: border-box; }
.search-overlay__input:focus { border-color: var(--gp-green); }
.search-overlay__results { margin-top: 16px; }

/* ── EDITION SWITCHER ── */
.ed-dd__menu { z-index: 99998 !important; }
.user-menu { display: none; position: fixed; top: auto; right: 16px; background: #fff; border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.08); min-width: 240px; z-index: 99999; padding: 4px 0; border: 1px solid rgba(0,0,0,0.06); }
.user-menu-open .user-menu { display: block; }
.user-menu__item { display: flex; align-items: center; gap: 10px; padding: 10px 16px; color: var(--gp-text); text-decoration: none; font-size: 14px; font-weight: 500; transition: background .15s; }
.user-menu__item:hover { background: rgba(4,174,121,0.06); color: var(--gp-green); text-decoration: none; }

/* ── Helpers ── */
.site-header__user-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; vertical-align: middle; border: 2px solid var(--gp-green); }
