/* ==========================================
   GOALPEEK LANDING PAGE — Custom Styles
   Bootstrap 5.3 · Symfony AssetMapper
   ========================================== */

/* === VARIABLES === */
:root {
    /* Landing uses its own dark-navy brand palette + design-system tokens */
    --gp-primary:        #0f172a;
    --gp-accent:         var(--ds-color-primary, #3b82f6);
    --gp-accent-hover:   var(--ds-color-primary-dark, #2563eb);
    --gp-gold:           var(--ds-color-gold, #fbbf24);
    --gp-grad-start:     #0f172a;
    --gp-grad-end:       #1e3a5f;

    /* Image placeholders — #475569 (slate-600) for WCAG AA ratio≥6 on #f1f5f9 */
    --ph-bg:             #f1f5f9;
    --ph-border:         #cbd5e1;
    --ph-text:           #475569;
    --ph-icon:           #475569;

    /* Glass effect navbar */
    --glass-bg:          rgba(255, 255, 255, 0.88);
    --glass-border:      rgba(203, 213, 225, 0.5);

    /* Section backgrounds */
    --section-alt-bg:    #f8fafc;
}

[data-bs-theme="dark"] {
    --ph-bg:             #1e293b;
    --ph-border:         #334155;
    --ph-text:           #64748b;
    --ph-icon:           #475569;

    --glass-bg:          rgba(15, 23, 42, 0.88);
    --glass-border:      rgba(255, 255, 255, 0.06);

    --section-alt-bg:    #0a0f1a;
}

/* === NAVBAR GLASS === */
.navbar-glass {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--glass-border) !important;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.navbar-glass .navbar-brand {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gp-accent) !important;
}

.navbar-glass .nav-link {
    font-weight: 500;
    font-size: 0.9rem;
}

/* Use primary-dark (#1d4ed8) for AA contrast — blue-500 (#3b82f6) ratio≈3.67 < 4.5 */
.btn-gp-outline {
    color: var(--gp-accent-hover, #1d4ed8);
    border-color: var(--gp-accent-hover, #1d4ed8);
    font-weight: 600;
}
.btn-gp-outline:hover {
    background-color: var(--gp-accent-hover, #1d4ed8);
    border-color: var(--gp-accent-hover, #1d4ed8);
    color: white;
}
.btn-gp {
    background-color: var(--gp-accent-hover, #1d4ed8);
    border-color: var(--gp-accent-hover, #1d4ed8);
    color: white;
    font-weight: 600;
}
.btn-gp:hover {
    background-color: #1e40af;
    border-color: #1e40af;
    color: white;
}

/* === HERO SECTION === */
.hero-section {
    background: linear-gradient(135deg, var(--gp-grad-start) 0%, var(--gp-grad-end) 60%, #1a4480 100%);
    min-height: 88vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    padding: 7rem 0 5rem;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.14) 0%, transparent 70%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.07) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.35);
    color: #fbbf24;
    padding: 7px 18px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.01em;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

/* === IMAGE PLACEHOLDERS === */
.img-placeholder {
    background: var(--ph-bg);
    border: 2px dashed var(--ph-border);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.img-placeholder:hover {
    border-color: var(--gp-accent);
}

/* Placeholder content must be absolute inside a .ratio container */
.img-placeholder .placeholder-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--ph-text);
    gap: 10px;
}

.img-placeholder .placeholder-inner i {
    font-size: 2.25rem;
    color: var(--ph-icon);
    opacity: 0.55;
}

.img-placeholder .placeholder-inner small {
    font-size: 0.8rem;
    /* No opacity — color #475569 already meets WCAG AA without it */
}

/* Hero mockup — extra frame effect */
.img-placeholder-hero {
    border-radius: 20px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

/* Gallery item hover overlay */
.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: default;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
}

.gallery-item .gallery-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 1rem;
    background: linear-gradient(transparent, rgba(15, 23, 42, 0.75));
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-label {
    opacity: 1;
}

/* Avatar placeholder — circular */
.avatar-placeholder {
    width: 64px;
    height: 64px;
    background: var(--ph-bg);
    border: 2px dashed var(--ph-border);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ph-icon);
    flex-shrink: 0;
    font-size: 1.5rem;
}

/* === SOCIAL PROOF STRIP === */
.social-proof-strip {
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    padding: 2rem 0;
}

[data-bs-theme="dark"] .social-proof-strip {
    border-color: rgba(255, 255, 255, 0.07);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--gp-accent);
    line-height: 1;
    display: block;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.65;
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 0.5rem 0;
    align-self: stretch;
}

[data-bs-theme="dark"] .stat-divider {
    background: rgba(255, 255, 255, 0.1);
}

/* === HOW IT WORKS === */
.step-number {
    width: 52px;
    height: 52px;
    background: var(--gp-accent);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 900;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
}

.step-row {
    align-items: center;
    padding: 3rem 0;
}

.step-row:not(:last-child) {
    border-bottom: 1px dashed rgba(0, 0, 0, 0.07);
}

[data-bs-theme="dark"] .step-row:not(:last-child) {
    border-color: rgba(255, 255, 255, 0.07);
}

/* === FEATURES === */
.feature-card {
    border-radius: 18px;
    padding: 2rem 1.75rem;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
}

[data-bs-theme="dark"] .feature-card {
    border-color: rgba(255, 255, 255, 0.06) !important;
}

[data-bs-theme="dark"] .feature-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
}

.feature-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--gp-accent), #1d4ed8);
    color: white;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.28);
    margin-bottom: 1rem;
}

/* === PRICING === */
.pricing-card {
    border-radius: 20px;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.featured-plan {
    background: linear-gradient(145deg, #0f172a, #1e3a5f) !important;
    border: none !important;
    color: white;
    box-shadow: 0 24px 50px rgba(59, 130, 246, 0.25) !important;
}

.pricing-card.featured-plan .text-muted {
    color: rgba(255, 255, 255, 0.55) !important;
}

.pricing-card.featured-plan li {
    color: rgba(255, 255, 255, 0.9) !important;
}

.price-display {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
}

/* === TESTIMONIALS === */
.testimonial-card {
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
}

[data-bs-theme="dark"] .testimonial-card {
    border-color: rgba(255, 255, 255, 0.06) !important;
}

.quote-mark {
    font-size: 3.5rem;
    line-height: 1;
    color: var(--gp-accent);
    opacity: 0.25;
    font-family: Georgia, serif;
    display: block;
    margin-bottom: 0.5rem;
}

.stars-row {
    color: var(--gp-gold);
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

/* === CTA BANNER === */
.cta-banner {
    background: linear-gradient(135deg, #0a0f1a 0%, #1e3a5f 100%);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.cta-banner::after {
    content: '';
    position: absolute;
    bottom: -40%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.07) 0%, transparent 70%);
    pointer-events: none;
}

/* === SECTION HEADING === */
.section-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.section-heading h2 {
    font-weight: 800;
    font-size: 2.1rem;
    margin-bottom: 0.5rem;
}

.section-divider {
    width: 56px;
    height: 4px;
    background: var(--gp-accent);
    border-radius: 2px;
    margin: 0.75rem auto 1.25rem;
}

/* === LANDING FOOTER === */
.landing-footer {
    background: #060c14;
}

.landing-footer .footer-logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--gp-accent);
}

.landing-footer .text-muted-footer {
    color: rgba(255, 255, 255, 0.60) !important;  /* ratio≥4.5 on #060c14 */
    font-size: 0.875rem;
    max-width: 280px;
}

.landing-footer h6 {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.landing-footer a.footer-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
    display: block;
    margin-bottom: 0.6rem;
}

.landing-footer a.footer-link:hover {
    color: white;
}

/* Override Bootstrap secondary color in dark footer for WCAG AA */
.landing-footer .dropdown-toggle,
.landing-footer .btn-outline-secondary {
    color: rgba(255, 255, 255, 0.80) !important;
    border-color: rgba(255, 255, 255, 0.30) !important;
}
.landing-footer .dropdown-toggle:hover,
.landing-footer .btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.10) !important;
    color: #ffffff !important;
}

.landing-footer .social-link {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    font-size: 1rem;
}

.landing-footer .social-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.07) !important;
}

/* === SECTION ALT BACKGROUND === */
.section-alt {
    background-color: var(--section-alt-bg);
}

/* === ACTIVE SESSION BANNER === */
.session-banner {
    background-color: var(--gp-accent);
    color: white;
    top: 0;
    z-index: 1032;
}

/* === RESPONSIVE === */
@media (max-width: 991.98px) {
    .hero-section {
        min-height: auto;
        padding: 6rem 0 3.5rem;
    }

    .hero-section .hero-text {
        text-align: center;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .stat-divider {
        display: none;
    }

    .step-row.flex-row-reverse {
        flex-direction: column !important;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        padding: 5rem 0 2.5rem;
    }

    .price-display {
        font-size: 2.5rem;
    }

    .section-heading h2 {
        font-size: 1.7rem;
    }

    .hero-badge {
        font-size: 0.78rem;
    }

    .hero-section .display-4 {
        font-size: 2rem;
    }
}

/* FAQ section — dark mode border consistency */
[data-bs-theme="dark"] #faq .border-bottom {
    border-color: rgba(255, 255, 255, 0.07) !important;
}

/* === LEAGUES SECTION === */
.league-card {
    transition: transform .18s ease, box-shadow .18s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.league-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.league-card--featured {
    border-color: var(--gp-accent, #f59e0b) !important;
    border-width: 2px !important;
}
.league-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
}
@media (max-width: 575.98px) {
    .league-logo { width: 48px; height: 48px; }
    .league-card { padding: .75rem !important; }
}
