/*
Theme Name: Legacy Prime
Theme URI: https://legacyprime-sports.co.uk
Author: 3 Points Global
Description: Official theme for Legacy Prime Sports Management
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: Private
Text Domain: legacy-prime
*/

/* ================================================================
   RESET & VARIABLES
   ================================================================ */
a[href^="tel"] { color: inherit; text-decoration: none; }

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gold: #F5C300;
    --gold-dim: rgba(245, 195, 0, 0.6);
    --navy: #0d2273;
    --dark: #080808;
    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    overflow-x: hidden;
    background: #111;
}

/* ================================================================
   NAVIGATION
   ================================================================ */
nav.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 40px;
    background: rgba(5, 5, 5, 0.93);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(245, 195, 0, 0.18);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo-img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.35)) drop-shadow(0 0 16px rgba(255,255,255,0.15));
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 26px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20px;
    font-weight: 100;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links .current-menu-item > a {
    color: var(--gold);
}

.lang-toggle {
    display: flex;
    gap: 6px;
}

.lang-btn {
    background: none;
    border: 2px solid transparent;
    border-radius: 4px;
    padding: 3px 5px;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    opacity: 0.5;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-btn.active {
    opacity: 1;
    border-color: var(--gold);
}

.lang-btn:hover { opacity: 0.85; }

/* ================================================================
   HERO
   ================================================================ */
#hero {
    min-height: 100vh;
    background: url('images/hero-glow.jpg') center / cover no-repeat;
    background-color: #0a3d91;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo-wrap { display: flex; justify-content: center; }

.hero-logo-img {
    width: clamp(200px, 28vw, 340px);
    height: auto;
}

.hero-tagline {
    margin-top: 30px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(28px, 2.6vw, 32px);
    letter-spacing: 8px;
    color: #1a1a1a;
    text-transform: uppercase;
    text-align: center;
}

/* ================================================================
   CONTENT SECTIONS
   ================================================================ */
.content-section {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    background:
        linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.85)),
        url('images/stadium.jpg') center center / cover no-repeat;
}

.section-sidebar {
    width: 72px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 80px 0 44px;
    border-right: 2px solid var(--gold);
}

.sidebar-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 43px;
    letter-spacing: 7px;
    color: var(--white);
    white-space: nowrap;
    user-select: none;
}

.section-body {
    flex: 1;
    padding: clamp(50px, 7vh, 90px) clamp(36px, 6vw, 100px);
    padding-top: calc(clamp(50px, 7vh, 90px) + 70px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(45px, 4.2vw, 56px);
    font-weight: 100;
    color: var(--gold);
    letter-spacing: 3px;
    line-height: 1;
    margin-bottom: 4px;
}

.section-subtitle {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(35px, 3vw, 40px);
    font-weight: 100;
    color: var(--gold);
    letter-spacing: 2px;
    margin-bottom: 36px;
}

.section-list {
    list-style: none;
    padding: 0;
    max-width: 880px;
}

.section-list li {
    color: var(--white);
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 20px;
    padding-left: 22px;
    position: relative;
}

.section-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: 18px;
    line-height: 1.5;
}

/* ================================================================
   NEWS GRID (home.php / archive)
   ================================================================ */
#news-page {
    min-height: 100vh;
    padding: 120px 60px 80px;
    background:
        linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.85)),
        url('images/stadium.jpg') center center / cover no-repeat;
}

.news-header {
    margin-bottom: 60px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    max-width: 1200px;
    margin: 0 auto;
}

.news-card {
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(245, 195, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, transform 0.2s;
}

.news-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
}

.news-card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.news-card-img-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: rgba(245, 195, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-card-body {
    padding: 24px 22px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-date {
    font-family: 'Open Sans', sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold-dim);
    margin-bottom: 8px;
}

.news-card-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    font-weight: 100;
    color: var(--white);
    letter-spacing: 2px;
    line-height: 1.2;
    margin-bottom: 12px;
    flex: 1;
}

.news-card-title a {
    color: var(--white);
    text-decoration: none;
}

.news-card-title a:hover { color: var(--gold); }

.news-card-excerpt {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    margin-bottom: 18px;
}

.news-read-more {
    display: inline-block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 14px;
    letter-spacing: 3px;
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid var(--gold-dim);
    padding-bottom: 2px;
    transition: border-color 0.2s;
    align-self: flex-start;
}

.news-read-more:hover { border-color: var(--gold); }

.news-no-posts {
    grid-column: 1 / -1;
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    letter-spacing: 4px;
    padding: 80px 0;
}

/* ================================================================
   SINGLE POST
   ================================================================ */
.single-post-wrap {
    min-height: 100vh;
    padding: 120px 60px 80px;
    background: #111;
}

.single-post-inner {
    max-width: 860px;
    margin: 0 auto;
}

.single-post-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 14px;
    letter-spacing: 3px;
    color: var(--gold);
    text-decoration: none;
    margin-bottom: 40px;
    transition: opacity 0.2s;
}

.single-post-back:hover { opacity: 0.7; }

.single-post-date {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold-dim);
    margin-bottom: 12px;
}

.single-post-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 100;
    color: var(--gold);
    letter-spacing: 3px;
    line-height: 1.1;
    margin-bottom: 36px;
}

.single-post-featured {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
    margin-bottom: 44px;
}

.single-post-content {
    color: rgba(255,255,255,0.88);
    font-size: 17px;
    line-height: 1.8;
}

.single-post-content h2,
.single-post-content h3 {
    font-family: 'Bebas Neue', sans-serif;
    color: var(--gold);
    letter-spacing: 2px;
    margin: 36px 0 12px;
}

.single-post-content p { margin-bottom: 20px; }
.single-post-content a { color: var(--gold); }
.single-post-content img { max-width: 100%; height: auto; }

/* ================================================================
   CONTACT
   ================================================================ */
#contact {
    min-height: 100vh;
    background: #0d2273;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 110px 40px 70px;
    text-align: center;
}

.contact-title {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 100;
    font-size: clamp(48px, 7vw, 88px);
    color: var(--gold);
    letter-spacing: 7px;
    margin-bottom: 10px;
}

.contact-subtitle {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 25px;
    font-weight: 100;
    color: var(--white);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 66px;
    max-width: 600px;
}

.contact-grid {
    display: flex;
    gap: clamp(50px, 10vw, 140px);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 70px;
}

.contact-person h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 100;
    font-size: clamp(30px, 2.6vw, 36px);
    color: var(--gold);
    letter-spacing: 3px;
    margin-bottom: 8px;
}

.contact-person .email {
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 100;
    font-size: 18px;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 1px;
    margin-bottom: 6px;
    opacity: 0.85;
}

.contact-person .email:hover { color: var(--gold); opacity: 1; }

.contact-person .phone,
.contact-person .phone a {
    font-family: 'Bebas Neue', sans-serif;
    color: var(--white);
    font-weight: 100;
    font-size: 25px;
    letter-spacing: 1px;
    text-decoration: none;
    display: block;
    margin-bottom: 22px;
}

.contact-person img {
    display: block;
    width: clamp(140px, 14vw, 210px);
    height: clamp(160px, 16vw, 240px);
    object-fit: cover;
    margin: 0 auto;
}

.contact-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo-img {
    width: clamp(115px, 10vw, 120px);
    height: auto;
    filter: drop-shadow(0 0 25px rgba(0,230,255,0.85)) drop-shadow(0 0 70px rgba(0,200,255,0.45));
}

/* ================================================================
   HAMBURGER & MOBILE NAV
   ================================================================ */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 16px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Slide-out panel */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100%;
    background: rgba(5, 5, 5, 0.98);
    border-left: 1px solid rgba(245, 195, 0, 0.25);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    padding: 80px 36px 48px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav.open {
    transform: translateX(0);
}

.mobile-nav-close {
    position: absolute;
    top: 18px;
    right: 20px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.mobile-nav-close:hover { opacity: 1; }

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav-links li a {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 32px;
    font-weight: 100;
    letter-spacing: 4px;
    color: var(--white);
    text-decoration: none;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: color 0.2s;
}

.mobile-nav-links li a:hover,
.mobile-nav-links li a:active { color: var(--gold); }

.mobile-lang {
    display: none; /* shown via media query on mobile */
    gap: 12px;
    margin-top: auto;
}

/* Overlay */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1050;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s;
}

.mobile-nav-overlay.open {
    opacity: 1;
    pointer-events: all;
}

/* ================================================================
   NEWS PAGE WRAPPERS
   ================================================================ */
.news-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.news-page-title {
    margin-bottom: 60px;
    text-align: left;
}

.news-empty {
    color: rgba(255,255,255,0.5);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    letter-spacing: 4px;
    padding: 80px 0;
    text-align: center;
}

.news-card-img--empty {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: rgba(245, 195, 0, 0.06);
}

.news-card-img-link {
    display: block;
    overflow: hidden;
}

.news-pagination {
    margin-top: 60px;
    text-align: center;
}

.news-pagination .nav-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.news-pagination a,
.news-pagination span {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 16px;
    letter-spacing: 3px;
    color: var(--white);
    text-decoration: none;
    padding: 8px 14px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: border-color 0.2s, color 0.2s;
}

.news-pagination a:hover,
.news-pagination .current {
    border-color: var(--gold);
    color: var(--gold);
}

/* ================================================================
   SINGLE POST HERO
   ================================================================ */
.single-post-hero {
    width: 100%;
    max-height: 480px;
    overflow: hidden;
}

.single-post-hero-img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

/* ================================================================
   GENERIC PAGE FALLBACK
   ================================================================ */
.page-wrap {
    min-height: 100vh;
    padding: 120px 60px 80px;
    max-width: 1000px;
    margin: 0 auto;
}

.page-content {
    color: rgba(255,255,255,0.85);
    font-size: 18px;
    line-height: 1.7;
    margin-top: 30px;
}

.page-content a { color: var(--gold); }
.page-content p { margin-bottom: 18px; }

/* ================================================================
   SITE FOOTER
   ================================================================ */
.site-footer {
    background: #000;
    padding: 22px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    border-top: 1px solid rgba(245, 195, 0, 0.15);
}

.site-footer-copy {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    letter-spacing: 1px;
}

.site-footer-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-footer-links a {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.2s;
}

.site-footer-links a:hover { color: var(--gold); }

.site-footer-links span {
    color: rgba(255,255,255,0.2);
    font-size: 10px;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 800px) {
    nav.site-nav { padding: 10px 18px; }

    /* Hide desktop nav links */
    .nav-links { display: none !important; }

    /* Show hamburger */
    .hamburger { display: flex !important; }

    /* Show lang toggle inside mobile panel */
    .mobile-lang { display: flex !important; }

    .section-sidebar { width: 46px; padding: 70px 0 30px; }
    .sidebar-text { font-size: 13px; letter-spacing: 4px; }
    .section-body { padding: 80px 22px 40px; }
    .contact-grid { flex-direction: column; align-items: center; gap: 48px; }
    .hero-logo-img { width: 180px; }
    #news-page { padding: 100px 24px 60px; }
    .single-post-wrap { padding: 100px 24px 60px; }
}

@media (max-width: 600px) {
    .news-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .section-sidebar { display: none; }
    .content-section,
    #news-page {
        background:
            linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.5)),
            url('images/stadium.jpg') center center / cover no-repeat;
    }
    .section-body { padding: 90px 20px 50px; }
}
