:root {
    /* Color Palette - Modern Arcade */
    --bg-color: #0d0e15;
    --text-color: #e0e0e0;
    --primary-color: #ff007f; /* Neon Pink */
    --secondary-color: #00f3ff; /* Neon Blue */
    --accent-color: #7000ff; /* Deep Purple */
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    /* Fonts */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(112, 0, 255, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(0, 243, 255, 0.1), transparent 25%);
    background-attachment: fixed;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.neon-text {
    color: #fff;
    text-shadow: 
        0 0 5px #fff,
        0 0 10px #fff,
        0 0 20px var(--primary-color),
        0 0 40px var(--primary-color),
        0 0 80px var(--primary-color);
}

.neon-link {
    color: var(--secondary-color);
    text-decoration: none;
    transition: 0.3s ease;
}

.neon-link:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--secondary-color), 0 0 20px var(--secondary-color);
}

/* Utility Classes */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.primary-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 0, 127, 0.5);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 0, 127, 0.8);
}

.secondary-btn {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--glass-border);
}

.secondary-btn:hover {
    background: rgba(255,255,255,0.1);
}

.play-btn {
    background-color: var(--secondary-color);
    color: #000;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.4);
}
.play-btn:hover {
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.8);
}

.android-btn {
    background-color: #3ddc84;
    color: #000;
    opacity: 0.5;
    cursor: not-allowed;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    z-index: 1000;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.nav-links a:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 8px var(--secondary-color);
}

.lang-switch {
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: 1px solid var(--glass-border);
    padding: 5px;
    border-radius: 5px;
    outline: none;
    cursor: pointer;
    font-family: var(--font-body);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
    margin-top: 50px;
}

.hero-content {
    padding: 50px;
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero-image-container {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.hero-image {
    max-width: 350px;
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.4), 0 0 15px rgba(255, 0, 127, 0.4);
    animation: pulse 3s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 20px rgba(0, 243, 255, 0.4), 0 0 10px rgba(255, 0, 127, 0.4); }
    100% { transform: scale(1.05); box-shadow: 0 0 40px rgba(0, 243, 255, 0.6), 0 0 25px rgba(255, 0, 127, 0.6); }
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #bbb;
}

/* Ad Placeholder */
.ad-placeholder {
    width: 100%;
    max-width: 970px;
    height: 90px;
    background: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.02),
        rgba(255, 255, 255, 0.02) 10px,
        rgba(255, 255, 255, 0.05) 10px,
        rgba(255, 255, 255, 0.05) 20px
    );
    border: 1px dashed rgba(255,255,255,0.2);
    margin: 40px auto;
    display: none; /* TODO: Cambiare in 'flex' quando AdSense è approvato */
    justify-content: center;
    align-items: center;
    color: rgba(255,255,255,0.3);
    font-family: var(--font-heading);
    text-transform: uppercase;
}

/* Games Section */
.games-section, .about-section, .history-section, .contact-section, .legal-section {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: #aaa;
    margin-bottom: 50px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.game-card {
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-10px);
}

.game-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--glass-border);
    position: relative;
}

.placeholder-img {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.3);
}

.placeholder-img .neon-icon {
    font-size: 4rem;
    color: var(--secondary-color);
    text-shadow: 0 0 10px var(--secondary-color);
    font-family: var(--font-heading);
}

.game-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.game-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.game-info p {
    color: #ccc;
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.game-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.coming-soon {
    opacity: 0.7;
}

/* About & History Sections */
.about-content, .history-content {
    padding: 40px;
}

.about-text p, .history-text p {
    margin-bottom: 20px;
    color: #ccc;
    font-size: 1.1rem;
}

.insert-coin-container {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 10px;
}

.insert-coin {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--primary-color);
}

.blink {
    animation: blinker 1s step-start infinite;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

/* Contact Section */
.contact-form {
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-heading);
    color: var(--secondary-color);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 0, 127, 0.2);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input {
    width: auto;
    margin-top: 5px;
    cursor: pointer;
}

.checkbox-group label {
    font-family: var(--font-body);
    color: #ccc;
    font-size: 0.95rem;
    text-transform: none;
    margin-bottom: 0;
    cursor: pointer;
}

.contact-form button {
    width: 100%;
}

.direct-contact {
    margin-top: 30px;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.8);
    border-top: 1px solid var(--primary-color);
    padding: 40px 5% 20px;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 30px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer-links h4 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

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

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    color: #777;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

.creator-credits {
    margin-top: 10px;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    z-index: 9999;
    padding: 20px;
    border-left: 4px solid var(--primary-color);
}

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

.cookie-content h3 {
    margin-bottom: 10px;
    color: #fff;
}

.cookie-content p {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 15px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

/* Media Queries */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: var(--bg-color);
        padding: 20px 0;
        border-bottom: 1px solid var(--primary-color);
    }

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

    .hamburger {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-content {
        padding: 30px 20px;
    }

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