/**
 * ============================================
 * PROJEKT: site26-de (VanGrey.de)
 * 
 * CSS ARCHITEKTUR: SMACSS (Scalable and Modular Architecture)
 * PALETTE: German Heritage
 * EFFEKT: Animated Gradients
 * TYPOGRAFIE: Classic Editorial (Merriweather + Source Sans Pro)
 * KNOEPFE: Outline Morph
 * ============================================
 */

/* ============================================
   BASE - SMACSS Base Layer
   ============================================ */
* {
    box-sizing: border-box;
    max-width: 100%;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden !important;
    width: 100% !important;
}

:root {
    /* German Heritage Color Palette */
    --heritage-black: #1a1a1a;
    --classic-red: #c41e3a;
    --imperial-gold: #d4af37;
    --paper-white: #fafafa;
    --ink-gray: #4a4a4a;
    --accent-navy: #2c3e50;
    
    /* Typography */
    --font-heading: 'Merriweather', serif;
    --font-body: 'Source Sans Pro', sans-serif;
    
    /* Spacing */
    --header-height: 70px;
}

body {
    font-family: var(--font-body);
    color: var(--heritage-black);
    background: var(--paper-white);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.hidden {
    display: none !important;
}

/* ============================================
   LAYOUT - SMACSS Layout Layer
   ============================================ */
.header-container,
.section-container,
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================
   MODULE - SMACSS Module Layer
   ============================================ */

/* Age Modal */
.age-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.age-modal-content {
    background: var(--paper-white);
    padding: 2rem;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.age-modal-header h2 {
    color: var(--classic-red);
    margin-bottom: 1rem;
}

.age-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 350px;
    background: var(--heritage-black);
    color: var(--paper-white);
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px solid var(--imperial-gold);
    z-index: 9999;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--heritage-black);
    color: var(--paper-white);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.free-badge {
    background: var(--classic-red);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
}

.main-navigation {
    display: flex;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.nav-link {
    color: var(--paper-white);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--imperial-gold);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--paper-white);
    transition: all 0.3s;
}

/* Hero Section */
.hero-section {
    margin-top: var(--header-height);
    padding: 120px 1.5rem 80px;
    min-height: calc(100vh - var(--header-height));
    background: linear-gradient(135deg, var(--heritage-black) 0%, var(--accent-navy) 50%, var(--heritage-black) 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--paper-white);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Additional animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.game-card {
    animation: fadeIn 0.6s ease-out;
}

.free-badge {
    animation: pulse 2s ease-in-out infinite;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1rem;
}

.hero-title span {
    color: var(--imperial-gold);
    display: block;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    max-width: 800px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Games Section */
.games-section {
    padding: 4rem 1.5rem;
    background: var(--paper-white);
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    color: var(--heritage-black);
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--ink-gray);
    font-size: 1.1rem;
}

.games-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.game-card {
    flex: 0 0 auto;
    width: clamp(280px, 25vw, 350px);
    max-width: 350px;
    min-width: 280px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.game-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--heritage-black);
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-info {
    padding: 1.5rem;
}

.game-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--heritage-black);
}

.game-rating {
    margin-bottom: 0.5rem;
    color: var(--imperial-gold);
}

.game-description {
    color: var(--ink-gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.game-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

/* Buttons - Outline Morph */
.btn {
    padding: 12px 24px;
    border: 2px solid var(--classic-red);
    background: transparent;
    color: var(--classic-red);
    font-weight: 600;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--classic-red);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

.btn:hover {
    color: white;
}

.btn:hover::before {
    transform: scaleX(1);
}

.btn-primary {
    border-color: var(--classic-red);
    color: var(--classic-red);
}

.btn-primary::before {
    background: var(--classic-red);
}

.btn-secondary {
    border-color: var(--imperial-gold);
    color: var(--imperial-gold);
}

.btn-secondary::before {
    background: var(--imperial-gold);
}

/* Benefits Section */
.benefits-section {
    padding: 4rem 1.5rem;
    background: var(--heritage-black);
    color: var(--paper-white);
}

.benefits-grid {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.benefit-card {
    flex: 1 1 300px;
    max-width: 350px;
    background: var(--paper-white);
    color: var(--heritage-black);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.benefit-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* FAQ Section */
.faq-section {
    padding: 4rem 1.5rem;
    background: var(--paper-white);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    background: white;
    border: 2px solid var(--ink-gray);
    border-radius: 5px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: var(--heritage-black);
    color: var(--paper-white);
    border: none;
    text-align: left;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 1.5rem;
    display: none;
    color: var(--ink-gray);
}

.faq-item.active .faq-answer {
    display: block;
}

/* Disclaimer Section */
.disclaimer-section {
    padding: 3rem 1.5rem;
    background: var(--classic-red);
    color: white;
    text-align: center;
}

.disclaimer-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
}

.disclaimer-text {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.disclaimer-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}

.badge {
    background: var(--imperial-gold);
    color: var(--heritage-black);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
}

.compliance-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
    align-items: center;
}

.compliance-logo {
    height: 50px !important;
    width: auto !important;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s;
    object-fit: contain;
}

.compliance-logo:hover {
    opacity: 1;
    box-shadow: 0 0 10px var(--imperial-gold);
}

/* Gordon Moody custom button - кастомная кнопка по дизайну */
.gordon-moody-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 50px;
    min-width: 140px;
    padding: 4px 10px;
    background: var(--paper-white);
    border: 1px solid var(--classic-red);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    box-sizing: border-box;
    flex-shrink: 0;
}

.gordon-moody-button:hover {
    box-shadow: 0 0 10px var(--imperial-gold);
    text-decoration: none;
}

.gordon-moody-icon {
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--classic-red);
    position: relative;
    flex-shrink: 0;
}

.gordon-moody-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--paper-white);
}

.gordon-moody-text {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.1;
    color: #8b0000;
    text-transform: uppercase;
    margin: 0;
    display: block;
}

/* Footer */
.site-footer {
    background: var(--heritage-black);
    color: var(--paper-white);
    padding: 3rem 1.5rem 1.5rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--imperial-gold);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--paper-white);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--imperial-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--ink-gray);
    color: var(--ink-gray);
}

/* ============================================
   STATE - SMACSS State Layer
   ============================================ */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-navigation {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--heritage-black);
        display: none;
        padding: 1rem;
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-section {
        padding: 100px 1.5rem 60px;
    }
    
    .games-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .game-card {
        width: 100%;
        max-width: 400px;
    }
    
    .cookie-consent {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: 100%;
    }
    
    .benefits-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .benefit-card {
        width: 100%;
        max-width: 400px;
    }
}
