/* ============================================
   VOX CASINO HOMEPAGE REDESIGN - MOBILE FIRST
   ============================================ */

/* CSS Custom Properties (Brand Colors) */
:root {
    /* Brand Colors */
    --color-bg-primary: #171a29;
    --color-bg-secondary: #2a2f42;
    --color-accent-primary: #e27831;
    --color-accent-secondary: #d67411;
    --color-accent-tertiary: #e26e26;
    --color-text-primary: #dddddd;
    --color-text-secondary: #cecece;
    --color-text-white: #ffffff;
    --color-banner-bg: #2e5d9b;
    
    /* Spacing Scale (8px base) */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-2xl: 64px;
    --space-3xl: 96px;
    
    /* Typography */
    --font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.15s ease-out;
    --transition-default: 0.3s ease;
    --transition-slow: 0.5s ease-in-out;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-cta: 0 4px 12px rgba(226, 120, 49, 0.4);
    --shadow-cta-hover: 0 8px 24px rgba(226, 120, 49, 0.5);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 24px;
    
    /* Header Height */
    --header-height: 64px;
}

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

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

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

body {
    font-family: var(--font-family);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
}

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

/* ============================================
   UTILITY CLASSES
   ============================================ */

.container {
    width: 100%;
    max-width: 1110px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--color-bg-primary);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: box-shadow var(--transition-default);
}

.header.scrolled {
    box-shadow: var(--shadow-lg);
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 var(--space-sm);
}

.header__logo {
    display: flex;
    align-items: center;
    height: 48px;
}

.header__logo img {
    max-height: 100%;
    width: auto;
}

/* Mobile Menu Toggle */
.header__menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 46px;
    height: 46px;
    background-color: var(--color-bg-primary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color var(--transition-default);
}

.header__menu-toggle:hover {
    background-color: var(--color-bg-secondary);
}

.header__menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background-color: var(--color-text-secondary);
    margin: 3px 0;
    transition: all var(--transition-default);
}

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

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

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

/* Navigation Menu (Mobile) */
.header__nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: rgba(23, 26, 41, 0.98);
    backdrop-filter: blur(10px);
    transform: translateX(-100%);
    transition: transform var(--transition-slow);
    overflow-y: auto;
    z-index: 999;
}

.header__nav.active {
    transform: translateX(0);
}

.header__nav-list {
    list-style: none;
    padding: var(--space-lg) var(--space-md);
}

.header__nav-item {
    margin-bottom: var(--space-sm);
}

.header__nav-link {
    display: block;
    padding: var(--space-sm);
    font-size: 18px;
    font-weight: 500;
    color: var(--color-text-secondary);
    letter-spacing: 0.08em;
    transition: color var(--transition-default);
    min-height: 56px;
    display: flex;
    align-items: center;
}

.header__nav-link:hover,
.header__nav-link.active {
    color: var(--color-accent-primary);
}

/* CTA Buttons */
.header__cta {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    transition: all var(--transition-default);
    text-align: center;
    white-space: nowrap;
}

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

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-cta-hover);
}

.btn--secondary {
    background: transparent;
    border: 2px solid var(--color-bg-secondary);
    color: var(--color-text-primary);
    padding: 10px 24px;
}

.btn--secondary:hover {
    background: var(--color-bg-secondary);
}

/* Hide desktop nav on mobile */
.header__nav--desktop {
    display: none;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    margin-top: var(--header-height);
    min-height: 500px;
    background: linear-gradient(135deg, rgba(46, 93, 155, 0.9) 0%, rgba(42, 47, 66, 0.8) 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: var(--space-xl) 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(226, 120, 49, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(46, 93, 155, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.hero__container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero__label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-primary);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
}

.hero__title {
    font-size: 48px;
    font-weight: 700;
    color: var(--color-text-white);
    line-height: 1.2;
    margin-bottom: var(--space-md);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero__cta {
    margin: var(--space-lg) 0;
}

.hero__cta .btn {
    font-size: 18px;
    padding: 16px 48px;
    height: 56px;
    border-radius: var(--radius-md);
    min-width: 280px;
}

.hero__benefits {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
}

.hero__benefit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-size: 16px;
    color: var(--color-text-primary);
}

.hero__benefit::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--color-accent-primary);
    border-radius: 50%;
    color: var(--color-text-white);
    font-weight: 700;
}

/* ============================================
   VALUE PROPOSITIONS
   ============================================ */

.value-props {
    padding: var(--space-2xl) 0;
}

.value-props__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

.value-prop {
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-xl) var(--space-md);
    text-align: center;
    transition: transform var(--transition-default), box-shadow var(--transition-default);
}

.value-prop:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.value-prop__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-md);
    background: linear-gradient(135deg, var(--color-accent-primary) 0%, var(--color-accent-secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-cta);
    font-size: 32px;
}

.value-prop__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text-white);
    text-transform: uppercase;
    margin-bottom: var(--space-xs);
}

.value-prop__description {
    font-size: 14px;
    color: var(--color-text-secondary);
}

/* ============================================
   GAME LOBBY
   ============================================ */

.game-lobby {
    padding: var(--space-xl) 0;
}

.game-lobby__header {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.game-lobby__title {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text-white);
}

.game-lobby__filters {
    display: flex;
    gap: var(--space-sm);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.game-lobby__filters::-webkit-scrollbar {
    display: none;
}

.game-lobby__filter {
    padding: 10px 20px;
    background: transparent;
    border: 2px solid #3a3f52;
    border-radius: var(--radius-pill);
    color: var(--color-text-secondary);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: all var(--transition-default);
}

.game-lobby__filter:hover,
.game-lobby__filter.active {
    background: var(--color-accent-primary);
    border-color: var(--color-accent-primary);
    color: var(--color-text-white);
}

.game-lobby__content {
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-md);
}

.game-lobby__carousel {
    display: flex;
    gap: var(--space-sm);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: var(--space-sm);
}

.game-lobby__carousel::-webkit-scrollbar {
    display: none;
}

.game-card {
    flex: 0 0 200px;
    scroll-snap-align: start;
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-default);
}

.game-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-cta);
}

.game-card__image {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.game-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(23, 26, 41, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    opacity: 0;
    transition: opacity var(--transition-default);
}

.game-card:hover .game-card__overlay {
    opacity: 1;
}

.game-card__overlay .btn {
    font-size: 14px;
    padding: 10px 24px;
}

.game-card__title {
    padding: var(--space-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-white);
    text-align: center;
    background: var(--color-bg-secondary);
}

.game-lobby__view-all {
    text-align: center;
    margin-top: var(--space-lg);
}

/* ============================================
   PAYMENT PROVIDERS
   ============================================ */

.payment-providers {
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--color-bg-secondary);
    border-bottom: 1px solid var(--color-bg-secondary);
}

.payment-providers__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text-white);
    text-align: center;
    margin-bottom: var(--space-lg);
}

.payment-providers__marquee {
    overflow: hidden;
    position: relative;
}

.payment-providers__track {
    display: flex;
    gap: 40px;
    animation: marquee 60s linear infinite;
}

.payment-providers__track:hover {
    animation-play-state: paused;
}

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

.payment-providers__logo {
    flex: 0 0 auto;
    width: 80px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all var(--transition-default);
}

.payment-providers__logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.payment-providers__logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.payment-providers__badges {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
    text-align: center;
}

.payment-providers__badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-size: 14px;
    color: var(--color-text-secondary);
}

.payment-providers__badge::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--color-accent-primary);
    border-radius: 50%;
    color: var(--color-text-white);
    font-size: 12px;
    font-weight: 700;
}

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

.faq {
    padding: var(--space-2xl) 0;
}

.faq__title {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-text-white);
    text-align: center;
    margin-bottom: var(--space-xl);
}

.faq__list {
    max-width: 900px;
    margin: 0 auto;
}

.faq__item {
    background: var(--color-bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    overflow: hidden;
    transition: all var(--transition-default);
}

.faq__item:hover {
    box-shadow: var(--shadow-sm);
}

.faq__item.active {
    border-left: 4px solid var(--color-accent-primary);
}

.faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-white);
    user-select: none;
}

.faq__question span:first-child {
    flex: 1;
    padding-right: var(--space-md);
}

.faq__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--color-accent-primary);
    transition: transform var(--transition-default);
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq__item.active .faq__icon {
    transform: rotate(45deg);
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-default), padding var(--transition-default);
}

.faq__item.active .faq__answer {
    max-height: 500px;
    padding: 0 var(--space-md) var(--space-md);
}

.faq__answer p {
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* ============================================
   CONTENT SECTION (for additional text content)
   ============================================ */

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

.content-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text-white);
    margin-bottom: var(--space-lg);
}

.content-section h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text-white);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}

.content-section p {
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.content-section ul,
.content-section ol {
    margin: var(--space-md) 0;
    padding-left: var(--space-lg);
}

.content-section li {
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-sm);
}

.content-section strong {
    color: var(--color-text-white);
    font-weight: 600;
}

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

.footer {
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--color-bg-secondary);
    margin-top: var(--space-3xl);
}

.footer__content {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 14px;
}

/* ============================================
   RESPONSIVE - TABLET (768px+)
   ============================================ */

@media (min-width: 768px) {
    :root {
        --header-height: 80px;
    }
    
    .container {
        padding: 0 var(--space-md);
    }
    
    /* Hero */
    .hero {
        min-height: 600px;
    }
    
    .hero__title {
        font-size: 60px;
    }
    
    .hero__benefits {
        flex-direction: row;
        justify-content: center;
    }
    
    /* Value Props */
    .value-props__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Game Lobby */
    .game-lobby__header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .game-card {
        flex: 0 0 240px;
    }
    
    .game-card__image {
        height: 340px;
    }
    
    /* Payment Providers */
    .payment-providers__badges {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   RESPONSIVE - DESKTOP (1024px+)
   ============================================ */

@media (min-width: 1024px) {
    /* Header */
    .header__menu-toggle {
        display: none;
    }
    
    /* Hide mobile navigation on desktop */
    .header__nav:not(.header__nav--desktop) {
        display: none;
    }
    
    .header__nav--desktop {
        position: static;
        transform: none;
        width: auto;
        height: auto;
        background: transparent;
        overflow: visible;
        display: flex;
    }
    
    .header__nav--desktop .header__nav-list {
        display: flex;
        gap: var(--space-md);
        padding: 0;
    }
    
    .header__nav--desktop .header__nav-item {
        margin-bottom: 0;
    }
    
    .header__nav--desktop .header__nav-link {
        padding: var(--space-sm);
        font-size: 14px;
        min-height: auto;
    }
    
    /* Hero */
    .hero__title {
        font-size: 72px;
    }
    
    .hero__cta .btn {
        min-width: 320px;
        height: 64px;
    }
    
    /* Value Props */
    .value-props__grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Game Lobby */
    .game-lobby__carousel {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: var(--space-md);
        overflow: visible;
    }
    
    .game-card {
        flex: none;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles */
*:focus-visible {
    outline: 2px solid var(--color-accent-primary);
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-accent-primary);
    color: var(--color-text-white);
    padding: var(--space-sm);
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}