/* ========================================
   VOX Casino - Dark Theme Stylesheet
   ========================================
   Author: VOX Casino
   Domain: cazinovox.org.ro
   Description: Complete dark theme styles with full responsiveness
   ======================================== */

/* ========================================
   CSS Variables (Dark Theme Color Palette)
   ======================================== */
:root {
    /* Primary Colors - Casino Theme */
    --color-primary: #00d4aa;
    --color-primary-dark: #00b894;
    --color-primary-light: #1ee4c6;
    --color-secondary: #ff6b6b;
    
    /* Background Colors - Dark Theme */
    --color-bg-primary: #0a0e27;
    --color-bg-secondary: #13182f;
    --color-bg-tertiary: #1a1f3a;
    --color-bg-overlay: rgba(10, 14, 39, 0.95);
    
    /* Text Colors */
    --color-text-primary: #ffffff;
    --color-text-secondary: #b8bfd3;
    --color-text-muted: #7c8398;
    --color-text-link: #00d4aa;
    
    /* Border & Divider Colors */
    --color-border: #252a48;
    --color-border-light: #2d3455;
    
    /* Status Colors */
    --color-success: #00d4aa;
    --color-warning: #ffa502;
    --color-error: #ff6b6b;
    
    /* Spacing System */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Typography */
    --font-family-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-md: 1.125rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 1.5rem;
    --font-size-xxl: 2rem;
    --font-size-xxxl: 2.5rem;
    
    /* Line Heights */
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.4);
    
    /* Container Max Widths */
    --container-sm: 540px;
    --container-md: 720px;
    --container-lg: 960px;
    --container-xl: 1140px;
    --container-xxl: 1320px;
    
    /* Z-Index Layers */
    --z-header: 1000;
    --z-banner: 10;
    --z-modal: 2000;
    --z-footer: 100;
}

/* ========================================
   Base Styles & Reset
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    /* Lock orientation on mobile */
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    overflow-x: hidden;
    /* Lock screen rotation on mobile - prevents unwanted rotation */
    position: relative;
}

/* Lock orientation on mobile devices */
@media screen and (max-width: 768px) {
    html,
    body {
        width: 100%;
        height: 100%;
        overflow-x: hidden;
        position: fixed;
    }
    
    /* Prevent zoom on input focus */
    input,
    textarea,
    select {
        font-size: 16px !important;
    }
}

/* ========================================
   Typography Styles
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: var(--line-height-tight);
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: var(--font-size-xxxl);
}

h2 {
    font-size: var(--font-size-xxl);
}

h3 {
    font-size: var(--font-size-xl);
}

h4 {
    font-size: var(--font-size-lg);
}

h5 {
    font-size: var(--font-size-md);
}

h6 {
    font-size: var(--font-size-base);
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--color-text-secondary);
}

a {
    color: var(--color-text-link);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover,
a:focus {
    color: var(--color-primary-light);
    text-decoration: underline;
}

a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* ========================================
   Container - Responsive Wrapper
   ======================================== */
.container {
    width: 100%;
    max-width: var(--container-xxl);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

@media (min-width: 576px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
}

@media (min-width: 1200px) {
    .container {
        padding: 0 var(--spacing-xl);
    }
}

/* ========================================
   Header Component
   ======================================== */
.header {
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    background-color: var(--color-bg-overlay);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) var(--spacing-md);
    min-height: 70px;
}

/* Logo Component */
.header__logo {
    flex-shrink: 0;
}

.logo-img {
    max-width: 150px;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .logo-img {
        max-width: 120px;
    }
}

/* Navigation Component */
.header__nav {
    display: flex;
    align-items: center;
}

.nav__list {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    align-items: center;
}

.nav__item {
    display: inline-block;
}

.nav__link {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    color: var(--color-text-primary);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav__link:hover,
.nav__link:focus {
    background-color: var(--color-bg-tertiary);
    text-decoration: none;
    color: var(--color-primary);
}

.nav__link--button {
    background-color: var(--color-primary);
    color: var(--color-bg-primary);
    font-weight: 600;
    padding: var(--spacing-xs) var(--spacing-lg);
}

.nav__link--button:hover,
.nav__link--button:focus {
    background-color: var(--color-primary-dark);
    color: var(--color-bg-primary);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Mobile Menu Toggle Button */
.header__menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    z-index: calc(var(--z-header) + 1);
}

.menu-toggle__bar {
    width: 25px;
    height: 3px;
    background-color: var(--color-text-primary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    /* Hide burger menu on mobile */
    .header__menu-toggle {
        display: none;
    }
    
    /* Hide regular navigation items on mobile */
    .nav__item:not(:last-child) {
        display: none;
    }
    
    /* Keep only the Conectare button visible */
    .nav__item:last-child {
        display: block;
    }
    
    /* Ensure nav container still works */
    .header__nav {
        display: flex;
        align-items: center;
    }
    
    .nav__list {
        display: flex;
        align-items: center;
        gap: 0;
    }
    
    /* Style the Conectare button for mobile */
    .nav__item:last-child .nav__link {
        display: inline-block;
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: var(--font-size-sm);
    }
}

/* ========================================
   Breadcrumbs Component
   ======================================== */
.breadcrumbs {
    background-color: var(--color-bg-secondary);
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--color-border);
}

.breadcrumbs__list {
    display: flex;
    list-style: none;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
    align-items: center;
}

.breadcrumbs__item {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

.breadcrumbs__item::after {
    content: '/';
    margin-left: var(--spacing-xs);
    color: var(--color-text-muted);
}

.breadcrumbs__item:last-child::after {
    content: '';
}

.breadcrumbs__item[aria-current="page"] {
    color: var(--color-text-secondary);
    font-weight: 500;
}

.breadcrumbs__link {
    color: var(--color-text-link);
    font-size: var(--font-size-sm);
}

.breadcrumbs__link:hover {
    color: var(--color-primary-light);
}

/* ========================================
   Banner Component with CTA
   ======================================== */
.banner {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    overflow: hidden;
    margin-bottom: var(--spacing-xl);
}

.banner__image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-banner);
}

.banner__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* CTA Overlay - Semi-transparent block, centered */
.banner__cta {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: calc(var(--z-banner) + 1);
    background-color: rgba(10, 14, 39, 0.85);
    backdrop-filter: blur(10px);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    text-align: center;
    max-width: 90%;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(0, 212, 170, 0.3);
}

.banner__title {
    font-size: var(--font-size-xxl);
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner__subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-lg);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .banner {
        height: 50vh;
        min-height: 300px;
        max-height: 500px;
    }
    
    .banner__cta {
        padding: var(--spacing-lg);
        max-width: 95%;
    }
    
    .banner__title {
        font-size: var(--font-size-xl);
    }
    
    .banner__subtitle {
        font-size: var(--font-size-md);
    }
}

/* ========================================
   Button Component
   ======================================== */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--font-size-base);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    line-height: 1.5;
}

.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-bg-primary);
}

.btn--primary:hover,
.btn--primary:focus {
    background-color: var(--color-primary-dark);
    color: var(--color-bg-primary);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--large {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--font-size-lg);
}

/* ========================================
   Popular Slots Section
   ======================================== */
.slots-section {
    padding: var(--spacing-xxl) 0;
    background-color: var(--color-bg-secondary);
}

.slots-section__title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    font-size: var(--font-size-xxl);
    color: var(--color-text-primary);
}

/* Slots Grid - 6 per row on desktop, responsive on mobile */
.slots-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--spacing-md);
    list-style: none;
}

.slot-card {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition-normal);
    cursor: pointer;
}

.slot-card:hover {
    transform: translateY(-5px) scale(1.02);
}

.slot-card__link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.slot-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: box-shadow var(--transition-normal);
}

.slot-card:hover .slot-card__image {
    box-shadow: var(--shadow-xl);
}

/* Responsive Slots Grid */
@media (max-width: 1200px) {
    .slots-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .slots-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .slots-section {
        padding: var(--spacing-xl) 0;
    }
}

/* ========================================
   Content Section
   ======================================== */
.content-section {
    padding: var(--spacing-xxl) 0;
}

.content-header {
    margin-bottom: var(--spacing-xl);
}

.content-title {
    font-size: var(--font-size-xxxl);
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.content-body {
    max-width: 900px;
    margin: 0 auto;
    line-height: var(--line-height-relaxed);
}

/* Content Subsections */
.content-subsection {
    margin-bottom: var(--spacing-xl);
}

.subsection-title {
    font-size: var(--font-size-xl);
    color: var(--color-primary);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--color-border);
    padding-bottom: var(--spacing-sm);
}

.subsection-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-primary);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

.subsection-subtitle-small {
    font-size: var(--font-size-md);
    color: var(--color-text-primary);
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

/* Lists */
.ordered-list,
.unordered-list {
    margin-left: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    color: var(--color-text-secondary);
}

.ordered-list li,
.unordered-list li {
    margin-bottom: var(--spacing-sm);
    line-height: var(--line-height-relaxed);
}

.unordered-list {
    list-style-type: disc;
}

.ordered-list {
    list-style-type: decimal;
}

/* ========================================
   Table Component - Responsive
   ======================================== */
.table-wrapper {
    overflow-x: auto;
    margin: var(--spacing-lg) 0;
    -webkit-overflow-scrolling: touch;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--color-bg-secondary);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    min-width: 600px;
}

.info-table thead {
    background-color: var(--color-bg-tertiary);
}

.info-table th {
    padding: var(--spacing-md);
    text-align: left;
    font-weight: 600;
    color: var(--color-text-primary);
    border-bottom: 2px solid var(--color-border);
}

.info-table td {
    padding: var(--spacing-md);
    color: var(--color-text-secondary);
    border-bottom: 1px solid var(--color-border);
}

.info-table tbody tr:hover {
    background-color: var(--color-bg-tertiary);
}

.info-table tbody tr:last-child td {
    border-bottom: none;
}

/* Mobile Table Adaptation - Stack layout */
@media (max-width: 768px) {
    .table-wrapper {
        margin: var(--spacing-md) 0;
    }
    
    .info-table {
        display: block;
        min-width: 100%;
    }
    
    .info-table thead {
        display: none;
    }
    
    .info-table tbody {
        display: block;
    }
    
    .info-table tr {
        display: block;
        margin-bottom: var(--spacing-md);
        background-color: var(--color-bg-secondary);
        border-radius: var(--radius-md);
        overflow: hidden;
        box-shadow: var(--shadow-sm);
        border: 1px solid var(--color-border);
    }
    
    .info-table td {
        display: block;
        padding: var(--spacing-sm) var(--spacing-md);
        text-align: right;
        border-bottom: 1px solid var(--color-border);
        position: relative;
        padding-left: 50%;
    }
    
    .info-table td:before {
        content: attr(data-label);
        position: absolute;
        left: var(--spacing-md);
        width: 45%;
        text-align: left;
        font-weight: 600;
        color: var(--color-text-primary);
    }
    
    .info-table td:last-child {
        border-bottom: none;
    }
}

/* Mobile table uses data-label attribute set by JavaScript */
/* The ::before pseudo-element content comes from data-label attribute */

/* ========================================
   CTA Box Component
   ======================================== */
.cta-box {
    background: linear-gradient(135deg, var(--color-bg-tertiary) 0%, var(--color-bg-secondary) 100%);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    border: 2px solid var(--color-primary);
    box-shadow: var(--shadow-lg);
    margin: var(--spacing-xl) 0;
    text-align: center;
}

.cta-box__title {
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

.cta-box p {
    margin-bottom: var(--spacing-md);
}

.cta-box .unordered-list {
    text-align: left;
    display: inline-block;
    margin-bottom: var(--spacing-lg);
}

/* ========================================
   FAQ Section
   ======================================== */
.faq-list {
    list-style: none;
    margin-left: 0;
}

.faq-item {
    background-color: var(--color-bg-secondary);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-lg);
}

.faq-answer {
    color: var(--color-text-secondary);
    margin-bottom: 0;
    line-height: var(--line-height-relaxed);
}

/* ========================================
   Footer Component
   ======================================== */
.footer {
    background-color: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    padding: var(--spacing-xxl) 0 var(--spacing-lg);
    margin-top: var(--spacing-xxl);
}

.footer__title {
    text-align: center;
    font-size: var(--font-size-xl);
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-lg);
}

/* Payments Grid */
.payments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    list-style: none;
}

.payment-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-bg-tertiary);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    border: 1px solid var(--color-border);
}

.payment-item:hover {
    background-color: var(--color-bg-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}

.payment-logo {
    max-width: 100%;
    max-height: 50px;
    height: auto;
    width: auto;
    object-fit: contain;
    filter: brightness(0.9);
    transition: filter var(--transition-fast);
}

.payment-item:hover .payment-logo {
    filter: brightness(1.1);
}

@media (max-width: 768px) {
    .payments-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: var(--spacing-sm);
    }
    
    .payment-logo {
        max-height: 40px;
    }
}

/* Footer Bottom */
.footer__bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--color-border);
    margin-top: var(--spacing-lg);
}

.footer__copyright,
.footer__legal {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-xs);
}

/* ========================================
   Utility Classes
   ======================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .header,
    .footer,
    .banner__cta,
    .btn {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* ========================================
   Accessibility Enhancements
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Skip to content link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: var(--color-bg-primary);
    padding: var(--spacing-sm);
    z-index: calc(var(--z-header) + 10);
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

