/**
 * Kwarta Bingo - Theme Stylesheet
 * All classes use w6b90- prefix for namespace isolation
 * Mobile-first responsive design
 */

/* CSS Variables - Color Palette */
:root {
    --w6b90-primary-dark: #1A1A2E;
    --w6b90-primary-gold: #FFAA00;
    --w6b90-primary-orange: #E65100;
    --w6b90-primary-yellow: #FFBF00;
    --w6b90-text-light: #FFFFFF;
    --w6b90-text-gray: #B0B0B0;
    --w6b90-bg-dark: #0F0F1A;
    --w6b90-bg-card: #252540;
    --w6b90-border: #3A3A5C;
    --w6b90-shadow: rgba(0, 0, 0, 0.5);
}

/* 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, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
    background-color: var(--w6b90-bg-dark);
    color: var(--w6b90-text-light);
    overflow-x: hidden;
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
}

/* Container */
.w6b90-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.w6b90-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--w6b90-primary-dark) 0%, #252540 100%);
    box-shadow: 0 2px 10px var(--w6b90-shadow);
    z-index: 1000;
    transition: transform 0.3s ease;
    max-width: 430px;
    margin: 0 auto;
}

.w6b90-header-hidden {
    transform: translateY(-100%);
}

.w6b90-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
}

.w6b90-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--w6b90-text-light);
    font-size: 1.4rem;
    font-weight: 700;
}

.w6b90-logo img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

.w6b90-header-buttons {
    display: flex;
    gap: 0.5rem;
}

.w6b90-btn-header {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.w6b90-btn-register {
    background: linear-gradient(135deg, var(--w6b90-primary-gold) 0%, var(--w6b90-primary-orange) 100%);
    color: var(--w6b90-text-light);
}

.w6b90-btn-register:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 170, 0, 0.4);
}

.w6b90-btn-login {
    background: transparent;
    color: var(--w6b90-primary-gold);
    border: 2px solid var(--w6b90-primary-gold);
}

.w6b90-btn-login:hover {
    background: var(--w6b90-primary-gold);
    color: var(--w6b90-text-light);
}

.w6b90-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.w6b90-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--w6b90-primary-gold);
    transition: all 0.3s ease;
}

/* Mobile Menu */
.w6b90-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--w6b90-primary-dark);
    box-shadow: -2px 0 10px var(--w6b90-shadow);
    z-index: 9999;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.w6b90-menu-open {
    right: 0;
}

.w6b90-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--w6b90-border);
}

.w6b90-menu-close {
    background: none;
    border: none;
    color: var(--w6b90-text-light);
    font-size: 2rem;
    cursor: pointer;
}

.w6b90-menu-list {
    list-style: none;
    padding: 1rem 0;
}

.w6b90-menu-list li {
    border-bottom: 1px solid var(--w6b90-border);
}

.w6b90-menu-list a {
    display: block;
    padding: 1rem;
    color: var(--w6b90-text-light);
    text-decoration: none;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.w6b90-menu-list a:hover {
    background: var(--w6b90-bg-card);
    color: var(--w6b90-primary-gold);
    padding-left: 1.5rem;
}

/* Main Content */
main {
    margin-top: 60px;
    padding-bottom: 80px;
}

/* Carousel */
.w6b90-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin: 1rem 0;
}

.w6b90-carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.w6b90-slide-active {
    opacity: 1;
}

.w6b90-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

/* Hero Section */
.w6b90-hero {
    text-align: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, var(--w6b90-bg-dark) 0%, var(--w6b90-bg-card) 100%);
    margin-bottom: 1rem;
}

.w6b90-hero h1 {
    font-size: 2rem;
    color: var(--w6b90-primary-gold);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.w6b90-hero p {
    font-size: 1.4rem;
    color: var(--w6b90-text-gray);
    margin-bottom: 1.5rem;
}

.w6b90-btn-cta {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, var(--w6b90-primary-gold) 0%, var(--w6b90-primary-orange) 100%);
    color: var(--w6b90-text-light);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.w6b90-btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 170, 0, 0.5);
}

/* Section Title */
.w6b90-section-title {
    font-size: 1.8rem;
    color: var(--w6b90-primary-gold);
    text-align: center;
    margin: 2rem 0 1.5rem;
    font-weight: 700;
}

/* Game Grid */
.w6b90-game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.w6b90-game-card {
    background: var(--w6b90-bg-card);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--w6b90-border);
}

.w6b90-game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--w6b90-shadow);
    border-color: var(--w6b90-primary-gold);
}

.w6b90-game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.w6b90-game-name {
    padding: 0.5rem;
    font-size: 1.1rem;
    text-align: center;
    color: var(--w6b90-text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Game Category Tabs */
.w6b90-category-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    scrollbar-width: none;
}

.w6b90-category-tabs::-webkit-scrollbar {
    display: none;
}

.w6b90-category-tab {
    padding: 0.5rem 1rem;
    background: var(--w6b90-bg-card);
    color: var(--w6b90-text-gray);
    border: 1px solid var(--w6b90-border);
    border-radius: 20px;
    font-size: 1.2rem;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
}

.w6b90-category-tab:hover,
.w6b90-category-tab.active {
    background: var(--w6b90-primary-gold);
    color: var(--w6b90-text-light);
    border-color: var(--w6b90-primary-gold);
}

/* Content Sections */
.w6b90-content-section {
    background: var(--w6b90-bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--w6b90-border);
}

.w6b90-content-section h2 {
    font-size: 1.6rem;
    color: var(--w6b90-primary-gold);
    margin-bottom: 1rem;
}

.w6b90-content-section p {
    font-size: 1.4rem;
    color: var(--w6b90-text-gray);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.w6b90-content-section ul,
.w6b90-content-section ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.w6b90-content-section li {
    font-size: 1.4rem;
    color: var(--w6b90-text-gray);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* Feature List */
.w6b90-feature-list {
    list-style: none;
    margin: 0;
}

.w6b90-feature-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--w6b90-border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.w6b90-feature-list li:last-child {
    border-bottom: none;
}

.w6b90-feature-icon {
    color: var(--w6b90-primary-gold);
    font-size: 1.5rem;
}

/* RTP Display */
.w6b90-rtp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1rem 0;
}

.w6b90-rtp-card {
    background: var(--w6b90-bg-dark);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--w6b90-border);
}

.w6b90-rtp-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--w6b90-primary-gold);
}

.w6b90-rtp-label {
    font-size: 1.2rem;
    color: var(--w6b90-text-gray);
    margin-top: 0.5rem;
}

/* Promotional Links */
.w6b90-promo-link {
    color: var(--w6b90-primary-gold);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.w6b90-promo-link:hover {
    color: var(--w6b90-primary-yellow);
    text-decoration: underline;
}

/* Bottom Navigation */
.w6b90-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--w6b90-primary-dark) 0%, #252540 100%);
    border-top: 2px solid var(--w6b90-primary-gold);
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
    z-index: 1000;
    max-width: 430px;
    margin: 0 auto;
}

.w6b90-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    text-decoration: none;
    color: var(--w6b90-text-gray);
    transition: all 0.3s ease;
    cursor: pointer;
}

.w6b90-nav-item:hover,
.w6b90-nav-item.w6b90-nav-active {
    color: var(--w6b90-primary-gold);
    transform: scale(1.1);
}

.w6b90-nav-icon {
    font-size: 24px;
    margin-bottom: 2px;
}

.w6b90-nav-label {
    font-size: 10px;
    font-weight: 500;
}

/* Footer */
.w6b90-footer {
    background: var(--w6b90-bg-card);
    padding: 2rem 1rem;
    margin-top: 2rem;
    border-top: 1px solid var(--w6b90-border);
}

.w6b90-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.w6b90-footer-link {
    color: var(--w6b90-text-gray);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--w6b90-border);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.w6b90-footer-link:hover {
    background: var(--w6b90-primary-gold);
    color: var(--w6b90-text-light);
    border-color: var(--w6b90-primary-gold);
}

.w6b90-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.w6b90-partner-logo {
    width: 50px;
    height: 30px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.w6b90-partner-logo:hover {
    opacity: 1;
}

.w6b90-copyright {
    text-align: center;
    color: var(--w6b90-text-gray);
    font-size: 1.2rem;
}

.w6b90-footer-description {
    text-align: center;
    color: var(--w6b90-text-gray);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Desktop Responsive */
@media (min-width: 769px) {
    .w6b90-bottom-nav {
        display: none;
    }

    main {
        padding-bottom: 2rem;
    }
}

/* Utility Classes */
.w6b90-text-center {
    text-align: center;
}

.w6b90-mb-1 {
    margin-bottom: 1rem;
}

.w6b90-mb-2 {
    margin-bottom: 2rem;
}

.w6b90-mt-1 {
    margin-top: 1rem;
}

.w6b90-mt-2 {
    margin-top: 2rem;
}

.w6b90-text-gold {
    color: var(--w6b90-primary-gold);
}

.w6b90-text-orange {
    color: var(--w6b90-primary-orange);
}

/* Animation */
@keyframes w6b90-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.w6b90-fade-in {
    animation: w6b90-fadeIn 0.5s ease;
}

/* Accessibility */
.w6b90-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;
}

/* Focus Styles */
.w6b90-btn-header:focus,
.w6b90-nav-item:focus,
.w6b90-footer-link:focus {
    outline: 2px solid var(--w6b90-primary-gold);
    outline-offset: 2px;
}
