/* === EA SPORTS FC Soccer Mobile 26 - Premium Styles === */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Work+Sans:wght@300;400;600;700&family=Space+Mono&display=swap');

:root {
    /* Deep Jewel Palette - Dark Theme */
    --bg-deep: #050510;
    --bg-card: rgba(20, 20, 45, 0.4);
    --accent: #22d3ee; /* Electric Cyan */
    --accent-glow: rgba(34, 211, 238, 0.3);
    --jewel-green: #10b981;
    --jewel-purple: #8b5cf6;
    --text: #f8fafc;
    --text-muted: #94a3b8;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);

    --container-max: 1200px;
    --sidebar-width: 320px;
}

/* === CSS RESET & BASE === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    font-family: 'Work Sans', system-ui, sans-serif;
    line-height: 1.6;
    font-size: 18px;
    overflow-x: clip;
    color: var(--text);
    background: var(--bg-deep);
    background-attachment: fixed;
}

h1, h2, h3 {
    font-family: 'DM Serif Display', serif;
    line-height: 1.1;
    font-weight: 400;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
    object-fit: cover;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Background Texture Animation */
.bg-texture {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 20px,
        rgba(34, 211, 238, 0.03) 20px,
        rgba(34, 211, 238, 0.03) 40px
    );
    background-size: 200% 200%;
    animation: move-bg 60s linear infinite;
}

@keyframes move-bg {
    0% { background-position: 0 0; }
    100% { background-position: 100% 100%; }
}

/* === STRUCTURAL LAYOUT === */
.page-wrapper {
    display: flex;
    flex-direction: column;
}

@media (min-width: 1024px) {
    .page-wrapper {
        flex-direction: row;
    }
}

.sidebar {
    width: 100%;
    background: #000;
    padding: 2rem;
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
}

@media (min-width: 1024px) {
    .sidebar {
        width: var(--sidebar-width);
        height: 100vh;
        position: sticky;
        top: 0;
        border-bottom: none;
        border-right: 1px solid var(--glass-border);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
}

.main-content {
    flex: 1;
    min-width: 0;
}

/* === NAVIGATION === */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 16, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

@media (min-width: 1024px) {
    .top-nav {
        left: var(--sidebar-width);
        width: calc(100% - var(--sidebar-width));
    }
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 8px;
}

.nav-title {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-links {
    display: none;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-links a {
    position: relative;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    display: none;
}

@media (min-width: 768px) {
    .nav-cta {
        display: block;
    }
}

/* Mobile Menu Button */
.mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
}

@media (min-width: 768px) {
    .mobile-toggle {
        display: none;
    }
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s ease;
}

/* === BUTTONS (Sharp Rectangular) === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 3px solid var(--accent);
    background: transparent;
    color: var(--accent);
}

.btn:hover {
    background: var(--accent);
    color: #000;
}

.btn-primary {
    background: transparent;
}

.btn-store {
    border-radius: 0;
    font-size: 0.8rem;
    padding: 10px 20px;
    gap: 10px;
    margin-right: 10px;
    margin-bottom: 10px;
}

/* === SECTION DIVIDERS (Sawtooth) === */
.divider-zigzag {
    height: 40px;
    width: 100%;
    background: var(--bg-deep);
    clip-path: polygon(0% 0%, 5% 100%, 10% 0%, 15% 100%, 20% 0%, 25% 100%, 30% 0%, 35% 100%, 40% 0%, 45% 100%, 50% 0%, 55% 100%, 60% 0%, 65% 100%, 70% 0%, 75% 100%, 80% 0%, 85% 100%, 90% 0%, 95% 100%, 100% 0%);
    position: absolute;
    bottom: -20px;
    left: 0;
    z-index: 5;
}

/* === HERO SECTION === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 5% 4rem;
    position: relative;
    background: radial-gradient(circle at center, var(--jewel-purple), transparent 70%);
}

.hero-glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 3rem;
    width: 100%;
    max-width: 700px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
}

.hero-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    border-radius: 28px;
    box-shadow: 0 0 40px var(--accent-glow);
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    margin-bottom: 1rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.hero-rating {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 2rem;
    font-weight: 600;
}

.hero-rating i {
    color: #fbbf24;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

/* === REVIEWS SECTION === */
.reviews-section {
    padding: 6rem 5%;
}

.review-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.chat-bubble {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 30px;
}

.chat-bubble::after {
    content: '';
    position: absolute;
    left: 40px;
    bottom: -20px;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 20px solid var(--bg-card);
}

.review-stars {
    color: #fbbf24;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.review-text {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-initials {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* === SCREENSHOT GALLERY === */
.gallery-section {
    padding: 6rem 0;
    overflow: hidden;
}

.slider-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    height: 550px;
}

.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide.active {
    opacity: 1;
    z-index: 10;
}

.slide img {
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    /* Duotone effect */
    filter: sepia(100%) hue-rotate(150deg) saturate(300%) contrast(110%);
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 20;
    pointer-events: none;
}

.nav-btn {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: var(--accent);
    color: #000;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--accent);
    width: 30px;
    border-radius: 10px;
}

/* === FEATURES SECTION === */
.features-section {
    padding: 8rem 5%;
    max-width: var(--container-max);
    margin: 0 auto;
}

.section-label {
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 3px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    background: rgba(20, 20, 45, 0.3);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    background: rgba(34, 211, 238, 0.05);
}

.feature-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 2rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

/* === STATS SECTION === */
.stats-section {
    padding: 10rem 5%;
    background: linear-gradient(180deg, var(--bg-deep) 0%, #101030 100%);
    text-align: center;
}

.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    max-width: 600px;
    margin: 0 auto;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(4rem, 12vw, 8rem);
    line-height: 1;
    color: var(--accent);
    text-shadow: 0 0 30px var(--accent-glow);
}

.stat-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    color: var(--text-muted);
}

/* === DOWNLOAD CTA === */
.download-section {
    padding: 0;
    background: #000;
}

.download-split {
    display: flex;
    flex-direction: column;
}

@media (min-width: 1024px) {
    .download-split {
        flex-direction: row;
        align-items: center;
    }
}

.download-image {
    flex: 1;
    overflow: hidden;
}

.download-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    min-height: 400px;
    mask-image: linear-gradient(to bottom, black 80%, transparent);
}

@media (min-width: 1024px) {
    .download-image img {
        mask-image: linear-gradient(to right, black 80%, transparent);
    }
}

.download-content {
    flex: 1;
    padding: 4rem 5%;
}

@media (min-width: 1024px) {
    .download-content {
        padding: 8rem;
    }
}

.download-content h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 2rem;
}

.download-content p {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    color: var(--text-muted);
}

/* === BRUTALIST FOOTER === */
.footer {
    background: #000;
    border-top: 5px solid var(--text);
    padding: 4rem 5%;
    font-family: 'Space Mono', monospace;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: var(--container-max);
    margin: 0 auto;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-col h4 {
    background: var(--text);
    color: #000;
    padding: 4px 12px;
    display: inline-block;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a:hover {
    text-decoration: underline;
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-links a {
    font-size: 1.5rem;
}

.newsletter-form {
    display: flex;
    margin-top: 1rem;
    border: 3px solid var(--text);
}

.newsletter-input {
    background: transparent;
    border: none;
    padding: 0.75rem;
    color: #fff;
    flex: 1;
    font-family: inherit;
    outline: none;
}

.newsletter-btn {
    background: var(--text);
    color: #000;
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid #222;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* === LEGAL PAGES === */
.legal-content {
    max-width: 900px;
    margin: 120px auto 80px;
    padding: 0 5%;
}

.legal-content h1 {
    font-size: 3.5rem;
    margin-bottom: 3rem;
}

.legal-content h2 {
    margin: 3rem 0 1.5rem;
    color: var(--accent);
}

.legal-content p {
    margin-bottom: 1.5rem;
}

.legal-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* === ANIMATIONS === */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Nav Overlay */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: #000;
    z-index: 2000;
    padding: 8rem 2rem;
    transition: right 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    border-left: 3px solid var(--accent);
}

.mobile-nav.open {
    right: 0;
}

.mobile-nav a {
    font-size: 2rem;
    font-family: 'DM Serif Display', serif;
}

.overlay-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2.5rem;
    cursor: pointer;
}

/* === RESPONSIVE FIXES === */
@media (max-width: 480px) {
    .hero-glass-card {
        padding: 2rem 1.5rem;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .feature-card {
        padding: 2rem;
    }
    .slider-container {
        height: 350px;
    }
}
