/* Finnish Social Gaming Platform - Gem Dominion Theme */

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

:root {
    /* Gem-inspired colors */
    --primary: #6B46C1;
    --primary-dark: #553C9A;
    --secondary: #10B981;
    --accent: #F59E0B;
    --ruby: #E11D48;
    --sapphire: #3B82F6;
    --emerald: #10B981;
    --topaz: #FBBF24;
    --amethyst: #A855F7;

    /* Neutrals */
    --dark-bg: #0F172A;
    --dark-card: #1E293B;
    --dark-hover: #334155;
    --text-primary: #F1F5F9;
    --text-secondary: #CBD5E1;
    --text-muted: #94A3B8;

    /* System */
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;

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

    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 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);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(107, 70, 193, 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Age Gate */
.age-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
}

.age-gate.hidden {
    display: none;
}

.age-gate-content {
    background: linear-gradient(135deg, var(--dark-card) 0%, #2D3748 100%);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-xl);
    text-align: center;
    max-width: 500px;
    box-shadow: var(--shadow-xl);
    border: 2px solid var(--primary);
}

.age-gate-content h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.age-gate-content p {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

.age-gate-notice {
    font-size: 0.875rem !important;
    color: var(--text-muted) !important;
}

.age-gate-buttons {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.age-gate-buttons .btn {
    flex: 1;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark-card);
    border-top: 2px solid var(--primary);
    padding: var(--spacing-md);
    z-index: 9999;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
}

.cookie-banner.hidden {
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.cookie-content p {
    flex: 1;
    min-width: 250px;
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.cookie-buttons {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
    flex-wrap: wrap;
}

.cookie-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.875rem;
    white-space: nowrap;
}

.cookie-link:hover {
    text-decoration: underline;
}

/* Header */
.header {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(107, 70, 193, 0.2);
}

.navbar {
    padding: var(--spacing-md) 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-icon {
    font-size: 2rem;
}

.logo-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

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

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

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

/* Hero */
.hero {
    position: relative;
    padding: var(--spacing-2xl) 0;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 50%, #1E293B 100%);
    z-index: -1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(107, 70, 193, 0.15) 0%, transparent 70%);
    animation: pulse 8s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

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

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-notice {
    margin-top: var(--spacing-lg);
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(107, 70, 193, 0.5);
}

.btn-secondary {
    background: var(--dark-card);
    color: var(--text-primary);
    border: 1px solid var(--dark-hover);
}

.btn-secondary:hover {
    background: var(--dark-hover);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--text-muted);
}

/* Trust Banner */
.trust-banner {
    background: linear-gradient(135deg, var(--accent) 0%, var(--ruby) 100%);
    padding: var(--spacing-lg);
    margin: var(--spacing-2xl) 0;
}

.trust-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.trust-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.trust-text {
    flex: 1;
    min-width: 250px;
}

.trust-text h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
}

.trust-text p {
    margin: 0;
    opacity: 0.9;
}

.trust-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.trust-link:hover {
    text-decoration: underline;
}

/* Sections */
section {
    padding: var(--spacing-2xl) 0;
}

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

.section-badge {
    display: inline-block;
    background: rgba(107, 70, 193, 0.1);
    color: var(--primary);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.section-header h2 {
    font-size: clamp(1.875rem, 4vw, 2.5rem);
    margin-bottom: var(--spacing-sm);
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* Featured Game */
.featured-game {
    background: var(--dark-card);
}

.game-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.game-image {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.game-placeholder {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(107, 70, 193, 0.3);
    border-radius: var(--radius-lg);
}

.gem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
}

.gem {
    font-size: 4rem;
    animation: float 3s ease-in-out infinite;
}

.gem:nth-child(1) { animation-delay: 0s; }
.gem:nth-child(2) { animation-delay: 0.5s; }
.gem:nth-child(3) { animation-delay: 1s; }
.gem:nth-child(4) { animation-delay: 1.5s; }
.gem:nth-child(5) { animation-delay: 2s; }
.gem:nth-child(6) { animation-delay: 2.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.game-info h3 {
    font-size: 1.875rem;
    margin-bottom: var(--spacing-md);
}

.game-info p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.game-features {
    list-style: none;
    margin: var(--spacing-lg) 0;
}

.game-features li {
    padding: var(--spacing-sm) 0;
    color: var(--text-secondary);
}

/* About */
.about-intro {
    text-align: center;
    font-size: 1.125rem;
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
    color: var(--text-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.about-card {
    background: var(--dark-card);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid rgba(107, 70, 193, 0.2);
    transition: all 0.3s;
}

.about-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.about-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.about-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.about-card p {
    color: var(--text-secondary);
}

/* Features */
.features {
    background: var(--dark-card);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.feature-card {
    background: var(--dark-bg);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(107, 70, 193, 0.2);
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.testimonial-card {
    background: var(--dark-card);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(107, 70, 193, 0.2);
}

.stars {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
}

.testimonial-text {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--dark-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
}

.author-location {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Footer */
.footer {
    background: var(--dark-card);
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
    border-top: 1px solid rgba(107, 70, 193, 0.2);
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: var(--spacing-md);
}

.footer-section h3 {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

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

.footer-section ul li {
    margin-bottom: var(--spacing-sm);
}

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

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

.contact-list a {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.footer-logos {
    margin: var(--spacing-2xl) 0;
    text-align: center;
}

.footer-logos h4 {
    margin-bottom: var(--spacing-md);
}

.support-logos {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.support-logo {
    width: 150px;
    display: flex;
    align-items: center;
}

.support-logo a {
    display: block;
    width: 100%;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.support-logo a:hover {
    transform: translateY(-2px);
    opacity: 0.8;
}

.support-logo img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(107, 70, 193, 0.1);
}

.footer-notice {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error);
    color: var(--text-primary);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark-card);
        flex-direction: column;
        padding: var(--spacing-md);
        gap: var(--spacing-sm);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s;
        border-bottom: 1px solid rgba(107, 70, 193, 0.2);
    }

    .nav-menu.active {
        max-height: 400px;
    }

    .game-showcase {
        grid-template-columns: 1fr;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .trust-content {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .age-gate-buttons {
        flex-direction: column;
    }

    .hero {
        min-height: 500px;
    }

    .gem-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}