@import "tailwindcss";

:root {
    --color-bg: #FAFAFA;
    --color-bg-alt: #FFFFFF;
    --color-bg-card: #FFFFFF;
    --color-primary: #d21111;
    --color-primary-dark: #b00e0e;
    --color-accent: #6366F1;
    --color-text-main: #0A0A0A;
    --color-text-muted: #6B7280;
    --color-text-light: #9CA3AF;
    --color-border: #E5E7EB;
    --color-image-bg: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%);

    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-logo: 'Bungee', cursive;
}

[data-theme="dark"] {
    --color-bg: #0A0A0A;
    --color-bg-alt: #121212;
    --color-bg-card: #1a1a1a;
    --color-primary: #d21111;
    --color-primary-dark: #b00e0e;
    --color-accent: #6366F1;
    --color-text-main: #FFFFFF;
    --color-text-muted: #9CA3AF;
    --color-text-light: #6B7280;
    --color-border: #2a2a2a;
    --color-image-bg: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    --font-logo: 'Bungee', cursive;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

::selection {
    background: var(--color-primary);
    color: white;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    transition: all 0.3s ease;
}

[data-theme="dark"] .header {
    background: rgba(18, 18, 18, 0.95);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .header.scrolled {
    background: rgba(18, 18, 18, 0.98);
    box-shadow: 0 2px 12px rgba(255, 255, 255, 0.05);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--color-text-main);
    font-weight: 400;
    font-size: 1.5rem;
    letter-spacing: 0;
    text-transform: uppercase;
    font-family: var(--font-logo);
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin-left: auto;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text-main);
    font-weight: 500;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--color-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 0;
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--color-text-main);
}

.theme-toggle:hover {
    background: var(--color-bg);
    border-color: var(--color-text-main);
}

.theme-toggle .sun-icon {
    display: block;
}

.theme-toggle .moon-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .sun-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: block;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
}

.mobile-menu-btn span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--color-text-main);
    border-radius: 2px;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 140px 0 100px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: var(--color-bg-alt);
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-text h1 {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
    color: var(--color-text-main);
}

.hero-text h1 span {
    color: var(--color-primary);
    display: block;
}

.hero-text p {
    font-size: 1.35rem;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(255, 59, 92, 0.25);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 59, 92, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--color-text-main);
    border: 2px solid var(--color-border);
}

.btn-outline:hover {
    border-color: var(--color-text-main);
    background: var(--color-bg);
}

.hero-image {
    display: none;
}

/* Games Section */
.games-section {
    padding: 100px 0;
    background: var(--color-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-text-main);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
}

.games-list {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    max-width: 1100px;
    margin: 0 auto;
}

.game-item {
    display: grid;
    grid-template-columns: 45% 1fr;
    gap: 4rem;
    align-items: center;
    padding: 3.5rem;
    background: var(--color-bg-alt);
    border-radius: 32px;
    border: 1px solid var(--color-border);
    transition: all 0.4s ease;
}

.game-item:nth-child(even) {
    grid-template-columns: 1fr 45%;
}

.game-item:hover {
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    transform: translateY(-4px);
}

.game-item:nth-child(even) .game-item-image {
    order: 2;
}

.game-item:nth-child(even) .game-item-content {
    order: 1;
}

.game-item-image {
    width: 100%;
    aspect-ratio: 1024 / 500;
    background: var(--color-image-bg);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.5s ease;
}

.game-item:hover .game-item-image {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.game-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.game-item:hover .game-item-image img {
    transform: scale(1.05);
}

.game-item-image .placeholder-icon {
    font-size: 6rem;
    opacity: 0.3;
}

.game-item-content {
    display: flex;
    flex-direction: column;
}

.game-genre {
    display: inline-block;
    background: var(--color-bg);
    color: var(--color-text-muted);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.game-item-content h3 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--color-text-main);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.game-item-content p {
    color: var(--color-text-muted);
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.game-links {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

.store-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    background: var(--color-bg);
    color: var(--color-text-main);
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
    border: 1px solid var(--color-border);
    white-space: nowrap;
}

.store-btn:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.store-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.store-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: var(--color-bg-alt);
    position: relative;
}

.about-content {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.about-text h2 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-text-main);
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.about-text p {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-text-main);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 1rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: var(--color-bg);
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

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

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--color-primary);
    color: white;
    padding: 1.25rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s;
    box-shadow: 0 4px 14px rgba(255, 59, 92, 0.25);
}

.contact-email:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 59, 92, 0.35);
    background: var(--color-primary-dark);
}

/* Privacy Policy Page */
.privacy-policy-section {
    padding: 140px 0 100px;
    min-height: 100vh;
    background: var(--color-bg);
}

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
}

.privacy-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-text-main);
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.privacy-content .intro {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.privacy-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.privacy-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-main);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.privacy-content p {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.privacy-content ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.privacy-content li {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.privacy-content a {
    color: var(--color-primary);
    text-decoration: none;
    transition: opacity 0.3s;
}

.privacy-content a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.partner-contacts {
    margin-top: 2rem;
}

.partner {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--color-bg-alt);
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

.partner strong {
    font-size: 1.125rem;
    color: var(--color-text-main);
    display: block;
    margin-bottom: 0.75rem;
}

.partner ul {
    margin: 0;
    padding-left: 1.5rem;
}

.partner li {
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background: var(--color-bg-alt);
    color: var(--color-text-muted);
    padding: 80px 0 0;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--color-border);
}

.footer-brand img {
    height: 50px;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-links h4,
.footer-social h4 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-text-main);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

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

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

.footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--color-text-main);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--color-bg);
    border-radius: 10px;
    color: var(--color-text-muted);
    transition: all 0.3s;
    border: 1px solid var(--color-border);
}

.social-icons a:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.footer-bottom {
    padding: 2rem 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--color-text-light);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 3.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        display: none;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--color-bg-alt);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--color-border);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    .nav-links.active {
        display: flex;
    }

    .hero-text h1 {
        font-size: 2.75rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .section-header h2,
    .about-text h2,
    .contact-content h2 {
        font-size: 2.5rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .game-item {
        grid-template-columns: 1fr !important;
        gap: 2rem;
        padding: 2rem;
    }

    .game-item:nth-child(even) .game-item-image,
    .game-item:nth-child(even) .game-item-content {
        order: 0;
    }

    .game-item-content h3 {
        font-size: 1.75rem;
    }

    .game-item-content p {
        font-size: 1rem;
    }
}
