/**
 * Fun Bingo Games - Core Stylesheet
 * Mobile-first design for Philippine gaming platform
 * CSS Class Prefix: w77ff-
 */

/* CSS Variables - Color Palette */
:root {
    --w77ff-primary: #ff6b35;
    --w77ff-primary-dark: #e55a2b;
    --w77ff-secondary: #1a1a2e;
    --w77ff-accent: #ffd700;
    --w77ff-bg-dark: #0f0f1a;
    --w77ff-bg-card: #1e1e32;
    --w77ff-bg-gradient: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%);
    --w77ff-text-light: #ffffff;
    --w77ff-text-muted: #a0a0b0;
    --w77ff-border-color: #2a2a3e;
    --w77ff-success: #00c853;
    --w77ff-danger: #ff5252;
    --w77ff-gradient-btn: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    --w77ff-gradient-gold: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
    --w77ff-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --w77ff-shadow-hover: 0 8px 30px rgba(255, 107, 53, 0.3);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    background: var(--w77ff-bg-dark);
    color: var(--w77ff-text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header Styles */
.w77ff-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--w77ff-secondary);
    border-bottom: 1px solid var(--w77ff-border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    transition: all 0.3s ease;
}

.w77ff-header-scrolled {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--w77ff-shadow);
}

.w77ff-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--w77ff-accent);
    text-decoration: none;
}

.w77ff-logo img {
    height: 36px;
    width: auto;
}

.w77ff-header-actions {
    display: flex;
    gap: 10px;
}

.w77ff-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.w77ff-btn-primary {
    background: var(--w77ff-gradient-btn);
    color: var(--w77ff-text-light);
}

.w77ff-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--w77ff-shadow-hover);
}

.w77ff-btn-outline {
    background: transparent;
    border: 2px solid var(--w77ff-primary);
    color: var(--w77ff-primary);
}

.w77ff-btn-outline:hover {
    background: var(--w77ff-primary);
    color: var(--w77ff-text-light);
}

.w77ff-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--w77ff-text-light);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}

/* Mobile Menu */
.w77ff-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--w77ff-secondary);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 80px 20px 20px;
    overflow-y: auto;
}

.w77ff-menu-active {
    right: 0;
}

.w77ff-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;
}

.w77ff-overlay-active {
    opacity: 1;
    visibility: visible;
}

.w77ff-menu-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--w77ff-text-light);
    font-size: 28px;
    cursor: pointer;
}

.w77ff-menu-nav {
    list-style: none;
}

.w77ff-menu-nav li {
    margin-bottom: 8px;
}

.w77ff-menu-nav a {
    display: block;
    padding: 12px 16px;
    color: var(--w77ff-text-light);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.w77ff-menu-nav a:hover {
    background: var(--w77ff-bg-card);
    color: var(--w77ff-primary);
}

/* Main Content */
.w77ff-main {
    padding-top: 60px;
    min-height: 100vh;
}

/* Hero Section */
.w77ff-hero {
    background: var(--w77ff-bg-gradient);
    padding: 60px 16px;
    text-align: center;
}

.w77ff-hero-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
    background: var(--w77ff-gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.w77ff-hero-subtitle {
    font-size: 16px;
    color: var(--w77ff-text-muted);
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.w77ff-hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.w77ff-btn-large {
    padding: 14px 32px;
    font-size: 16px;
}

/* Game Categories */
.w77ff-categories {
    padding: 20px 16px;
    background: var(--w77ff-bg-dark);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.w77ff-category-tabs {
    display: flex;
    gap: 10px;
    padding-bottom: 10px;
}

.w77ff-category-tab {
    flex-shrink: 0;
    padding: 10px 20px;
    background: var(--w77ff-bg-card);
    border: 1px solid var(--w77ff-border-color);
    border-radius: 20px;
    color: var(--w77ff-text-muted);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.w77ff-category-tab:hover,
.w77ff-tab-active {
    background: var(--w77ff-gradient-btn);
    border-color: var(--w77ff-primary);
    color: var(--w77ff-text-light);
}

/* Game Grid */
.w77ff-games-section {
    padding: 20px 16px;
}

.w77ff-section-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--w77ff-text-light);
}

.w77ff-games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.w77ff-game-card {
    background: var(--w77ff-bg-card);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.w77ff-game-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--w77ff-shadow-hover);
}

.w77ff-game-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.w77ff-game-name {
    padding: 10px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    color: var(--w77ff-text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Features Section */
.w77ff-features {
    padding: 40px 16px;
    background: var(--w77ff-bg-gradient);
}

.w77ff-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.w77ff-feature-card {
    background: var(--w77ff-bg-card);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--w77ff-border-color);
}

.w77ff-feature-icon {
    font-size: 32px;
    color: var(--w77ff-primary);
    margin-bottom: 12px;
}

.w77ff-feature-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.w77ff-feature-desc {
    font-size: 13px;
    color: var(--w77ff-text-muted);
}

/* Footer */
.w77ff-footer {
    background: var(--w77ff-secondary);
    padding: 40px 16px 20px;
    border-top: 1px solid var(--w77ff-border-color);
}

.w77ff-footer-section {
    margin-bottom: 30px;
}

.w77ff-footer-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--w77ff-accent);
}

.w77ff-footer-links {
    list-style: none;
}

.w77ff-footer-links a {
    display: block;
    padding: 8px 0;
    color: var(--w77ff-text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.w77ff-footer-links a:hover {
    color: var(--w77ff-primary);
}

.w77ff-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    padding: 20px 0;
}

.w77ff-partner-logo {
    height: 30px;
    opacity: 0.7;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.w77ff-partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.w77ff-copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--w77ff-border-color);
    color: var(--w77ff-text-muted);
    font-size: 13px;
}

/* Mobile Bottom Navigation */
.w77ff-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--w77ff-secondary);
    border-top: 1px solid var(--w77ff-border-color);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 8px;
}

.w77ff-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    padding: 8px;
    color: var(--w77ff-text-muted);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.w77ff-nav-item:hover,
.w77ff-nav-active {
    color: var(--w77ff-primary);
    background: rgba(255, 107, 53, 0.1);
}

.w77ff-nav-icon {
    font-size: 22px;
    margin-bottom: 4px;
}

.w77ff-nav-text {
    font-size: 10px;
    font-weight: 500;
}

/* Promotional Banner */
.w77ff-promo-banner {
    background: var(--w77ff-gradient-gold);
    padding: 16px;
    text-align: center;
    margin: 16px;
    border-radius: 12px;
}

.w77ff-promo-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--w77ff-secondary);
    margin-bottom: 8px;
}

.w77ff-promo-desc {
    font-size: 14px;
    color: var(--w77ff-secondary);
    opacity: 0.9;
}

/* Animations */
@keyframes game778cFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .w77ff-header-actions .w77ff-btn {
        display: none;
    }

    .w77ff-menu-toggle {
        display: block;
    }

    .w77ff-main {
        padding-bottom: 80px;
    }

    .w77ff-hero-title {
        font-size: 26px;
    }

    .w77ff-games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .w77ff-features-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) {
    .w77ff-bottom-nav {
        display: none;
    }

    .w77ff-header-actions .w77ff-btn {
        display: inline-flex;
    }

    .w77ff-menu-toggle {
        display: none;
    }

    .w77ff-games-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 16px;
    }

    .w77ff-features-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .w77ff-hero {
        padding: 100px 40px;
    }

    .w77ff-hero-title {
        font-size: 48px;
    }
}

@media (min-width: 1024px) {
    .w77ff-games-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Utility Classes */
.w77ff-text-center { text-align: center; }
.w77ff-mt-20 { margin-top: 20px; }
.w77ff-mb-20 { margin-bottom: 20px; }
.w77ff-hidden { display: none; }
