/**
 * Happy Bingo Main Stylesheet
 * Purple/Pink/Yellow Theme - Mobile-First Design
 */

/* CSS Variables */
:root {
    --w4b2a-primary: #8470FF;
    --w4b2a-pink: #FF91A4;
    --w4b2a-light-pink: #FFC0CB;
    --w4b2a-yellow: #FFFFBA;
    --w4b2a-gray: #E5E5E5;
    --w4b2a-dark: #333333;

    --w4b2a-primary-dark: #6B5ACD;
    --w4b2a-pink-dark: #FF758F;
    --w4b2a-light-pink-light: #FFD6DD;
    --w4b2a-yellow-light: #FFFFD4;

    --w4b2a-text-primary: #333333;
    --w4b2a-text-secondary: #666666;
    --w4b2a-text-light: #999999;

    --w4b2a-bg-white: #FFFFFF;
    --w4b2a-bg-light: #F8F8FA;
    --w4b2a-bg-section: #FAFAFA;

    --w4b2a-border-color: #E8E8E8;
    --w4b2a-shadow-sm: 0 2px 8px rgba(132, 112, 255, 0.1);
    --w4b2a-shadow-md: 0 4px 12px rgba(132, 112, 255, 0.15);
    --w4b2a-shadow-lg: 0 8px 24px rgba(132, 112, 255, 0.2);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--w4b2a-text-primary);
    background-color: var(--w4b2a-bg-light);
    min-height: 100vh;
}

body.w4b2a-loaded {
    animation: w4b2aFadeIn 0.5s ease-in;
}

@keyframes w4b2aFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Container */
.w4b2a-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 769px) {
    .w4b2a-container {
        max-width: 1200px;
        padding: 0 24px;
    }
}

/* Header */
.w4b2a-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--w4b2a-primary) 0%, var(--w4b2a-pink) 100%);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: var(--w4b2a-shadow-md);
}

.w4b2a-header.w4b2a-header-scrolled {
    box-shadow: var(--w4b2a-shadow-lg);
}

.w4b2a-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.w4b2a-logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--w4b2a-bg-white);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.w4b2a-logo span {
    color: var(--w4b2a-yellow);
}

.w4b2a-header-buttons {
    display: flex;
    gap: 12px;
}

.w4b2a-btn {
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
}

.w4b2a-btn-register {
    background-color: var(--w4b2a-yellow);
    color: var(--w4b2a-dark);
}

.w4b2a-btn-register:hover {
    background-color: var(--w4b2a-yellow-light);
    transform: translateY(-2px);
    box-shadow: var(--w4b2a-shadow-md);
}

.w4b2a-btn-login {
    background-color: var(--w4b2a-bg-white);
    color: var(--w4b2a-primary);
}

.w4b2a-btn-login:hover {
    background-color: var(--w4b2a-gray);
    transform: translateY(-2px);
    box-shadow: var(--w4b2a-shadow-md);
}

.w4b2a-menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 10001;
}

.w4b2a-menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--w4b2a-bg-white);
    margin: 6px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

@media (min-width: 769px) {
    .w4b2a-menu-toggle {
        display: none;
    }
}

/* Mobile Menu */
.w4b2a-mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: linear-gradient(180deg, var(--w4b2a-primary) 0%, var(--w4b2a-pink) 100%);
    padding: 80px 24px 24px;
    transition: right 0.3s ease;
    z-index: 9999;
    overflow-y: auto;
}

.w4b2a-mobile-menu.w4b2a-menu-open {
    right: 0;
}

.w4b2a-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9998;
}

.w4b2a-menu-overlay.w4b2a-overlay-active {
    opacity: 1;
    visibility: visible;
}

.w4b2a-menu-nav {
    list-style: none;
}

.w4b2a-menu-nav li {
    margin-bottom: 16px;
}

.w4b2a-menu-nav a {
    display: block;
    padding: 12px 16px;
    color: var(--w4b2a-bg-white);
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.w4b2a-menu-nav a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
}

/* Hero Slider */
.w4b2a-hero-slider {
    position: relative;
    height: 400px;
    margin-top: 60px;
    overflow: hidden;
    border-radius: 0 0 24px 24px;
    box-shadow: var(--w4b2a-shadow-md);
}

.w4b2a-hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.w4b2a-hero-slide.w4b2a-slide-active {
    opacity: 1;
}

.w4b2a-hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.w4b2a-slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.w4b2a-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.w4b2a-slider-dot.w4b2a-dot-active {
    background-color: var(--w4b2a-yellow);
    transform: scale(1.2);
}

/* Section Styles */
.w4b2a-section {
    padding: 40px 0;
}

.w4b2a-section-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--w4b2a-primary);
    margin-bottom: 24px;
    text-align: center;
}

.w4b2a-section-title span {
    color: var(--w4b2a-pink);
}

/* Game Grid */
.w4b2a-game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.w4b2a-game-item {
    background: var(--w4b2a-bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--w4b2a-shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.w4b2a-game-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--w4b2a-shadow-lg);
}

.w4b2a-game-icon {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background-color: var(--w4b2a-gray);
}

.w4b2a-game-name {
    padding: 12px;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--w4b2a-text-primary);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Content Module */
.w4b2a-module {
    background: var(--w4b2a-bg-white);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: var(--w4b2a-shadow-md);
    border-left: 4px solid var(--w4b2a-pink);
}

.w4b2a-module-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--w4b2a-primary);
    margin-bottom: 16px;
}

.w4b2a-module-content {
    font-size: 1.6rem;
    line-height: 1.8;
    color: var(--w4b2a-text-secondary);
}

.w4b2a-module-content p {
    margin-bottom: 16px;
}

.w4b2a-module-content ul {
    margin: 16px 0;
    padding-left: 24px;
}

.w4b2a-module-content li {
    margin-bottom: 8px;
}

.w4b2a-cta-link {
    display: inline-block;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--w4b2a-primary) 0%, var(--w4b2a-pink) 100%);
    color: var(--w4b2a-bg-white);
    font-weight: 600;
    border-radius: 25px;
    text-decoration: none;
    margin-top: 16px;
    transition: all 0.3s ease;
}

.w4b2a-cta-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--w4b2a-shadow-lg);
}

/* Footer */
.w4b2a-footer {
    background: var(--w4b2a-dark);
    color: var(--w4b2a-gray);
    padding: 40px 0 100px;
}

.w4b2a-footer-section {
    margin-bottom: 32px;
}

.w4b2a-footer-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--w4b2a-light-pink);
    margin-bottom: 16px;
}

.w4b2a-partner-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.w4b2a-partner-logo {
    background: var(--w4b2a-bg-white);
    border-radius: 8px;
    padding: 8px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.w4b2a-partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.w4b2a-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.w4b2a-footer-nav a {
    color: var(--w4b2a-gray);
    text-decoration: none;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.w4b2a-footer-nav a:hover {
    color: var(--w4b2a-light-pink);
}

.w4b2a-footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.4rem;
    color: var(--w4b2a-text-light);
}

/* Mobile Bottom Navigation */
.w4b2a-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(90deg, var(--w4b2a-primary) 0%, var(--w4b2a-pink) 50%, var(--w4b2a-yellow) 100%);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
}

.w4b2a-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 12px;
}

.w4b2a-nav-item:hover {
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.2);
}

.w4b2a-nav-icon {
    font-size: 24px;
    margin-bottom: 4px;
    display: block;
}

.w4b2a-nav-text {
    font-size: 10px;
    font-weight: 600;
    color: var(--w4b2a-bg-white);
    text-transform: uppercase;
}

@media (min-width: 769px) {
    .w4b2a-bottom-nav {
        display: none;
    }
}

/* Main Content Padding for Mobile */
@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Utility Classes */
.w4b2a-text-center {
    text-align: center;
}

.w4b2a-mb-16 {
    margin-bottom: 16px;
}

.w4b2a-mb-24 {
    margin-bottom: 24px;
}

.w4b2a-mt-32 {
    margin-top: 32px;
}

/* Loading State */
body:not(.w4b2a-loaded) .w4b2a-hero-slider,
body:not(.w4b2a-loaded) .w4b2a-game-grid {
    opacity: 0;
}
