/* bingo plus app - Main CSS file */
/* All classes use v6d8- prefix for namespace isolation */

/* CSS Variables */
:root {
    /* Primary Colors - Based on website palette */
    --v6d8-primary: #DB7093;
    --v6d8-primary-dark: #C85A83;
    --v6d8-secondary: #FF69B4;
    --v6d8-secondary-dark: #E650A0;

    /* Background Colors */
    --v6d8-bg-primary: #1E1E1E;
    --v6d8-bg-secondary: #2A2A2A;
    --v6d8-bg-tertiary: #353535;

    /* Text Colors */
    --v6d8-text-primary: #FFFFFF;
    --v6d8-text-secondary: #E0E0E0;
    --v6d8-text-muted: #A0A0A0;

    /* Accent Colors */
    --v6d8-accent: #FFD700;
    --v6d8-success: #4CAF50;
    --v6d8-warning: #FF9800;
    --v6d8-error: #F44336;

    /* Spacing */
    --v6d8-spacing-xs: 0.25rem;
    --v6d8-spacing-sm: 0.5rem;
    --v6d8-spacing-md: 1rem;
    --v6d8-spacing-lg: 1.5rem;
    --v6d8-spacing-xl: 2rem;

    /* Border Radius */
    --v6d8-radius-sm: 0.25rem;
    --v6d8-radius-md: 0.5rem;
    --v6d8-radius-lg: 1rem;

    /* Shadows */
    --v6d8-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --v6d8-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --v6d8-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.2);

    /* Z-index */
    --v6d8-z-dropdown: 1000;
    --v6d8-z-sticky: 1020;
    --v6d8-z-fixed: 1030;
    --v6d8-z-modal-backdrop: 1040;
    --v6d8-z-modal: 1050;
    --v6d8-z-popover: 1060;
    --v6d8-z-tooltip: 1070;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    color: var(--v6d8-text-primary);
    background-color: var(--v6d8-bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container and Layout */
.v6d8-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 var(--v6d8-spacing-md);
    position: relative;
}

.v6d8-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.v6d8-main-content {
    flex: 1;
    padding-bottom: 80px; /* Space for bottom nav */
}

/* Header Styles */
.v6d8-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--v6d8-bg-primary) 0%, var(--v6d8-bg-secondary) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: var(--v6d8-z-fixed);
    backdrop-filter: blur(10px);
    box-shadow: var(--v6d8-shadow-md);
}

.v6d8-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--v6d8-spacing-sm) 0;
    height: 60px;
}

.v6d8-logo-section {
    display: flex;
    align-items: center;
    gap: var(--v6d8-spacing-sm);
    text-decoration: none;
    color: var(--v6d8-text-primary);
}

.v6d8-logo {
    width: 32px;
    height: 32px;
    border-radius: var(--v6d8-radius-sm);
}

.v6d8-site-name {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--v6d8-primary), var(--v6d8-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.v6d8-header-actions {
    display: flex;
    align-items: center;
    gap: var(--v6d8-spacing-sm);
}

.v6d8-hamburger-btn {
    display: none;
    background: none;
    border: none;
    color: var(--v6d8-text-primary);
    font-size: 2.4rem;
    cursor: pointer;
    padding: var(--v6d8-spacing-sm);
    border-radius: var(--v6d8-radius-sm);
    transition: all 0.3s ease;
}

.v6d8-hamburger-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.v6d8-hamburger-btn.v6d8-hamburger-active {
    color: var(--v6d8-primary);
}

/* Button Styles */
.v6d8-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--v6d8-spacing-xs);
    padding: var(--v6d8-spacing-sm) var(--v6d8-spacing-md);
    border: none;
    border-radius: var(--v6d8-radius-md);
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px; /* Touch-friendly */
    white-space: nowrap;
}

.v6d8-btn-primary {
    background: linear-gradient(45deg, var(--v6d8-primary), var(--v6d8-primary-dark));
    color: var(--v6d8-text-primary);
    box-shadow: var(--v6d8-shadow-sm);
}

.v6d8-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--v6d8-shadow-md);
}

.v6d8-btn-secondary {
    background: transparent;
    color: var(--v6d8-text-primary);
    border: 2px solid var(--v6d8-primary);
}

.v6d8-btn-secondary:hover {
    background: var(--v6d8-primary);
    color: var(--v6d8-text-primary);
}

.v6d8-btn:active {
    transform: scale(0.98);
}

.v6d8-btn.v6d8-touch-active {
    transform: scale(0.95);
}

/* Mobile Navigation Menu */
.v6d8-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--v6d8-bg-secondary);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease;
    z-index: var(--v6d8-z-modal);
    overflow-y: auto;
}

.v6d8-mobile-menu.v6d8-menu-open {
    right: 0;
}

.v6d8-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: var(--v6d8-z-modal-backdrop);
}

.v6d8-menu-overlay.v6d8-overlay-visible {
    opacity: 1;
    visibility: visible;
}

.v6d8-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--v6d8-spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.v6d8-menu-close {
    background: none;
    border: none;
    color: var(--v6d8-text-primary);
    font-size: 2.4rem;
    cursor: pointer;
    padding: var(--v6d8-spacing-sm);
}

.v6d8-menu-nav {
    padding: var(--v6d8-spacing-md);
}

.v6d8-menu-nav a {
    display: flex;
    align-items: center;
    gap: var(--v6d8-spacing-sm);
    padding: var(--v6d8-spacing-md);
    color: var(--v6d8-text-primary);
    text-decoration: none;
    border-radius: var(--v6d8-radius-md);
    transition: all 0.3s ease;
    margin-bottom: var(--v6d8-spacing-sm);
}

.v6d8-menu-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.v6d8-menu-nav a i {
    width: 20px;
    text-align: center;
}

/* Bottom Navigation */
.v6d8-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, var(--v6d8-bg-primary), rgba(30, 30, 30, 0.95));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: var(--v6d8-z-fixed);
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
}

.v6d8-bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--v6d8-text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    min-width: 60px;
    min-height: 60px;
    gap: 2px;
}

.v6d8-bottom-nav a:hover {
    color: var(--v6d8-primary);
    background: rgba(255, 255, 255, 0.05);
}

.v6d8-bottom-nav a.v6d8-nav-active {
    color: var(--v6d8-primary);
}

.v6d8-bottom-nav a i {
    font-size: 2.2rem;
    transition: all 0.3s ease;
}

.v6d8-bottom-nav a span {
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

.v6d8-bottom-nav a:hover i {
    transform: scale(1.1);
}

.v6d8-bottom-nav a.v6d8-nav-active i {
    transform: scale(1.15);
}

/* Carousel Styles */
.v6d8-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: var(--v6d8-radius-lg);
    margin: var(--v6d8-spacing-md) 0;
    box-shadow: var(--v6d8-shadow-md);
}

.v6d8-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.v6d8-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v6d8-carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.v6d8-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.v6d8-carousel-dot.v6d8-dot-active {
    background: var(--v6d8-primary);
    width: 20px;
    border-radius: 4px;
}

/* Card Styles */
.v6d8-card {
    background: var(--v6d8-bg-secondary);
    border-radius: var(--v6d8-radius-lg);
    padding: var(--v6d8-spacing-md);
    margin-bottom: var(--v6d8-spacing-md);
    box-shadow: var(--v6d8-shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.v6d8-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--v6d8-shadow-md);
}

.v6d8-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--v6d8-spacing-md);
    padding-bottom: var(--v6d8-spacing-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.v6d8-card-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--v6d8-text-primary);
}

.v6d8-card-subtitle {
    font-size: 1.4rem;
    color: var(--v6d8-text-secondary);
    margin-top: var(--v6d8-spacing-xs);
}

/* Game Grid Styles */
.v6d8-game-section {
    margin: var(--v6d8-spacing-lg) 0;
}

.v6d8-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--v6d8-primary);
    margin-bottom: var(--v6d8-spacing-md);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.v6d8-game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--v6d8-spacing-sm);
    margin-bottom: var(--v6d8-spacing-md);
}

.v6d8-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--v6d8-bg-tertiary);
    border-radius: var(--v6d8-radius-md);
    padding: var(--v6d8-spacing-sm);
    text-decoration: none;
    color: var(--v6d8-text-primary);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.v6d8-game-item:hover {
    transform: scale(1.05);
    background: var(--v6d8-bg-secondary);
    box-shadow: var(--v6d8-shadow-md);
    border-color: var(--v6d8-primary);
}

.v6d8-game-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--v6d8-radius-sm);
    object-fit: cover;
    margin-bottom: var(--v6d8-spacing-xs);
}

.v6d8-game-name {
    font-size: 1.2rem;
    text-align: center;
    line-height: 1.3;
    font-weight: 600;
}

/* Content Styles */
.v6d8-content {
    margin: var(--v6d8-spacing-lg) 0;
}

.v6d8-section {
    margin: var(--v6d8-spacing-xl) 0;
}

.v6d8-section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--v6d8-primary);
    margin-bottom: var(--v6d8-spacing-md);
    text-align: center;
}

.v6d8-section h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--v6d8-text-primary);
    margin: var(--v6d8-spacing-md) 0 var(--v6d8-spacing-sm);
}

.v6d8-section p {
    margin-bottom: var(--v6d8-spacing-md);
    color: var(--v6d8-text-secondary);
    text-align: justify;
}

.v6d8-section ul, .v6d8-section ol {
    margin-bottom: var(--v6d8-spacing-md);
    padding-left: var(--v6d8-spacing-lg);
}

.v6d8-section li {
    margin-bottom: var(--v6d8-spacing-sm);
    color: var(--v6d8-text-secondary);
}

.v6d8-text-center {
    text-align: center;
}

.v6d8-text-primary {
    color: var(--v6d8-primary);
    font-weight: 600;
}

.v6d8-text-highlight {
    background: linear-gradient(45deg, var(--v6d8-primary), var(--v6d8-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Footer Styles */
.v6d8-footer {
    background: linear-gradient(to bottom, var(--v6d8-bg-secondary), var(--v6d8-bg-primary));
    padding: var(--v6d8-spacing-xl) 0 var(--v6d8-spacing-md);
    margin-top: var(--v6d8-spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.v6d8-footer-content {
    text-align: center;
}

.v6d8-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--v6d8-spacing-md);
    margin-bottom: var(--v6d8-spacing-lg);
}

.v6d8-footer-links a {
    color: var(--v6d8-text-secondary);
    text-decoration: none;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.v6d8-footer-links a:hover {
    color: var(--v6d8-primary);
}

.v6d8-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--v6d8-spacing-sm);
    margin: var(--v6d8-spacing-lg) 0;
}

.v6d8-partner-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.v6d8-partner-logo:hover {
    opacity: 1;
    transform: scale(1.1);
}

.v6d8-copyright {
    color: var(--v6d8-text-muted);
    font-size: 1.2rem;
    margin-top: var(--v6d8-spacing-md);
    text-align: center;
}

/* Responsive Styles */
@media (min-width: 769px) {
    .v6d8-hamburger-btn {
        display: none;
    }

    .v6d8-mobile-menu {
        display: none;
    }

    .v6d8-menu-overlay {
        display: none;
    }

    .v6d8-bottom-nav {
        display: none;
    }

    .v6d8-main-content {
        padding-bottom: 0;
    }

    .v6d8-desktop-nav {
        display: flex;
        align-items: center;
        gap: var(--v6d8-spacing-md);
    }

    .v6d8-container {
        padding: 0 var(--v6d8-spacing-lg);
    }

    .v6d8-game-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .v6d8-hamburger-btn {
        display: block;
    }

    .v6d8-desktop-nav {
        display: none;
    }

    .v6d8-main-content {
        padding-top: 80px; /* Space for fixed header */
    }
}

@media (max-width: 480px) {
    .v6d8-game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--v6d8-spacing-xs);
    }

    .v6d8-game-icon {
        width: 50px;
        height: 50px;
    }

    .v6d8-game-name {
        font-size: 1.1rem;
    }

    .v6d8-section-title {
        font-size: 1.8rem;
    }

    .v6d8-section h2 {
        font-size: 2rem;
    }
}

/* Utility Classes */
.v6d8-hidden {
    display: none !important;
}

.v6d8-visible {
    display: block !important;
}

.v6d8-text-center {
    text-align: center;
}

.v6d8-text-left {
    text-align: left;
}

.v6d8-text-right {
    text-align: right;
}

.v6d8-mt-0 { margin-top: 0; }
.v6d8-mt-1 { margin-top: var(--v6d8-spacing-xs); }
.v6d8-mt-2 { margin-top: var(--v6d8-spacing-sm); }
.v6d8-mt-3 { margin-top: var(--v6d8-spacing-md); }
.v6d8-mt-4 { margin-top: var(--v6d8-spacing-lg); }
.v6d8-mt-5 { margin-top: var(--v6d8-spacing-xl); }

.v6d8-mb-0 { margin-bottom: 0; }
.v6d8-mb-1 { margin-bottom: var(--v6d8-spacing-xs); }
.v6d8-mb-2 { margin-bottom: var(--v6d8-spacing-sm); }
.v6d8-mb-3 { margin-bottom: var(--v6d8-spacing-md); }
.v6d8-mb-4 { margin-bottom: var(--v6d8-spacing-lg); }
.v6d8-mb-5 { margin-bottom: var(--v6d8-spacing-xl); }

.v6d8-p-0 { padding: 0; }
.v6d8-p-1 { padding: var(--v6d8-spacing-xs); }
.v6d8-p-2 { padding: var(--v6d8-spacing-sm); }
.v6d8-p-3 { padding: var(--v6d8-spacing-md); }
.v6d8-p-4 { padding: var(--v6d8-spacing-lg); }
.v6d8-p-5 { padding: var(--v6d8-spacing-xl); }

/* Animation Classes */
@keyframes v6d8-fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes v6d8-slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@keyframes v6d8-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.v6d8-animate-fadeIn {
    animation: v6d8-fadeIn 0.5s ease-out;
}

.v6d8-animate-slideIn {
    animation: v6d8-slideIn 0.3s ease-out;
}

.v6d8-animate-pulse {
    animation: v6d8-pulse 2s infinite;
}

/* Lazy Loading */
.v6d8-lazy-loading {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.v6d8-lazy-loaded {
    opacity: 1;
}