/**
 * Happy Bingo Theme CSS
 * Mobile-first responsive design for happy bingo gaming platform
 * All classes use vc3d- prefix for namespace isolation
 */

/* CSS Custom Properties (Variables) */
:root {
    --vc3d-primary: #FF0000;
    --vc3d-secondary: #0A0A0A;
    --vc3d-background: #0A0A0A;
    --vc3d-surface: #1A1A1A;
    --vc3d-surface-light: #2A2A2A;
    --vc3d-text-primary: #FFFFFF;
    --vc3d-text-secondary: #B0B0B0;
    --vc3d-text-muted: #808080;
    --vc3d-accent: #FF0000;
    --vc3d-success: #00FF88;
    --vc3d-warning: #FFAA00;
    --vc3d-error: #FF3366;
    --vc3d-border: #333333;
    --vc3d-shadow: rgba(0, 0, 0, 0.5);
    --vc3d-header-height: 60px;
    --vc3d-footer-height: 60px;
    --vc3d-border-radius: 8px;
    --vc3d-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%; /* 1rem = 10px */
    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(--vc3d-text-primary);
    background-color: var(--vc3d-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    padding-top: var(--vc3d-header-height);
    padding-bottom: var(--vc3d-footer-height);
}

/* Container and Layout */
.vc3d-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.vc3d-wrapper {
    min-height: calc(100vh - var(--vc3d-header-height) - var(--vc3d-footer-height));
    padding-bottom: 2rem;
}

/* Header Styles */
.vc3d-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--vc3d-header-height);
    background-color: var(--vc3d-secondary);
    border-bottom: 1px solid var(--vc3d-border);
    z-index: 1000;
    transition: var(--vc3d-transition);
}

.vc3d-header-hidden {
    transform: translateY(-100%);
}

.vc3d-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 1.5rem;
    max-width: 430px;
    margin: 0 auto;
}

.vc3d-logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--vc3d-text-primary);
}

.vc3d-logo {
    width: 3.2rem;
    height: 3.2rem;
    margin-right: 1rem;
    border-radius: 50%;
    object-fit: cover;
}

.vc3d-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--vc3d-primary);
    text-decoration: none;
}

.vc3d-header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.vc3d-btn {
    padding: 0.6rem 1.2rem;
    background-color: var(--vc3d-primary);
    color: var(--vc3d-text-primary);
    border: none;
    border-radius: var(--vc3d-border-radius);
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--vc3d-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.6rem;
    min-width: 8rem;
    white-space: nowrap;
}

.vc3d-btn:hover {
    background-color: #FF3333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--vc3d-shadow);
}

.vc3d-btn:active {
    transform: translateY(0);
}

.vc3d-btn-outline {
    background-color: transparent;
    border: 2px solid var(--vc3d-primary);
    color: var(--vc3d-primary);
}

.vc3d-btn-outline:hover {
    background-color: var(--vc3d-primary);
    color: var(--vc3d-text-primary);
}

.vc3d-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--vc3d-text-primary);
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--vc3d-transition);
    min-width: 4rem;
    min-height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vc3d-menu-toggle:hover {
    color: var(--vc3d-primary);
}

.vc3d-menu-toggle.vc3d-menu-active {
    color: var(--vc3d-primary);
}

/* Mobile Navigation */
.vc3d-mobile-menu {
    position: fixed;
    top: var(--vc3d-header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--vc3d-header-height));
    background-color: var(--vc3d-secondary);
    z-index: 9999;
    transition: var(--vc3d-transition);
    overflow-y: auto;
}

.vc3d-mobile-menu.vc3d-menu-open {
    left: 0;
}

.vc3d-mobile-menu-content {
    padding: 2rem 1.5rem;
}

.vc3d-mobile-menu-nav {
    list-style: none;
}

.vc3d-mobile-menu-item {
    margin-bottom: 1.5rem;
}

.vc3d-mobile-menu-link {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--vc3d-text-primary);
    text-decoration: none;
    border-radius: var(--vc3d-border-radius);
    transition: var(--vc3d-transition);
    font-size: 1.5rem;
    font-weight: 500;
}

.vc3d-mobile-menu-link:hover {
    background-color: var(--vc3d-surface);
    color: var(--vc3d-primary);
}

/* Bottom Navigation */
.vc3d-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--vc3d-footer-height);
    background-color: var(--vc3d-secondary);
    border-top: 1px solid var(--vc3d-border);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.5rem 0;
}

@media (min-width: 769px) {
    .vc3d-bottom-nav {
        display: none;
    }
}

.vc3d-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--vc3d-text-secondary);
    transition: var(--vc3d-transition);
    min-width: 6rem;
    min-height: 5.6rem;
    justify-content: center;
    padding: 0.5rem;
    border-radius: var(--vc3d-border-radius);
}

.vc3d-nav-item:hover,
.vc3d-nav-item.vc3d-nav-active {
    color: var(--vc3d-primary);
    background-color: var(--vc3d-surface-light);
}

.vc3d-nav-icon {
    font-size: 2.4rem;
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.8rem;
    width: 2.8rem;
}

.vc3d-nav-text {
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

/* Typography */
h1.vc3d-page-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--vc3d-text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
    line-height: 1.2;
}

h2.vc3d-section-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--vc3d-primary);
    margin-bottom: 1.2rem;
    line-height: 1.3;
}

h3.vc3d-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--vc3d-text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.vc3d-text {
    color: var(--vc3d-text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.vc3d-text-muted {
    color: var(--vc3d-text-muted);
    font-size: 1.4rem;
}

/* Carousel */
.vc3d-carousel {
    position: relative;
    width: 100%;
    height: 20rem;
    margin-bottom: 2rem;
    border-radius: var(--vc3d-border-radius);
    overflow: hidden;
}

.vc3d-carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.vc3d-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    cursor: pointer;
}

.vc3d-carousel-slide.vc3d-slide-active {
    opacity: 1;
}

.vc3d-carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vc3d-carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
}

.vc3d-carousel-dot {
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--vc3d-transition);
}

.vc3d-carousel-dot.vc3d-dot-active {
    background-color: var(--vc3d-primary);
    transform: scale(1.2);
}

/* Game Grid */
.vc3d-section {
    margin-bottom: 3rem;
}

.vc3d-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--vc3d-border);
}

.vc3d-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.vc3d-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--vc3d-text-primary);
    transition: var(--vc3d-transition);
    border-radius: var(--vc3d-border-radius);
    padding: 0.8rem;
    background-color: var(--vc3d-surface);
    cursor: pointer;
}

.vc3d-game-item:hover {
    background-color: var(--vc3d-surface-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--vc3d-shadow);
}

.vc3d-game-item:active {
    transform: translateY(0);
}

.vc3d-game-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--vc3d-border-radius);
    margin-bottom: 0.5rem;
}

.vc3d-game-name {
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
    color: var(--vc3d-text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Content Sections */
.vc3d-content-section {
    background-color: var(--vc3d-surface);
    border-radius: var(--vc3d-border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--vc3d-border);
}

.vc3d-feature-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.vc3d-feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: var(--vc3d-surface-light);
    border-radius: var(--vc3d-border-radius);
    transition: var(--vc3d-transition);
}

.vc3d-feature-item:hover {
    background-color: var(--vc3d-border);
}

.vc3d-feature-icon {
    color: var(--vc3d-primary);
    margin-right: 1rem;
    font-size: 2rem;
    min-width: 2.4rem;
    text-align: center;
}

.vc3d-feature-text {
    flex: 1;
}

.vc3d-feature-title {
    font-weight: 600;
    color: var(--vc3d-text-primary);
    margin-bottom: 0.3rem;
    font-size: 1.5rem;
}

.vc3d-feature-description {
    color: var(--vc3d-text-secondary);
    font-size: 1.4rem;
    line-height: 1.4;
}

/* Footer */
.vc3d-footer {
    background-color: var(--vc3d-secondary);
    border-top: 1px solid var(--vc3d-border);
    padding: 2rem 0;
    margin-top: 3rem;
}

.vc3d-footer-content {
    text-align: center;
}

.vc3d-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.vc3d-footer-link {
    color: var(--vc3d-text-secondary);
    text-decoration: none;
    font-size: 1.3rem;
    transition: var(--vc3d-transition);
    padding: 0.5rem 1rem;
    border-radius: var(--vc3d-border-radius);
}

.vc3d-footer-link:hover {
    color: var(--vc3d-primary);
    background-color: var(--vc3d-surface);
}

.vc3d-partners {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.vc3d-partner-logo {
    height: 2.4rem;
    width: auto;
    opacity: 0.7;
    transition: var(--vc3d-transition);
}

.vc3d-partner-logo:hover {
    opacity: 1;
}

.vc3d-copyright {
    color: var(--vc3d-text-muted);
    font-size: 1.2rem;
    margin-top: 1.5rem;
}

/* Utility Classes */
.vc3d-text-center {
    text-align: center;
}

.vc3d-mb-1 { margin-bottom: 1rem; }
.vc3d-mb-2 { margin-bottom: 2rem; }
.vc3d-mb-3 { margin-bottom: 3rem; }

.vc3d-mt-1 { margin-top: 1rem; }
.vc3d-mt-2 { margin-top: 2rem; }
.vc3d-mt-3 { margin-top: 3rem; }

.vc3d-p-1 { padding: 1rem; }
.vc3d-p-2 { padding: 2rem; }

.vc3d-hidden {
    display: none;
}

.vc3d-lazy {
    opacity: 0;
    transition: opacity 0.3s;
}

.vc3d-lazy.loaded {
    opacity: 1;
}

.vc3d-touch-active {
    transform: scale(0.95);
    opacity: 0.8;
}

/* Touch and Mobile Optimizations */
@media (max-width: 768px) {
    .vc3d-container {
        padding: 0 1rem;
    }

    .vc3d-content-section {
        padding: 1.5rem;
    }

    .vc3d-game-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }

    .vc3d-section-title {
        font-size: 2rem;
    }

    .vc3d-page-title {
        font-size: 2.4rem;
    }

    .vc3d-header-actions .vc3d-btn {
        padding: 0.5rem 1rem;
        font-size: 1.2rem;
        min-width: 7rem;
        min-height: 3.2rem;
    }

    .vc3d-menu-toggle {
        display: flex;
    }

    .vc3d-logo-text {
        font-size: 1.6rem;
    }
}

/* Desktop Styles */
@media (min-width: 769px) {
    body {
        padding-top: 0;
        padding-bottom: 0;
    }

    .vc3d-header {
        position: relative;
        height: auto;
        background: linear-gradient(135deg, var(--vc3d-secondary) 0%, var(--vc3d-surface) 100%);
    }

    .vc3d-wrapper {
        min-height: 100vh;
        padding-bottom: 0;
    }

    .vc3d-container {
        max-width: 1200px;
        padding: 0 2rem;
    }

    .vc3d-game-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 1.5rem;
    }

    .vc3d-content-section {
        padding: 3rem;
    }

    .vc3d-section {
        margin-bottom: 4rem;
    }

    .vc3d-carousel {
        height: 30rem;
        border-radius: 1.2rem;
    }

    .vc3d-footer {
        padding: 3rem 0;
    }
}

/* Animation Keyframes */
@keyframes vc3d-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes vc3d-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.vc3d-animate-fadeIn {
    animation: vc3d-fadeIn 0.6s ease-out;
}

.vc3d-animate-pulse {
    animation: vc3d-pulse 2s infinite;
}

/* SEO and Accessibility */
.vc3d-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.vc3d-focus-visible:focus-visible {
    outline: 2px solid var(--vc3d-primary);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .vc3d-header,
    .vc3d-bottom-nav,
    .vc3d-mobile-menu,
    .vc3d-carousel,
    .vc3d-btn {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }

    .vc3d-content-section {
        border: 1px solid #ccc;
        break-inside: avoid;
    }
}