/* Premium/Luxury Theme - JochenBach.de */

/* CSS Variables - Premium Gold + Purple + Black */
:root {
    --primary-color: #d4af37;
    --secondary-color: #8b5cf6;
    --background-dark: #0a0a0a;
    --background-secondary: #1a1a1a;
    --text-light: #ffffff;
    --text-gray: #d4d4d4;
    --accent-color: #ffd700;
    --success-color: #4caf50;
    --danger-color: #f44336;
    --border-color: #3a3a3a;
    --glow-color: rgba(212, 175, 55, 0.5);
    --header-height: 70px;
    --spacing-sm: 10px;
    --spacing-md: 20px;
    --spacing-lg: 40px;
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
}

/* Ensure main content is always interactive */
main, section, article, .container, .hero, .games-grid, .article-content,
.header, .footer, .navbar, .nav-menu, .game-card, .article-card, .guide-card, .review-card {
    pointer-events: auto !important;
    position: relative;
    z-index: 1;
}

/* Ensure body is interactive when popups are hidden */
body {
    pointer-events: auto !important;
}

/* Override popup blocking when hidden */
.age-popup.hidden ~ *,
.cookie-banner.hidden ~ * {
    pointer-events: auto !important;
}

html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--background-dark);
    color: var(--text-light);
    line-height: 1.6;
    pointer-events: auto !important;
    position: relative;
    z-index: 1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    line-height: 1.2;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--glow-color);
}

/* Header Styles */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--background-dark);
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-section a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
    text-decoration: none;
    text-shadow: 0 0 10px var(--glow-color);
}

.free-badge {
    background: var(--success-color);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-menu li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 5px 10px;
}

.nav-menu li a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 5px var(--glow-color);
}

.mobile-menu-toggle {
    display: none;
    background: rgba(212, 175, 55, 0.2);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    color: var(--accent-color);
    font-size: 1.8rem;
    cursor: pointer !important;
    padding: 8px 12px;
    line-height: 1;
    transition: all 0.3s ease;
    z-index: 1001 !important;
    position: relative;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    pointer-events: auto !important;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.mobile-menu-toggle:hover {
    background: rgba(212, 175, 55, 0.4);
    box-shadow: 0 0 10px var(--glow-color);
}

.mobile-menu-toggle.active .burger-icon {
    transform: rotate(90deg);
}

.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    width: 100%;
    background: var(--background-secondary);
    z-index: 999 !important;
    padding: 20px;
    border-bottom: 2px solid var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transform: translateY(-100%);
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    box-sizing: border-box;
    margin: 0;
    display: none;
}

.mobile-menu.active {
    transform: translateY(0) !important;
    pointer-events: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

.mobile-menu ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    display: block !important;
    position: relative !important;
    float: none !important;
    clear: both !important;
}

.mobile-menu ul li {
    margin: 0 !important;
    margin-bottom: 10px !important;
    padding: 0 !important;
    width: 100% !important;
    display: block !important;
    position: relative !important;
    float: none !important;
    clear: both !important;
    list-style: none !important;
}

.mobile-menu ul li:last-child {
    margin-bottom: 0 !important;
}

.mobile-menu ul li a {
    color: var(--text-light) !important;
    text-decoration: none !important;
    font-size: 1.1rem;
    display: block !important;
    width: 100% !important;
    padding: 15px !important;
    border-radius: 5px;
    transition: all 0.3s ease;
    pointer-events: auto !important;
    cursor: pointer !important;
    -webkit-tap-highlight-color: rgba(212, 175, 55, 0.3);
    user-select: none;
    box-sizing: border-box !important;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    position: relative !important;
    margin: 0 !important;
    float: none !important;
    clear: both !important;
}

.mobile-menu ul li a:hover {
    background: rgba(212, 175, 55, 0.3);
    color: var(--accent-color);
    border-color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding-top: 120px;
    min-height: calc(100vh - var(--header-height));
    background: linear-gradient(135deg, var(--background-dark) 0%, var(--background-secondary) 100%);
    background-size: cover;
    background-position: center top;
    background-attachment: scroll;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.7);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 40px 20px;
}

.btn-hero {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 0 20px var(--glow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--glow-color);
}

/* Benefits Section */
.benefits {
    padding: 80px 20px;
    background: var(--background-secondary);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-card {
    background: var(--background-dark);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    border-color: var(--accent-color);
}

/* Games Section */
.games {
    padding: 80px 20px;
    background: var(--background-dark);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.game-card {
    background: var(--background-secondary);
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    border-color: var(--accent-color);
}

.game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--background-dark);
}

.game-info {
    padding: 20px;
}

.game-info h3 {
    color: var(--accent-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.game-info p {
    color: var(--text-gray);
    margin-bottom: 15px;
    line-height: 1.6;
}

.game-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--accent-color);
    font-size: 1.1rem;
}

.btn-play {
    display: inline-block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-play:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    box-shadow: 0 0 15px var(--glow-color);
}

/* FAQ Section */
.faq {
    padding: 80px 20px;
    background: var(--background-secondary);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--background-dark);
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item.active {
    border-color: var(--accent-color);
}

.faq-question {
    width: 100%;
    padding: 20px;
    background: transparent;
    border: none;
    color: var(--text-light);
    text-align: left;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--accent-color);
}

.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px 20px;
    color: var(--text-gray);
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 20px 20px;
}

/* Reviews Section */
.reviews {
    padding: 80px 20px;
    background: var(--background-dark);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.review-card {
    background: var(--background-secondary);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    border-color: var(--accent-color);
}

/* Leaderboard Section */
.leaderboard {
    padding: 80px 20px;
    background: var(--background-secondary);
}

.leaderboard-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.leaderboard-card {
    background: var(--background-dark);
    padding: 25px;
    border-radius: 15px;
    border: 2px solid var(--border-color);
    text-align: center;
    min-width: 200px;
    flex: 1 1 200px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.leaderboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.leaderboard-card:first-child {
    border-color: var(--primary-color);
}

/* Disclaimer Section */
.disclaimer-section {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    padding: 40px 20px;
    border-top: 3px solid var(--accent-color);
    border-bottom: 3px solid var(--accent-color);
}

.disclaimer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.disclaimer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.disclaimer-badges .badge {
    background: rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
}

/* Footer */
.footer {
    background: var(--background-dark);
    padding: 60px 20px 30px;
    border-top: 2px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-section h3,
.footer-section h4 {
    color: var(--accent-color);
    margin-bottom: 20px;
}

.footer-section p {
    color: var(--text-gray);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.compliance-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    margin-bottom: 20px;
}

.compliance-logo {
    height: 40px !important;
    width: auto !important;
    background: var(--text-light);
    padding: 8px;
    border-radius: 8px;
    opacity: 0.9;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    box-sizing: border-box;
    margin: 0;
    text-decoration: none;
    overflow: hidden;
}

.compliance-logo:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    border-color: var(--primary-color);
}

.compliance-logo img {
    height: 35px !important;
    width: auto !important;
    max-width: 120px !important;
    object-fit: contain;
    display: block;
    margin: 0;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    text-align: center;
    color: var(--text-gray);
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom a {
    color: var(--accent-color);
    text-decoration: none;
}

/* Age Popup */
.age-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    visibility: visible;
}

.age-popup:not(.hidden):not([style*="display: none"]) {
    display: flex !important;
}

.age-popup[style*="display: none"],
.age-popup.hidden {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -1 !important;
    opacity: 0 !important;
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

.age-popup-content {
    background: var(--background-dark);
    padding: 40px;
    border-radius: 15px;
    border: 2px solid var(--primary-color);
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 30px var(--glow-color);
}

.age-popup-content h2 {
    color: var(--accent-color);
    margin-bottom: 20px;
}

.age-popup-content p {
    color: var(--text-gray);
    margin-bottom: 30px;
    line-height: 1.6;
}

.age-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-primary,
.btn-secondary {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover {
    box-shadow: 0 0 15px var(--glow-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--background-secondary);
    color: var(--text-light);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 350px;
    background: linear-gradient(135deg, var(--background-dark) 0%, var(--background-secondary) 100%);
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    padding: 1.5rem;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
    visibility: visible;
}

.cookie-banner:not(.hidden):not([style*="display: none"]) {
    display: block !important;
}

.cookie-banner[style*="display: none"],
.cookie-banner.hidden {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -1 !important;
    opacity: 0 !important;
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

.cookie-content {
    color: var(--text-light);
}

.cookie-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 0.9rem;
}

.cookie-content a {
    color: var(--accent-color);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 900px) {
    .nav-menu {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        pointer-events: auto !important;
    }
    
    .mobile-menu {
        display: none !important;
    }
    
    .mobile-menu.active {
        display: block !important;
    }
    
    .benefits-grid,
    .games-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .leaderboard-grid {
        flex-direction: column;
    }
    
    .cookie-banner {
        right: 10px;
        left: 10px;
        max-width: none;
        bottom: 10px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
        min-height: calc(100vh - 60px);
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.2rem;
    }
    
    .benefits,
    .games,
    .faq,
    .reviews,
    .leaderboard {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0 10px;
    }
    
    .logo-section a {
        font-size: 1.2rem;
    }
    
    .free-badge {
        font-size: 0.6rem;
        padding: 3px 6px;
    }
    
    .age-popup-content {
        padding: 30px 20px;
    }
    
    .age-buttons {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}
