/**
 * Happybingo App - Main Stylesheet
 * Prefix: w1b2d-
 * Version: 1.0.0
 */

/* CSS Variables */
:root {
    --w1b2d-bg: #0D1117;
    --w1b2d-bg-alt: #161B22;
    --w1b2d-primary: #B8860B;
    --w1b2d-accent: #00B8D4;
    --w1b2d-gold: #D4AF37;
    --w1b2d-text: #FFF8DC;
    --w1b2d-text-muted: #8B949E;
    --w1b2d-border: #30363D;
    --w1b2d-success: #3FB950;
    --w1b2d-gradient: linear-gradient(135deg, #B8860B 0%, #D4AF37 50%, #B8860B 100%);
}

/* Base Styles */
html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--w1b2d-bg);
    color: var(--w1b2d-text);
    line-height: 1.5rem;
    font-size: 1.4rem;
    min-height: 100vh;
}

/* Container */
.w1b2d-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

.w1b2d-wrapper {
    padding: 1.6rem 0;
}

/* Header */
.w1b2d-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--w1b2d-bg) 0%, rgba(13, 17, 23, 0.95) 100%);
    border-bottom: 1px solid var(--w1b2d-border);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.w1b2d-header-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.w1b2d-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.2rem;
    max-width: 430px;
    margin: 0 auto;
}

.w1b2d-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.w1b2d-logo img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.w1b2d-logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--w1b2d-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.w1b2d-header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.w1b2d-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    min-height: 36px;
    gap: 0.4rem;
}

.w1b2d-btn-primary {
    background: var(--w1b2d-gradient);
    color: #000;
}

.w1b2d-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.4);
}

.w1b2d-btn-outline {
    background: transparent;
    border: 1px solid var(--w1b2d-primary);
    color: var(--w1b2d-primary);
}

.w1b2d-btn-outline:hover {
    background: rgba(184, 134, 11, 0.1);
}

.w1b2d-menu-toggle {
    background: none;
    border: none;
    color: var(--w1b2d-text);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu */
.w1b2d-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--w1b2d-bg-alt);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

.w1b2d-menu-active {
    right: 0;
}

.w1b2d-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.w1b2d-overlay-active {
    opacity: 1;
    visibility: visible;
}

.w1b2d-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--w1b2d-text);
    font-size: 2.4rem;
    cursor: pointer;
}

.w1b2d-menu-links {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.w1b2d-menu-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    color: var(--w1b2d-text);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 1.4rem;
}

.w1b2d-menu-link:hover {
    background: rgba(184, 134, 11, 0.1);
    color: var(--w1b2d-primary);
}

.w1b2d-menu-link i,
.w1b2d-menu-link span.material-icons-outlined {
    font-size: 2rem;
    width: 24px;
}

/* Carousel */
.w1b2d-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin-top: 70px;
}

.w1b2d-carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.w1b2d-carousel-slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.w1b2d-slide-active {
    opacity: 1;
    position: relative;
}

.w1b2d-carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.w1b2d-carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
}

.w1b2d-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.w1b2d-dot-active {
    background: var(--w1b2d-gold);
    transform: scale(1.2);
}

/* Sections */
.w1b2d-section {
    padding: 2rem 0;
}

.w1b2d-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.4rem;
    color: var(--w1b2d-text);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.w1b2d-section-title i,
.w1b2d-section-title span.material-icons-outlined {
    color: var(--w1b2d-gold);
    font-size: 2rem;
}

/* Game Grid */
.w1b2d-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.w1b2d-game-card {
    background: var(--w1b2d-bg-alt);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--w1b2d-border);
    cursor: pointer;
}

.w1b2d-game-card:hover {
    transform: translateY(-3px);
    border-color: var(--w1b2d-primary);
    box-shadow: 0 6px 20px rgba(184, 134, 11, 0.2);
}

.w1b2d-game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.w1b2d-game-name {
    padding: 0.6rem;
    font-size: 1rem;
    text-align: center;
    color: var(--w1b2d-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: rgba(0, 0, 0, 0.3);
}

/* Category Badge */
.w1b2d-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    background: rgba(0, 184, 212, 0.15);
    color: var(--w1b2d-accent);
    border-radius: 20px;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* Info Cards */
.w1b2d-info-card {
    background: var(--w1b2d-bg-alt);
    border-radius: 12px;
    padding: 1.6rem;
    border: 1px solid var(--w1b2d-border);
    margin-bottom: 1.2rem;
}

.w1b2d-info-card h3 {
    color: var(--w1b2d-gold);
    font-size: 1.6rem;
    margin: 0 0 1rem 0;
}

.w1b2d-info-card p {
    margin: 0 0 1rem 0;
    color: var(--w1b2d-text-muted);
    line-height: 1.6;
}

.w1b2d-info-card ul {
    margin: 0;
    padding-left: 1.6rem;
}

.w1b2d-info-card li {
    margin-bottom: 0.6rem;
    color: var(--w1b2d-text);
}

/* Bottom Navigation */
.w1b2d-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, var(--w1b2d-bg-alt) 0%, var(--w1b2d-bg) 100%);
    border-top: 1px solid var(--w1b2d-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
}

.w1b2d-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    color: var(--w1b2d-text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.w1b2d-nav-item:hover,
.w1b2d-nav-item-active {
    color: var(--w1b2d-gold);
}

.w1b2d-nav-item i,
.w1b2d-nav-item span.material-icons-outlined {
    font-size: 24px;
    margin-bottom: 2px;
}

.w1b2d-nav-item ion-icon {
    font-size: 24px;
    margin-bottom: 2px;
}

.w1b2d-nav-text {
    font-size: 10px;
    font-weight: 500;
}

/* Footer */
.w1b2d-footer {
    background: var(--w1b2d-bg-alt);
    border-top: 1px solid var(--w1b2d-border);
    padding: 2rem 1.2rem;
    margin-top: 2rem;
}

.w1b2d-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.w1b2d-footer-link {
    color: var(--w1b2d-text-muted);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.w1b2d-footer-link:hover {
    color: var(--w1b2d-primary);
}

.w1b2d-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.w1b2d-partners img {
    height: 24px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.w1b2d-partners img:hover {
    opacity: 1;
}

.w1b2d-copyright {
    text-align: center;
    color: var(--w1b2d-text-muted);
    font-size: 1.1rem;
}

/* Promo Links */
.w1b2d-promo-link {
    color: var(--w1b2d-gold);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.w1b2d-promo-link:hover {
    color: var(--w1b2d-accent);
    text-decoration: underline;
}

/* CTA Section */
.w1b2d-cta {
    background: linear-gradient(135deg, rgba(184, 134, 11, 0.2) 0%, rgba(212, 175, 55, 0.1) 100%);
    border: 1px solid var(--w1b2d-primary);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
}

.w1b2d-cta h3 {
    color: var(--w1b2d-gold);
    font-size: 1.8rem;
    margin: 0 0 1rem 0;
}

.w1b2d-cta p {
    color: var(--w1b2d-text);
    margin: 0 0 1.5rem 0;
}

.w1b2d-cta .w1b2d-btn {
    padding: 1rem 2.5rem;
    font-size: 1.4rem;
}

/* Stats Grid */
.w1b2d-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.w1b2d-stat-card {
    background: var(--w1b2d-bg-alt);
    border-radius: 10px;
    padding: 1.2rem;
    text-align: center;
    border: 1px solid var(--w1b2d-border);
}

.w1b2d-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--w1b2d-gold);
    display: block;
}

.w1b2d-stat-label {
    font-size: 1.1rem;
    color: var(--w1b2d-text-muted);
}

/* Responsive */
@media (min-width: 769px) {
    .w1b2d-bottom-nav {
        display: none;
    }

    .w1b2d-container {
        max-width: 768px;
    }

    .w1b2d-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Mobile Padding for Bottom Nav */
@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Utilities */
.w1b2d-text-center {
    text-align: center;
}

.w1b2d-mb-1 {
    margin-bottom: 1rem;
}

.w1b2d-mb-2 {
    margin-bottom: 2rem;
}

.w1b2d-flex {
    display: flex;
}

.w1b2d-gap-1 {
    gap: 1rem;
}

/* H1 Title */
.w1b2d-h1-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--w1b2d-text);
    margin: 1.5rem 0;
    text-align: center;
    line-height: 1.3;
}

/* List Styles */
.w1b2d-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.w1b2d-list li {
    padding: 1rem;
    border-bottom: 1px solid var(--w1b2d-border);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.w1b2d-list li:last-child {
    border-bottom: none;
}

/* Accordion */
.w1b2d-accordion-item {
    background: var(--w1b2d-bg-alt);
    border-radius: 10px;
    margin-bottom: 0.8rem;
    overflow: hidden;
    border: 1px solid var(--w1b2d-border);
}

.w1b2d-accordion-header {
    padding: 1.2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--w1b2d-text);
    font-weight: 600;
}

.w1b2d-accordion-content {
    padding: 0 1.2rem 1.2rem;
    color: var(--w1b2d-text-muted);
    line-height: 1.6;
}
