/* ============================================
   VILLAHOBO - Super-Soldier Style
   CSS Architecture: BEM with m- prefix
   Fonts: Oswald (headings), Impact fallback
   Palette: Red, Blue, Gold, Patriotic
   ============================================ */

/* 1. CSS Variables (:root) */
:root {
    /* Colors - Super-Soldier Palette */
    --primary: #B22234;
    --primary-dark: #8B1A28;
    --primary-light: #D4354A;
    --secondary: #1B3A6B;
    --secondary-dark: #122850;
    --secondary-light: #264F8C;
    --accent: #DAA520;
    --accent-dark: #B8860B;
    --accent-light: #F0C75E;

    /* Backgrounds */
    --bg-dark: #0B1929;
    --bg-darker: #060F1A;
    --bg-card: #112240;
    --bg-card-hover: #1A2F52;
    --bg-input: #0E1E36;

    /* Text */
    --text-primary: #F0F0F0;
    --text-secondary: #B0BEC5;
    --text-muted: #6B7D8E;
    --text-link: #DAA520;

    /* Status */
    --success: #28A745;
    --warning: #FFC107;
    --danger: #DC3545;
    --info: #17A2B8;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;

    /* Header */
    --header-height: 70px;

    /* Fonts */
    --font-body: 'Oswald', Impact, 'Arial Black', sans-serif;
    --font-heading: 'Oswald', Impact, 'Arial Black', sans-serif;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
    --shadow-glow-red: 0 0 20px rgba(178,34,52,0.4);
    --shadow-glow-gold: 0 0 20px rgba(218,165,32,0.3);
    --shadow-glow-blue: 0 0 20px rgba(27,58,107,0.4);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* 2. Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-dark);
    min-height: 100vh;
    overflow-x: hidden;
}

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

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

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

ul, ol {
    list-style-position: inside;
}

/* 3. Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    font-weight: 300;
}

/* 4. Container */
.m-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.m-container--narrow {
    max-width: 800px;
}

/* 5. Header */
.m-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: linear-gradient(180deg, var(--bg-darker) 0%, rgba(6,15,26,0.95) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary);
    z-index: 1000;
    transition: background var(--transition-base);
}

.m-header__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(218,165,32,0.3);
    transition: text-shadow var(--transition-base);
}

.logo:hover {
    color: var(--accent-light);
    text-shadow: 0 0 20px rgba(218,165,32,0.5);
}

.m-header__nav {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.m-header__link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: var(--space-sm) 0;
    position: relative;
    transition: color var(--transition-fast);
}

.m-header__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-base);
}

.m-header__link:hover,
.m-header__link.is-active {
    color: var(--text-primary);
}

.m-header__link:hover::after,
.m-header__link.is-active::after {
    width: 100%;
}

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

.btn-account {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 8px 20px;
    border: 2px solid var(--accent);
    background: transparent;
    color: var(--accent);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-account:hover {
    background: var(--accent);
    color: var(--bg-dark);
}

/* Burger */
.m-header__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    z-index: 1001;
}

.m-header__burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-base);
    transform-origin: center;
}

.m-header__burger.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.m-header__burger.is-active span:nth-child(2) {
    opacity: 0;
}

.m-header__burger.is-active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* 6. Mobile Menu */
.m-header__mobile-menu {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-darker);
    z-index: 999;
    padding: var(--space-2xl) var(--space-lg);
    overflow-y: auto;
}

.m-header__mobile-menu.is-open {
    display: block;
}

.m-header__mobile-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.m-header__mobile-link {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 3px;
    padding: var(--space-md) 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: color var(--transition-fast);
}

.m-header__mobile-link:hover,
.m-header__mobile-link.is-active {
    color: var(--accent);
}

.m-header__mobile-nav .btn-account {
    margin-top: var(--space-md);
    text-align: center;
    padding: 14px 20px;
    font-size: 1rem;
}

/* 7. Buttons */
.btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 12px 28px;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
    line-height: 1.4;
}

.btn--primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: var(--shadow-glow-red);
}

.btn--primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
    box-shadow: 0 0 30px rgba(178,34,52,0.6);
    transform: translateY(-1px);
}

.btn--secondary {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
}

.btn--secondary:hover {
    background: var(--accent);
    color: var(--bg-dark);
    transform: translateY(-1px);
}

.btn--lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.btn--full {
    width: 100%;
    display: block;
}

/* 8. Main Content */
.m-main {
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
}

/* 9. Hero Section */
.m-hero {
    position: relative;
    padding: var(--space-3xl) var(--space-lg);
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--secondary-dark) 40%, var(--bg-darker) 100%);
    border-bottom: 3px solid var(--primary);
}

.m-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(178,34,52,0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(27,58,107,0.2) 0%, transparent 60%);
    pointer-events: none;
}

.m-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--bg-dark), transparent);
    pointer-events: none;
}

.m-hero__container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.m-hero__shield {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    border: 4px solid var(--accent);
    box-shadow: var(--shadow-glow-gold), var(--shadow-glow-red);
    position: relative;
}

.m-hero__shield::after {
    content: '★';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.2rem;
    color: var(--accent);
    text-shadow: 0 0 10px rgba(218,165,32,0.5);
}

.m-hero__title {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 6px;
    margin-bottom: var(--space-md);
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    background: linear-gradient(180deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.m-hero__subtitle {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: var(--space-md);
}

.m-hero__text {
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    line-height: 1.7;
}

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

.m-hero--small {
    padding: var(--space-2xl) var(--space-lg);
}

.m-hero--small .m-hero__title {
    font-size: 2.5rem;
}

.m-hero--404 {
    padding: 100px var(--space-lg);
}

.m-hero__title--404 {
    font-size: 8rem;
    letter-spacing: 10px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 10. Sections */
.m-section {
    padding: var(--space-3xl) 0;
}

.m-section--page-top {
    padding-top: var(--space-2xl);
}

.m-section__title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
}

.m-section__title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: var(--space-md) auto 0;
}

.m-section__subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-weight: 300;
    font-size: 1.05rem;
    margin-bottom: var(--space-2xl);
}

.m-section__text {
    text-align: center;
    color: var(--text-muted);
}

.m-section__cta {
    text-align: center;
    margin-top: var(--space-2xl);
}

.m-section--benefits {
    background: var(--bg-darker);
    border-top: 1px solid rgba(178,34,52,0.2);
    border-bottom: 1px solid rgba(178,34,52,0.2);
}

.m-section--featured {
    background: var(--bg-dark);
}

.m-section--faq {
    background: var(--bg-darker);
}

.m-section--disclaimer {
    padding: var(--space-2xl) 0;
}

.m-section--filter {
    padding: var(--space-lg) 0 0;
}

.m-section--games {
    padding-top: var(--space-lg);
}

.m-section--unlock {
    padding: var(--space-lg) 0;
}

/* 11. Benefits */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.benefit-card {
    background: var(--bg-card);
    border: 1px solid rgba(218,165,32,0.15);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(218,165,32,0.3);
}

.benefit-card:hover::before {
    opacity: 1;
}

.benefit-card__icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.benefit-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    letter-spacing: 1px;
}

.benefit-card__text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 0;
}

/* 12. Featured Providers */
.featured-provider__title {
    font-size: 1.2rem;
    color: var(--accent);
    text-align: center;
    margin-bottom: var(--space-md);
    margin-top: var(--space-xl);
    letter-spacing: 2px;
}

.featured-provider__title:first-of-type {
    margin-top: 0;
}

/* 13. Games Grid */
.games-grid--full {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.games-grid--featured {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 500px;
    margin: 0 auto;
}

/* 14. Game Tile / Card */
.game-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid rgba(218,165,32,0.1);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-base);
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md), var(--shadow-glow-gold);
    border-color: rgba(218,165,32,0.3);
}

.game-card__image {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--bg-darker);
}

.game-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.game-card:hover .game-card__image img {
    transform: scale(1.05);
}

.game-card__info {
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.game-card__title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-card__provider {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 1px;
}

/* 15. Game Tile Locked */
.game-card--locked .game-card__image {
    filter: blur(4px) grayscale(50%);
    opacity: 0.6;
}

.game-card--locked:hover {
    transform: none;
    box-shadow: none;
    cursor: default;
}

.game-card__lock-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11,25,41,0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.game-card__lock-icon {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.game-card__lock-text {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

/* 16. Provider Section (games page) */
.provider-section {
    margin-bottom: var(--space-2xl);
}

.provider-section__title {
    font-size: 1.3rem;
    color: var(--accent);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--primary);
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.provider-section__count {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* 17. Filter */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
}

.filter-btn {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 10px 20px;
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--text-primary);
}

.filter-btn.is-active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: var(--shadow-glow-red);
}

/* 18. Unlock Banner */
.unlock-banner {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg) var(--space-xl);
    background: linear-gradient(135deg, var(--secondary-dark), var(--bg-card));
    border: 2px solid var(--accent);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-glow-gold);
}

.unlock-banner__icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.unlock-banner__text {
    flex: 1;
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.5;
}

.unlock-banner__text strong {
    color: var(--accent);
    font-weight: 600;
}

/* 19. FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid rgba(218,165,32,0.1);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition-base);
}

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

.faq-item__question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    text-align: left;
    transition: color var(--transition-fast);
}

.faq-item__question:hover {
    color: var(--accent);
}

.faq-item__icon {
    font-size: 1.4rem;
    color: var(--primary);
    font-weight: 700;
    transition: transform var(--transition-base);
    flex-shrink: 0;
    margin-left: var(--space-md);
}

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

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base), padding var(--transition-base);
}

.faq-item.is-active .faq-item__answer {
    max-height: 500px;
    padding: 0 var(--space-lg) var(--space-lg);
}

.faq-item__answer p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.7;
}

/* 20. Disclaimer */
.disclaimer-box {
    background: var(--bg-card);
    border: 1px solid rgba(178,34,52,0.3);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    text-align: center;
}

.disclaimer-box p {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 0;
}

.disclaimer-box strong {
    color: var(--primary);
    font-weight: 600;
}

.disclaimer-box a {
    color: var(--accent);
}

/* 21. Footer */
.m-footer {
    background: var(--bg-darker);
    border-top: 3px solid var(--primary);
    padding-top: var(--space-3xl);
}

.m-footer__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.m-footer__top {
    display: flex;
    justify-content: space-between;
    gap: var(--space-3xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.m-footer__brand {
    max-width: 350px;
}

.m-footer__brand .logo {
    display: inline-block;
    margin-bottom: var(--space-md);
}

.m-footer__description {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.7;
}

.m-footer__nav {
    display: flex;
    gap: var(--space-3xl);
}

.m-footer__nav-section h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-md);
}

.m-footer__nav-section a {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 300;
    padding: var(--space-xs) 0;
    transition: color var(--transition-fast);
}

.m-footer__nav-section a:hover {
    color: var(--text-primary);
}

.m-footer__compliance {
    padding: var(--space-xl) 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.m-footer__compliance-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.footer__compliance-logo {
    height: 36px;
    width: auto;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
    filter: grayscale(20%);
}

.footer__compliance-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.footer__compliance-logo--light-bg {
    background: rgba(255,255,255,0.9);
    padding: 4px 8px;
    border-radius: 4px;
}

.age-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0;
}

.m-footer__bottom {
    padding: var(--space-lg) 0;
    text-align: center;
}

.m-footer__bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 0;
}

/* 22. Modals */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    z-index: 2000;
    transition: all var(--transition-base);
    padding: var(--space-lg);
}

.modal.is-active {
    opacity: 1;
    visibility: visible;
}

.modal__content {
    background: var(--bg-card);
    border: 1px solid rgba(218,165,32,0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: var(--shadow-lg);
    max-height: 90vh;
    overflow-y: auto;
}

.modal__close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    transition: color var(--transition-fast);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

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

/* Age Modal */
.age-modal .modal__content {
    text-align: center;
    border-top: 4px solid var(--primary);
}

.age-modal h2 {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    color: var(--accent);
}

.age-modal p {
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    font-weight: 300;
}

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

/* Game Modal */
.game-modal .modal__content {
    max-width: 900px;
    padding: var(--space-md);
}

.game-modal__content {
    max-width: 900px !important;
}

.game-modal__frame {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--bg-darker);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.game-modal__frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Daily Bonus Modal */
.daily-bonus-modal .modal__content {
    text-align: center;
    border-top: 4px solid var(--accent);
}

.daily-bonus__icon {
    font-size: 3.5rem;
    margin-bottom: var(--space-md);
}

.daily-bonus__title {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: var(--space-sm);
}

.daily-bonus__text {
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: var(--space-lg);
}

.daily-bonus__amount {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: var(--space-xl);
    text-shadow: var(--shadow-glow-gold);
}

/* 23. Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 2px solid var(--accent);
    padding: var(--space-lg);
    z-index: 1500;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
    display: none;
}

.cookie-consent.is-visible {
    display: block;
}

.cookie-consent__content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
}

.cookie-consent__content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: 0;
    flex: 1;
}

/* 24. Auth Forms */
.auth-modal .modal__content {
    border-top: 4px solid var(--secondary);
}

.auth-modal__content {
    max-width: 440px !important;
}

.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: var(--space-xl);
    border-bottom: 2px solid rgba(255,255,255,0.1);
}

.auth-tab {
    flex: 1;
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    padding: var(--space-md) var(--space-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.auth-tab::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
    transition: background var(--transition-fast);
}

.auth-tab.is-active {
    color: var(--accent);
}

.auth-tab.is-active::after {
    background: var(--accent);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.auth-form__group {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.auth-form__group label {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

.auth-form__group input {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 300;
    padding: 12px var(--space-md);
    background: var(--bg-input);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    transition: border-color var(--transition-fast);
    outline: none;
}

.auth-form__group input::placeholder {
    color: var(--text-muted);
}

.auth-form__group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(218,165,32,0.15);
}

.auth-message {
    margin-top: var(--space-md);
    font-size: 0.85rem;
    text-align: center;
    font-weight: 400;
    min-height: 20px;
}

.auth-message.success {
    color: var(--success);
}

.auth-message.error {
    color: var(--danger);
}

/* 25. Account Page */
.account-auth-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    max-width: 900px;
    margin: 0 auto;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid rgba(218,165,32,0.15);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
}

.auth-card__title {
    font-size: 1.3rem;
    margin-bottom: var(--space-sm);
    color: var(--accent);
}

.auth-card__text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: var(--space-lg);
}

.account-dashboard {
    max-width: 700px;
    margin: 0 auto;
}

/* 26. Profile */
.profile-card {
    background: linear-gradient(135deg, var(--secondary-dark), var(--bg-card));
    border: 2px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    text-align: center;
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-glow-gold);
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
}

.profile-card__badge {
    margin-bottom: var(--space-md);
}

.level-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: 3px solid var(--accent);
    border-radius: 50%;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    box-shadow: var(--shadow-glow-red);
}

.profile-card__name {
    font-size: 1.6rem;
    margin-bottom: var(--space-xs);
}

.profile-card__email {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: var(--space-xl);
}

/* 27. XP Progress */
.xp-bar {
    max-width: 400px;
    margin: 0 auto;
}

.xp-bar__label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.xp-bar__track {
    height: 12px;
    background: var(--bg-darker);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}

.xp-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 6px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.xp-bar__fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,0.15) 50%,
        transparent 100%
    );
    animation: xpShimmer 2s infinite;
}

@keyframes xpShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 28. Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid rgba(218,165,32,0.15);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    text-align: center;
}

.stat-card__value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: var(--space-xs);
}

.stat-card__label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 400;
}

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

/* 29. Content Pages */
.m-content-card {
    background: var(--bg-card);
    border: 1px solid rgba(218,165,32,0.1);
    border-radius: var(--radius-md);
    padding: var(--space-2xl);
}

.m-content-card h2 {
    font-size: 1.5rem;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    color: var(--accent);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid rgba(178,34,52,0.2);
}

.m-content-card h2:first-child {
    margin-top: 0;
}

.m-content-card h3 {
    font-size: 1.15rem;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.m-content-card p {
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.8;
}

.m-content-card ul,
.m-content-card ol {
    margin: var(--space-md) 0;
    padding-left: var(--space-lg);
    list-style-position: outside;
}

.m-content-card li {
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: var(--space-sm);
}

.m-content-card a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: rgba(218,165,32,0.3);
    text-underline-offset: 2px;
}

.m-content-card a:hover {
    text-decoration-color: var(--accent);
}

.contact-info {
    background: var(--bg-darker);
    border: 1px solid rgba(218,165,32,0.15);
    border-radius: var(--radius-sm);
    padding: var(--space-lg);
    margin-top: var(--space-md);
}

.contact-info p {
    margin-bottom: var(--space-xs);
}

.m-page-title {
    font-size: 2rem;
    margin-bottom: var(--space-xl);
    line-height: 1.3;
    letter-spacing: 2px;
}

.m-breadcrumb {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.m-breadcrumb a {
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

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

/* Info Grid (Responsible Gaming) */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

.info-card {
    background: var(--bg-darker);
    border: 1px solid rgba(218,165,32,0.1);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    text-align: center;
}

.info-card__icon {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.info-card h3 {
    font-size: 1rem;
    margin-bottom: var(--space-sm);
    color: var(--accent);
}

.info-card p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Help Resources */
.help-resources {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.help-card {
    background: var(--bg-darker);
    border: 1px solid rgba(218,165,32,0.1);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    text-align: center;
}

.help-card h3 {
    font-size: 1rem;
    margin-bottom: var(--space-sm);
    color: var(--accent);
}

.help-card p {
    font-size: 0.85rem;
    margin-bottom: var(--space-md);
}

/* Review Hero */
.review-hero {
    background: var(--bg-darker);
    border: 1px solid rgba(218,165,32,0.15);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    text-align: center;
}

.review-hero__rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.review-hero__score {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.review-hero__meta {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 300;
}

.review-cta {
    text-align: center;
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(218,165,32,0.15);
}

/* 30. Blog Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.article-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid rgba(218,165,32,0.1);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-base);
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(218,165,32,0.3);
}

.article-card__content {
    padding: var(--space-xl);
}

.article-card__category {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    background: rgba(178,34,52,0.15);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
}

.article-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
    letter-spacing: 1px;
}

.article-card__excerpt {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.article-card__link {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.article-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* 31. Reviews Grid */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.review-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid rgba(218,165,32,0.15);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    transition: all var(--transition-base);
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(218,165,32,0.3);
}

.review-card__header {
    margin-bottom: var(--space-md);
}

.review-card__title {
    font-size: 1.3rem;
    margin-bottom: var(--space-sm);
}

.review-card__rating {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.stars {
    color: #ffc107;
    font-size: 1.1rem;
}

.review-card__score {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
}

.review-card__text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.review-card__stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.review-card__stat {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* 32. Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none !important; }

/* 33. Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-light);
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

@media (max-width: 992px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.6rem; }
    
    .m-header__nav {
        display: none;
    }
    
    .m-header__burger {
        display: flex;
    }
    
    .m-header__actions .btn-account {
        display: none;
    }
    
    .m-hero__title {
        font-size: 2.8rem;
    }
    
    .m-hero--small .m-hero__title {
        font-size: 2rem;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .help-resources {
        grid-template-columns: 1fr;
    }
    
    .m-footer__top {
        flex-direction: column;
        gap: var(--space-xl);
    }
    
    .m-footer__brand {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.4rem; }
    
    .m-hero {
        padding: var(--space-2xl) var(--space-md);
    }
    
    .m-hero__title {
        font-size: 2.2rem;
        letter-spacing: 3px;
    }
    
    .m-hero--small .m-hero__title {
        font-size: 1.8rem;
    }
    
    .m-hero__title--404 {
        font-size: 5rem;
    }
    
    .m-hero__subtitle {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    
    .m-section {
        padding: var(--space-2xl) 0;
    }
    
    .m-container {
        padding: 0 var(--space-md);
    }
    
    .games-grid--full {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    
    .games-grid--featured {
        max-width: 100%;
        gap: 12px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .account-auth-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .unlock-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .filter-bar {
        gap: var(--space-xs);
    }
    
    .filter-btn {
        padding: 8px 14px;
        font-size: 0.7rem;
    }
    
    .cookie-consent__content {
        flex-direction: column;
        text-align: center;
    }
    
    .m-content-card {
        padding: var(--space-lg);
    }
    
    .m-page-title {
        font-size: 1.5rem;
    }
    
    .m-footer__nav {
        flex-direction: column;
        gap: var(--space-xl);
    }
    
    .m-footer__compliance-logos {
        gap: var(--space-md);
    }
    
    .review-hero__meta {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .modal__content {
        padding: var(--space-lg);
        margin: var(--space-md);
    }
    
    .profile-card {
        padding: var(--space-xl);
    }
}

@media (max-width: 480px) {
    .m-hero__title {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }
    
    .m-hero__title--404 {
        font-size: 4rem;
    }
    
    .m-hero__shield {
        width: 60px;
        height: 60px;
    }
    
    .m-hero__shield::after {
        font-size: 1.6rem;
    }
    
    .modal__actions {
        flex-direction: column;
    }
    
    .account-actions {
        flex-direction: column;
    }
    
    .m-hero__auth-buttons {
        flex-direction: column;
        align-items: center;
    }
}