/* ============================================
   CATHJAB.COM - BRUTALISM STYLE
   
   CSS ARCHITECTURE: Utility-First
   PALETTE: German Strong (black, red, gold, white, steel)
   EFFECT: Brutalism (bold borders, raw design)
   TYPOGRAPHY: Bold Display (Oswald + Raleway)
   BUTTONS: Split Color (black/red transitions)
   ============================================ */

:root {
    /* German Strong Palette */
    --brutal-black: #000000;
    --german-red: #dd0000;
    --victory-gold: #ffcc00;
    --pure-white: #ffffff;
    --steel-gray: #808080;
    --shadow-dark: #333333;
    
    /* Typography */
    --font-display: 'Oswald', sans-serif;
    --font-body: 'Raleway', sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    
    /* Layout */
    --header-height: 80px;
    --max-width: 1200px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* ============================================
   RESET & BASE
   ============================================ */

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

html {
    overflow-x: hidden !important;
    width: 100% !important;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--pure-white);
    color: var(--brutal-black);
    line-height: 1.6;
    overflow-x: hidden !important;
    width: 100% !important;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ============================================
   UTILITY CLASSES (Utility-First Approach)
   ============================================ */

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

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

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

.bold {
    font-weight: bold;
}

.uppercase {
    text-transform: uppercase;
}

/* ============================================
   BUTTONS - Split Color Style
   ============================================ */

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 4px solid var(--brutal-black);
    box-shadow: 6px 6px 0 var(--brutal-black);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translate(3px, 3px);
    box-shadow: 3px 3px 0 var(--brutal-black);
}

.btn:active {
    transform: translate(6px, 6px);
    box-shadow: 0 0 0 var(--brutal-black);
}

.btn-primary {
    background: linear-gradient(to right, var(--brutal-black) 50%, var(--german-red) 50%);
    background-size: 200% 100%;
    background-position: right;
    color: var(--pure-white);
}

.btn-primary:hover {
    background-position: left;
}

.btn-secondary {
    background: linear-gradient(to right, var(--pure-white) 50%, var(--victory-gold) 50%);
    background-size: 200% 100%;
    background-position: right;
    color: var(--brutal-black);
}

.btn-secondary:hover {
    background-position: left;
}

.btn-play {
    background: var(--german-red);
    color: var(--pure-white);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-width: 3px;
    box-shadow: 4px 4px 0 var(--brutal-black);
}

/* ============================================
   HEADER - Brutalist Fixed Header
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--victory-gold);
    border-bottom: 5px solid var(--brutal-black);
    height: var(--header-height);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.logo h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--brutal-black);
    letter-spacing: 2px;
    margin: 0;
}

.free-badge {
    display: inline-block;
    background: var(--german-red);
    color: var(--pure-white);
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    font-weight: bold;
    border: 2px solid var(--brutal-black);
    margin-left: 1rem;
}

.nav-desktop {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.nav-link {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    color: var(--brutal-black);
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    border: 3px solid transparent;
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    border: 3px solid var(--brutal-black);
    background: var(--pure-white);
}

.nav-account {
    background: var(--german-red);
    color: var(--pure-white);
    border: 3px solid var(--brutal-black);
}

.nav-account:hover {
    background: var(--brutal-black);
    color: var(--victory-gold);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: var(--brutal-black);
    padding: 10px;
    border: 3px solid var(--brutal-black);
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--victory-gold);
}

.nav-mobile {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--victory-gold);
    border-bottom: 5px solid var(--brutal-black);
    flex-direction: column;
    z-index: 999;
}

.nav-mobile .nav-link {
    padding: 1rem;
    border-bottom: 3px solid var(--brutal-black);
    text-align: center;
}

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

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    :root {
        --header-height: 70px;
    }
}

/* ============================================
   HERO SECTION - Brutalist Impact
   ============================================ */

.hero {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--german-red);
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 4rem;
    border-bottom: 8px solid var(--brutal-black);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 50px,
            rgba(0,0,0,0.1) 50px,
            rgba(0,0,0,0.1) 51px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 50px,
            rgba(0,0,0,0.1) 50px,
            rgba(0,0,0,0.1) 51px
        );
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    color: var(--pure-white);
    text-shadow: 5px 5px 0 var(--brutal-black);
    margin-bottom: var(--space-md);
    letter-spacing: 3px;
    line-height: 1.1;
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 600;
    color: var(--victory-gold);
    background: var(--brutal-black);
    padding: 1rem 2rem;
    display: inline-block;
    border: 4px solid var(--pure-white);
    margin-bottom: var(--space-lg);
}

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

/* ============================================
   SECTIONS - Brutalist Layout
   ============================================ */

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: var(--space-lg);
    color: var(--brutal-black);
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: var(--german-red);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--steel-gray);
    margin-bottom: var(--space-xl);
    font-weight: 600;
}

section {
    padding: var(--space-xl) 0;
}

/* ============================================
   BENEFITS SECTION
   ============================================ */

.benefits {
    background: var(--pure-white);
    border-top: 5px solid var(--brutal-black);
}

.benefits-grid {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    flex-wrap: wrap;
}

.benefit-card {
    flex: 0 1 300px;
    background: var(--victory-gold);
    border: 5px solid var(--brutal-black);
    padding: var(--space-lg);
    box-shadow: 8px 8px 0 var(--brutal-black);
    transition: var(--transition-normal);
}

.benefit-card:hover {
    transform: rotate(-2deg) translate(-4px, -4px);
    box-shadow: 12px 12px 0 var(--brutal-black);
}

.benefit-icon {
    font-size: 4rem;
    margin-bottom: var(--space-sm);
}

.benefit-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
    color: var(--brutal-black);
}

.benefit-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--shadow-dark);
}

/* ============================================
   GAMES SECTION
   ============================================ */

.games {
    background: var(--steel-gray);
    border-top: 5px solid var(--brutal-black);
    border-bottom: 5px solid var(--brutal-black);
}

.games-grid {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    flex-wrap: wrap;
}

.game-card {
    flex: 0 0 auto;
    width: clamp(280px, 30%, 350px);
    background: var(--pure-white);
    border: 5px solid var(--brutal-black);
    box-shadow: 8px 8px 0 var(--brutal-black);
    overflow: hidden;
    transition: var(--transition-normal);
}

.game-card:hover {
    transform: rotate(1deg);
    box-shadow: 12px 12px 0 var(--brutal-black);
}

.game-image {
    border-bottom: 5px solid var(--brutal-black);
    background: var(--victory-gold);
    padding: var(--space-md);
}

.game-image img {
    width: 100%;
    height: auto;
    border: 3px solid var(--brutal-black);
}

.game-info {
    padding: var(--space-lg);
}

.game-info h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
    color: var(--brutal-black);
}

.game-info p {
    margin-bottom: var(--space-sm);
    color: var(--shadow-dark);
}

.game-rating {
    font-weight: 600;
    color: var(--german-red);
    margin-bottom: var(--space-md);
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .games-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .game-card {
        width: 100%;
        max-width: 400px;
    }
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */

.testimonials {
    background: var(--pure-white);
}

.testimonials-grid {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    flex-wrap: wrap;
}

.testimonial-card {
    flex: 0 1 450px;
    background: var(--victory-gold);
    border: 5px solid var(--brutal-black);
    padding: var(--space-lg);
    box-shadow: 8px 8px 0 var(--brutal-black);
    position: relative;
}

.testimonial-rating {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: var(--space-md);
    font-style: italic;
    color: var(--shadow-dark);
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    font-family: var(--font-display);
}

.testimonial-author strong {
    font-size: 1.2rem;
    color: var(--brutal-black);
    text-transform: uppercase;
}

.testimonial-author span {
    color: var(--steel-gray);
    font-size: 0.9rem;
}

/* ============================================
   LEADERBOARD SECTION
   ============================================ */

.leaderboard {
    background: var(--german-red);
    border-top: 5px solid var(--brutal-black);
    border-bottom: 5px solid var(--brutal-black);
}

.leaderboard .section-title {
    color: var(--pure-white);
}

.leaderboard .section-title::after {
    background: var(--victory-gold);
}

.leaderboard-grid {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.leaderboard-card {
    flex: 0 1 250px;
    background: var(--pure-white);
    border: 5px solid var(--brutal-black);
    padding: var(--space-lg);
    box-shadow: 8px 8px 0 var(--brutal-black);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.rank {
    font-size: 2rem;
    font-family: var(--font-display);
    font-weight: 700;
}

.player-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.player-info strong {
    font-family: var(--font-display);
    font-size: 1.3rem;
    text-transform: uppercase;
    color: var(--brutal-black);
}

.player-info span {
    color: var(--steel-gray);
    font-weight: 600;
}

/* ============================================
   FAQ SECTION
   ============================================ */

.faq {
    background: var(--pure-white);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: var(--space-md);
    border: 4px solid var(--brutal-black);
    box-shadow: 6px 6px 0 var(--brutal-black);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    background: var(--victory-gold);
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.faq-question:hover {
    background: var(--german-red);
    color: var(--pure-white);
}

.faq-icon {
    font-size: 2rem;
    font-weight: bold;
    transition: var(--transition-fast);
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--pure-white);
}

.faq-answer p {
    padding: var(--space-md);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--shadow-dark);
}

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

/* ============================================
   DISCLAIMER SECTION
   ============================================ */

.disclaimer-section {
    background: var(--brutal-black);
    color: var(--pure-white);
    padding: var(--space-xl) 0;
    border-top: 5px solid var(--german-red);
    border-bottom: 5px solid var(--german-red);
}

.disclaimer-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.disclaimer-content h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--victory-gold);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
}

.disclaimer-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.disclaimer-content strong {
    color: var(--german-red);
}

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

.badge {
    background: var(--german-red);
    color: var(--pure-white);
    padding: 0.5rem 1rem;
    font-weight: bold;
    font-size: 0.9rem;
    border: 3px solid var(--victory-gold);
    text-transform: uppercase;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--brutal-black);
    color: var(--pure-white);
    padding: var(--space-xl) 0 var(--space-md);
    border-top: 5px solid var(--victory-gold);
}

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

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--victory-gold);
    margin-bottom: var(--space-md);
}

.footer-col p {
    line-height: 1.7;
    margin-bottom: var(--space-sm);
}

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

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: var(--pure-white);
    transition: var(--transition-fast);
    border-bottom: 2px solid transparent;
}

.footer-links a:hover {
    color: var(--victory-gold);
    border-bottom: 2px solid var(--victory-gold);
}

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

.compliance-logo {
    height: 40px !important;
    width: auto !important;
    background: var(--pure-white);
    padding: 0.5rem;
    border: 2px solid var(--victory-gold);
    transition: var(--transition-fast);
}

.compliance-logo:hover {
    transform: scale(1.1);
    border-color: var(--german-red);
}

.help-text {
    font-weight: 600;
    margin-top: var(--space-md);
}

.help-text a {
    color: var(--victory-gold);
    font-weight: bold;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 3px solid var(--steel-gray);
}

.footer-bottom p {
    margin-bottom: var(--space-sm);
}

.footer-disclaimer {
    font-weight: bold;
    color: var(--victory-gold);
    font-size: 1.1rem;
}

/* ============================================
   MODALS - Brutalist Style
   ============================================ */

.age-modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
}

.age-modal-content {
    background: var(--victory-gold);
    border: 8px solid var(--brutal-black);
    box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.5);
    max-width: 500px;
    width: 100%;
}

.age-modal-header {
    background: var(--german-red);
    padding: var(--space-lg);
    border-bottom: 5px solid var(--brutal-black);
}

.age-modal-header h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--pure-white);
    text-align: center;
}

.age-modal-body {
    padding: var(--space-lg);
    text-align: center;
}

.age-modal-body p {
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
    color: var(--brutal-black);
}

.age-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin: var(--space-lg) 0;
}

.age-warning {
    font-size: 0.9rem !important;
    color: var(--shadow-dark) !important;
    font-weight: 600;
}

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

/* Cookie Banner - Brutalist Style */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 400px;
    background: var(--victory-gold);
    border: 5px solid var(--brutal-black);
    box-shadow: 8px 8px 0 var(--brutal-black);
    padding: var(--space-md);
    z-index: 9999;
    display: none;
}

.cookie-banner p {
    margin-bottom: var(--space-sm);
    font-size: 0.95rem;
    color: var(--brutal-black);
}

.cookie-banner a {
    color: var(--german-red);
    font-weight: bold;
    text-decoration: underline;
}

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

@media (max-width: 600px) {
    .cookie-banner {
        bottom: 0;
        right: 0;
        left: 0;
        max-width: 100%;
        border-radius: 0;
    }
}

/* ============================================
   RESPONSIVE TYPOGRAPHY
   ============================================ */

@media (max-width: 768px) {
    :root {
        --space-xl: 2rem;
        --space-lg: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .header,
    .mobile-menu-toggle,
    .nav-mobile,
    .cookie-banner,
    .age-modal {
        display: none !important;
    }
}
