/* ===================================
   CSS Variables - Modern Gray Theme
   =================================== */
:root {
    /* Color Palette */
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;

    /* Accent Colors */
    --color-primary: #2563eb;
    --color-primary-hover: #1d4ed8;
    --color-success: #10b981;
    --color-error: #ef4444;
    --color-warning: #f59e0b;

    /* Typography */
    --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-family-display: 'Sora', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-size-xs: 0.8125rem;
    --font-size-sm: 0.9375rem;
    --font-size-base: 1.0625rem;
    --font-size-lg: 1.1875rem;
    --font-size-xl: 1.375rem;
    --font-size-2xl: 1.625rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3.25rem;
    --font-size-6xl: 4rem;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
}

/* ===================================
   Reset & Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: 1.65;
    color: var(--color-gray-800);
    background-color: var(--color-gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.011em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ===================================
   Layout Components
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* ===================================
   Navigation
   =================================== */
.nav {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-gray-200);
    z-index: 1000;
    transition: all var(--transition-base);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo a {
    display: flex;
    align-items: center;
}

.nav-logo .logo {
    height: 40px;
    width: auto;
    display: block;
    transition: transform var(--transition-base);
}

.nav-logo .logo:hover {
    transform: scale(1.05);
}

.logo-placeholder {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-gray-900);
    background: linear-gradient(135deg, var(--color-gray-800), var(--color-gray-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: var(--spacing-xl);
}

.nav-links a {
    font-weight: 500;
    color: var(--color-gray-600);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-gray-900);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-gray-900);
    border-radius: 2px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: var(--spacing-xs);
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-gray-700);
    border-radius: 2px;
    transition: all var(--transition-base);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(180deg, var(--color-gray-50) 0%, white 100%);
    text-align: center;
}

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

.hero-title {
    font-family: var(--font-family-display);
    font-size: var(--font-size-5xl);
    font-weight: 800;
    color: var(--color-gray-900);
    margin-bottom: var(--spacing-lg);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: var(--color-gray-600);
    margin-bottom: var(--spacing-2xl);
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: -0.015em;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md) var(--spacing-xl);
    font-weight: 600;
    font-size: var(--font-size-base);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: var(--color-gray-900);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--color-gray-800);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: white;
    color: var(--color-gray-900);
    border: 2px solid var(--color-gray-200);
}

.btn-secondary:hover {
    border-color: var(--color-gray-300);
    background: var(--color-gray-50);
}

/* ===================================
   Games Section
   =================================== */
.games {
    padding: var(--spacing-3xl) 0;
}

.section-title {
    font-family: var(--font-family-display);
    font-size: var(--font-size-4xl);
    font-weight: 700;
    text-align: center;
    color: var(--color-gray-900);
    margin-bottom: var(--spacing-3xl);
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.game-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: var(--spacing-xl);
    padding: var(--spacing-2xl);
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-xl);
    transition: all var(--transition-base);
}

.game-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.game-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-icon .app-icon {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.game-card:hover .app-icon {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.icon-placeholder {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--color-gray-100), var(--color-gray-200));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    box-shadow: var(--shadow-sm);
}

.game-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.game-title {
    font-family: var(--font-family-display);
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: var(--spacing-xs);
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.game-description {
    color: var(--color-gray-600);
    line-height: 1.7;
    font-size: var(--font-size-base);
}

.game-features {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    margin-top: var(--spacing-xs);
}

.feature-tag {
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--color-gray-100);
    color: var(--color-gray-700);
    font-size: var(--font-size-sm);
    font-weight: 500;
    border-radius: var(--radius-md);
}

.app-store-btn {
    margin-top: var(--spacing-md);
    display: inline-block;
    transition: transform var(--transition-base);
}

.app-store-btn:hover {
    transform: scale(1.05);
}

/* ===================================
   About Section
   =================================== */
.about {
    padding: var(--spacing-3xl) 0;
    background: white;
}

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

.about-text {
    font-size: var(--font-size-lg);
    color: var(--color-gray-600);
    line-height: 1.8;
    letter-spacing: -0.01em;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--color-gray-900);
    color: var(--color-gray-300);
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
    margin-top: var(--spacing-3xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h4 {
    font-family: var(--font-family-display);
    color: white;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.01em;
}

.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-section a {
    color: var(--color-gray-400);
    transition: color var(--transition-fast);
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--color-gray-800);
    font-size: var(--font-size-sm);
    color: var(--color-gray-500);
}

.footer-bottom p {
    margin-bottom: var(--spacing-xs);
}

/* ===================================
   Legal Pages
   =================================== */
.legal-page {
    padding: var(--spacing-3xl) 0;
    background: white;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h1 {
    font-family: var(--font-family-display);
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.legal-intro {
    color: var(--color-gray-500);
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-2xl);
}

.legal-section {
    margin-bottom: var(--spacing-2xl);
}

.legal-section h2 {
    font-family: var(--font-family-display);
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: var(--spacing-md);
    margin-top: var(--spacing-xl);
    letter-spacing: -0.02em;
}

.legal-section h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--color-gray-800);
    margin-bottom: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.legal-section p {
    color: var(--color-gray-600);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.legal-section ul {
    list-style: disc;
    padding-left: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
}

.legal-section li {
    color: var(--color-gray-600);
    margin-bottom: var(--spacing-xs);
    line-height: 1.7;
}

.legal-section a {
    color: var(--color-primary);
    text-decoration: underline;
}

.legal-section a:hover {
    color: var(--color-primary-hover);
}

.contact-info {
    background: var(--color-gray-50);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin-top: var(--spacing-md);
}

.contact-info p {
    margin-bottom: var(--spacing-xs);
}

/* ===================================
   Support Page
   =================================== */
.support-page {
    padding: var(--spacing-3xl) 0;
    background: var(--color-gray-50);
}

.support-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.support-header h1 {
    font-family: var(--font-family-display);
    font-size: var(--font-size-4xl);
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.support-header p {
    font-size: var(--font-size-lg);
    color: var(--color-gray-600);
    max-width: 700px;
    margin: 0 auto;
}

.support-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: var(--spacing-2xl);
}

/* ===================================
   Contact Form
   =================================== */
.contact-form-wrapper {
    background: white;
    padding: var(--spacing-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.form-group label {
    font-weight: 600;
    color: var(--color-gray-700);
    font-size: var(--font-size-sm);
}

.required {
    color: var(--color-error);
}

.optional {
    font-weight: 400;
    color: var(--color-gray-500);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: var(--spacing-md);
    border: 2px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: var(--font-size-base);
    color: var(--color-gray-900);
    transition: all var(--transition-fast);
    background: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-gray-400);
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    margin-top: var(--spacing-md);
    position: relative;
}

.submit-btn .btn-loading {
    display: none;
}

.submit-btn.loading .btn-text {
    display: none;
}

.submit-btn.loading .btn-loading {
    display: inline;
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-message {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    font-weight: 500;
    text-align: center;
    display: none;
}

.form-message.show {
    display: block;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
}

/* ===================================
   Contact Info Sidebar
   =================================== */
.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.info-card {
    background: white;
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.info-card h3 {
    font-family: var(--font-family-display);
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
}

.info-card p {
    color: var(--color-gray-600);
    line-height: 1.7;
}

.info-item {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--color-gray-600);
}

.info-item strong {
    display: block;
    color: var(--color-gray-900);
    font-weight: 600;
    margin-bottom: 2px;
}

.info-item a {
    color: var(--color-primary);
}

.info-item a:hover {
    color: var(--color-primary-hover);
}

.game-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.game-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--color-gray-50);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.game-link:hover {
    background: var(--color-gray-100);
    transform: translateX(4px);
}

.game-link-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.game-link span:first-child {
    font-size: var(--font-size-xl);
}

.game-link span {
    font-weight: 500;
    color: var(--color-gray-700);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    .support-content {
        grid-template-columns: 1fr;
    }

    .contact-info-wrapper {
        order: -1;
    }

    .game-card {
        grid-template-columns: 100px 1fr;
    }

    .icon-placeholder {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: var(--font-size-4xl);
    }

    .hero-subtitle {
        font-size: var(--font-size-lg);
    }

    .section-title {
        font-size: var(--font-size-3xl);
    }

    .game-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .game-icon {
        justify-content: center;
    }

    .game-info {
        align-items: center;
    }

    .game-features {
        justify-content: center;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

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

    .contact-info-wrapper {
        display: grid;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-3xl: 3rem;
    }

    .hero-title {
        font-size: var(--font-size-3xl);
    }

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

    .btn {
        width: 100%;
    }

    .game-title {
        font-size: var(--font-size-xl);
    }

    .contact-form-wrapper {
        padding: var(--spacing-lg);
    }
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero,
.game-card,
.info-card {
    animation: fadeIn 0.6s ease-out;
}

/* ===================================
   Print Styles
   =================================== */
@media print {
    .nav,
    .footer,
    .hero-cta,
    .contact-form {
        display: none;
    }

    body {
        background: white;
    }

    .legal-content {
        max-width: 100%;
    }
}
