/* ============================================
   Coleccion Gamer - Premium Style CSS
   Theme: Dark luxury with gold accents
   ============================================ */

/* CSS Variables - Premium Color Palette */
:root {
    /* Primary Colors */
    --primary-color: #d4af37; /* Gold */
    --secondary-color: #8b7355; /* Bronze */
    --accent-color: #ffd700; /* Bright Gold */
    
    /* Background Colors */
    --background-dark: #1a1a2e;
    --background-secondary: #16213e;
    --background-card: #0f1626;
    
    /* Text Colors */
    --text-light: #e8e8e8;
    --text-muted: #a0a0a0;
    --text-dark: #2c2c2c;
    
    /* Status Colors */
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Header */
    --header-height: 70px;
    
    /* Border Radius */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(212, 175, 55, 0.1);
    --shadow-md: 0 4px 16px rgba(212, 175, 55, 0.15);
    --shadow-lg: 0 8px 32px rgba(212, 175, 55, 0.2);
    --glow-gold: 0 0 20px rgba(212, 175, 55, 0.5);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

html, body {
    overflow-x: hidden !important;
    width: 100% !important;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--background-dark) 0%, var(--background-secondary) 100%);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-muted);
    word-wrap: break-word;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--text-dark);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-gold);
    color: var(--text-dark);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

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

.btn-play {
    width: 100%;
    margin-top: var(--spacing-sm);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--text-dark);
    font-weight: 700;
}

.btn-play:hover {
    transform: scale(1.05);
    box-shadow: var(--glow-gold);
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary-color);
    box-shadow: var(--shadow-md);
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    gap: var(--spacing-md);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-shrink: 0;
}

.site-logo {
    font-size: 1.5rem;
    color: var(--primary-color);
    text-shadow: var(--glow-gold);
    margin: 0;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.free-badge {
    background: var(--success-color);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Navigation */
.navbar {
    display: flex;
    align-items: center;
}

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

.nav-link {
    color: var(--text-light);
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--text-dark);
    box-shadow: var(--glow-gold);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

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

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 120px;
    background: url('../images/hero_desktop_bg.png') center center / cover;
    background-attachment: scroll;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(22, 33, 62, 0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--primary-color);
    text-shadow: var(--glow-gold);
    margin-bottom: var(--spacing-md);
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--text-light);
    margin-bottom: var(--spacing-xl);
}

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

/* Section Styles */
.section-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    text-shadow: var(--glow-gold);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: var(--spacing-xl);
    font-size: 1.125rem;
}

/* Benefits Section */
.benefits-section {
    padding: var(--spacing-xl) 0;
    background: var(--background-card);
}

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

.benefit-card {
    background: linear-gradient(135deg, var(--background-secondary) 0%, var(--background-dark) 100%);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

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

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

.benefit-card h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.benefit-card p {
    color: var(--text-muted);
}

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

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

.game-card {
    background: var(--background-card);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

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

.game-image {
    position: relative;
    width: 100%;
    height: 256px;
    overflow: hidden;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-overlay {
    position: absolute;
    top: var(--spacing-sm);
    left: var(--spacing-sm);
    right: var(--spacing-sm);
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

.game-tag {
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    animation: bounce 3s infinite;
}

.game-tag.free {
    background: var(--success-color);
    color: white;
}

.game-tag.no-money {
    background: var(--danger-color);
    color: white;
    animation-delay: 0.5s;
}

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

.game-info {
    padding: var(--spacing-md);
}

.game-info h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.game-info p {
    color: var(--text-muted);
    margin-bottom: var(--spacing-sm);
    font-size: 0.95rem;
}

.game-rating {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
}

.stars {
    color: var(--accent-color);
}

.rating-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Testimonials Section */
.testimonials-section {
    padding: var(--spacing-xl) 0;
    background: var(--background-card);
}

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

.testimonial-card {
    background: linear-gradient(135deg, var(--background-secondary) 0%, var(--background-dark) 100%);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-md);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

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

.testimonial-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--text-dark);
}

.user-info h4 {
    margin-bottom: 4px;
    color: var(--text-light);
}

.user-info .stars {
    font-size: 0.9rem;
}

.testimonial-text {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: var(--spacing-sm);
}

.testimonial-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Leaderboard Section */
.leaderboard-section {
    padding: var(--spacing-xl) 0;
}

.leaderboard-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: center;
    margin-top: var(--spacing-xl);
}

.leaderboard-card {
    background: linear-gradient(135deg, var(--background-secondary) 0%, var(--background-dark) 100%);
    padding: var(--spacing-md);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    min-width: 250px;
    max-width: 300px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

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

.rank-badge {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    background: var(--background-card);
    color: var(--text-light);
    border: 3px solid var(--primary-color);
}

.rank-badge.gold {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: var(--text-dark);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.rank-badge.silver {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
    color: var(--text-dark);
    box-shadow: 0 0 15px rgba(192, 192, 192, 0.5);
}

.rank-badge.bronze {
    background: linear-gradient(135deg, #cd7f32 0%, #e89b5f 100%);
    color: var(--text-dark);
    box-shadow: 0 0 15px rgba(205, 127, 50, 0.5);
}

.player-info h4 {
    margin-bottom: 4px;
    color: var(--primary-color);
}

.player-info .points {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* FAQ Section */
.faq-section {
    padding: var(--spacing-xl) 0;
    background: var(--background-card);
}

.faq-container {
    max-width: 800px;
    margin: var(--spacing-xl) auto 0;
}

.faq-item {
    background: var(--background-secondary);
    margin-bottom: var(--spacing-sm);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-color);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 var(--spacing-md) var(--spacing-md);
    color: var(--text-muted);
    line-height: 1.7;
}

/* Disclaimer Section */
.disclaimer-section {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    padding: var(--spacing-lg) 0;
    border-top: 3px solid var(--accent-color);
    border-bottom: 3px solid var(--accent-color);
}

.disclaimer-content {
    text-align: center;
}

.disclaimer-content h3 {
    color: white;
    margin-bottom: var(--spacing-md);
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.disclaimer-content p {
    color: white;
    margin-bottom: var(--spacing-sm);
    line-height: 1.7;
    font-size: 1rem;
}

.disclaimer-content strong {
    font-weight: 700;
}

.disclaimer-badges {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--spacing-md);
}

.disclaimer-badges .badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    border: 2px solid white;
}

/* Footer */
.footer {
    background: var(--background-card);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    border-top: 2px solid var(--primary-color);
}

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

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

.footer-section p {
    color: var(--text-muted);
    line-height: 1.7;
}

.footer-disclaimer {
    color: var(--accent-color) !important;
    font-weight: bold;
    margin-top: var(--spacing-sm);
}

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

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

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

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

.compliance-logos {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    margin: var(--spacing-md) 0;
}

.compliance-logo {
    height: 40px !important;
    width: auto !important;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px;
    border-radius: 8px;
    opacity: 0.9;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-color);
    object-fit: contain;
}

.compliance-logo:hover {
    opacity: 1;
    transform: scale(1.05);
    box-shadow: var(--glow-gold);
}

.help-resources {
    margin-top: var(--spacing-md);
}

.help-resources p {
    color: var(--text-muted);
    margin-bottom: var(--spacing-sm);
}

.age-restriction {
    display: inline-block;
    padding: 8px 16px;
    background: var(--danger-color);
    color: white;
    border-radius: var(--border-radius-sm);
    font-weight: bold;
    font-size: 1.25rem;
    margin-top: var(--spacing-sm);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--primary-color);
}

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

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

/* Popups */
.age-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.popup-content {
    background: linear-gradient(135deg, var(--background-secondary) 0%, var(--background-dark) 100%);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    max-width: 500px;
    width: 90%;
    text-align: center;
    border: 3px solid var(--primary-color);
    box-shadow: var(--glow-gold);
}

.popup-content h2 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

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

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

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 400px;
    background: linear-gradient(135deg, var(--background-dark) 0%, var(--background-secondary) 100%);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md);
    z-index: 9999;
    box-shadow: var(--glow-gold);
    display: none;
}

.cookie-banner h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.cookie-banner p {
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
    font-size: 0.95rem;
}

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

.cookie-buttons .btn {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }
    
    .main-header {
        height: 60px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: calc(var(--header-height) - 1px);
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(26, 26, 46, 0.98);
        backdrop-filter: blur(10px);
        padding: var(--spacing-md);
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-bottom: 2px solid var(--primary-color);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active {
        max-height: 600px;
    }
    
    .nav-link {
        display: block;
        padding: var(--spacing-sm);
        border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    }
    
    .hero {
        padding-top: 100px;
        margin-top: 60px;
        background-position: center top;
        min-height: calc(100vh - 60px);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .benefits-grid,
    .games-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .leaderboard-grid {
        flex-direction: column;
        align-items: stretch;
    }
    
    .leaderboard-card {
        max-width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .compliance-logos {
        justify-content: center;
    }
    
    .cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: none;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Accessibility */
.btn:focus,
.nav-link:focus,
.faq-question:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .main-header,
    .age-popup,
    .cookie-banner,
    .mobile-menu-toggle {
        display: none !important;
    }
}

