/**
 * 369Club - Design System
 * Color Palette: #3C3C3C (Dark Gray) | #5F9EA0 (Cadet Blue) | #ADD8E6 (Light Blue) | #87CEEB (Sky Blue) | #273746 (Dark Blue Gray)
 * All classes use gfb1 prefix for namespace isolation
 */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gfb1-color-dark: #3C3C3C;
    --gfb1-color-cadet: #5F9EA0;
    --gfb1-color-light: #ADD8E6;
    --gfb1-color-sky: #87CEEB;
    --gfb1-color-deep: #273746;
    --gfb1-color-white: #FFFFFF;
    --gfb1-color-text: #333333;
    --gfb1-color-text-light: #666666;
    --gfb1-color-success: #28a745;
    --gfb1-color-warning: #ffc107;
    --gfb1-color-danger: #dc3545;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gfb1-color-text);
    background: linear-gradient(135deg, var(--gfb1-color-deep) 0%, var(--gfb1-color-dark) 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Container */
.gfb1-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 15px;
}

.gfb1-container-fluid {
    width: 100%;
    padding: 0 15px;
}

/* Header */
.gfb1-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--gfb1-color-cadet) 0%, var(--gfb1-color-deep) 100%);
    padding: 12px 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.gfb1-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gfb1-logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--gfb1-color-white);
    text-decoration: none;
    letter-spacing: 0.5px;
}

.gfb1-header-buttons {
    display: flex;
    gap: 10px;
}

.gfb1-btn {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-block;
}

.gfb1-btn-primary {
    background: var(--gfb1-color-white);
    color: var(--gfb1-color-cadet);
}

.gfb1-btn-primary:hover {
    background: var(--gfb1-color-sky);
    color: var(--gfb1-color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(135, 206, 235, 0.4);
}

.gfb1-btn-secondary {
    background: transparent;
    color: var(--gfb1-color-white);
    border: 2px solid var(--gfb1-color-white);
}

.gfb1-btn-secondary:hover {
    background: var(--gfb1-color-white);
    color: var(--gfb1-color-cadet);
}

.gfb1-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--gfb1-color-white);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

/* Mobile Menu */
.gfb1-mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: linear-gradient(180deg, var(--gfb1-color-cadet) 0%, var(--gfb1-color-deep) 100%);
    z-index: 9999;
    transition: left 0.3s ease;
    padding: 60px 20px 20px;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
}

.gfb1-mobile-menu.gfb1-active {
    left: 0;
}

.gfb1-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    display: none;
}

.gfb1-menu-overlay.gfb1-active {
    display: block;
}

.gfb1-menu-header {
    position: absolute;
    top: 15px;
    right: 15px;
}

.gfb1-menu-close {
    background: none;
    border: none;
    color: var(--gfb1-color-white);
    font-size: 28px;
    cursor: pointer;
    padding: 5px;
}

.gfb1-menu-nav {
    list-style: none;
}

.gfb1-menu-nav li {
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.gfb1-menu-nav a {
    color: var(--gfb1-color-white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    display: block;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.gfb1-menu-nav a:hover {
    color: var(--gfb1-color-sky);
}

/* Main Content */
.gfb1-main {
    margin-top: 70px;
    padding-bottom: 80px;
}

.gfb1-section {
    padding: 30px 0;
}

.gfb1-section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--gfb1-color-white);
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Carousel */
.gfb1-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.gfb1-carousel-slides {
    position: relative;
    width: 100%;
    height: 200px;
}

.gfb1-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.gfb1-carousel-slide.gfb1-active {
    opacity: 1;
    z-index: 1;
}

.gfb1-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gfb1-carousel-nav {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.gfb1-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gfb1-carousel-dot.gfb1-active {
    background: var(--gfb1-color-white);
    width: 25px;
    border-radius: 5px;
}

/* Game Grid */
.gfb1-game-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 30px;
}

.gfb1-game-card {
    background: var(--gfb1-color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gfb1-game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.gfb1-game-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.gfb1-game-info {
    padding: 10px;
}

.gfb1-game-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--gfb1-color-deep);
    margin-bottom: 5px;
    text-align: center;
}

.gfb1-game-category {
    font-size: 11px;
    color: var(--gfb1-color-text-light);
    text-align: center;
}

/* Filters */
.gfb1-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 0;
    margin-bottom: 20px;
    scrollbar-width: none;
}

.gfb1-filters::-webkit-scrollbar {
    display: none;
}

.gfb1-filter-btn {
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--gfb1-color-white);
    color: var(--gfb1-color-cadet);
    border: 2px solid transparent;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.gfb1-filter-btn.gfb1-active {
    background: var(--gfb1-color-cadet);
    color: var(--gfb1-color-white);
    border-color: var(--gfb1-color-cadet);
}

/* Content Box */
.gfb1-content-box {
    background: var(--gfb1-color-white);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gfb1-content-box h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gfb1-color-cadet);
    margin-bottom: 12px;
}

.gfb1-content-box p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--gfb1-color-text-light);
    margin-bottom: 10px;
}

.gfb1-content-box a {
    color: var(--gfb1-color-cadet);
    text-decoration: none;
    font-weight: 600;
}

.gfb1-content-box a:hover {
    text-decoration: underline;
}

/* Accordion */
.gfb1-accordion {
    background: var(--gfb1-color-white);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gfb1-accordion-header {
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--gfb1-color-cadet) 0%, var(--gfb1-color-deep) 100%);
    color: var(--gfb1-color-white);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
}

.gfb1-accordion-icon {
    font-size: 20px;
    font-weight: 700;
}

.gfb1-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.gfb1-accordion-content.gfb1-active {
    max-height: 500px;
}

.gfb1-accordion-content-inner {
    padding: 15px 20px;
    color: var(--gfb1-color-text-light);
    font-size: 14px;
    line-height: 1.7;
}

/* List Styles */
.gfb1-feature-list {
    list-style: none;
    padding: 0;
}

.gfb1-feature-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: flex-start;
    font-size: 14px;
    color: var(--gfb1-color-text-light);
}

.gfb1-feature-list li:before {
    content: '✓';
    color: var(--gfb1-color-cadet);
    font-weight: 700;
    margin-right: 10px;
    font-size: 16px;
}

/* Footer */
.gfb1-footer {
    background: var(--gfb1-color-deep);
    padding: 30px 0 90px;
    margin-top: 40px;
}

.gfb1-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.gfb1-footer-links a {
    color: var(--gfb1-color-white);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.gfb1-footer-links a:hover {
    color: var(--gfb1-color-sky);
}

.gfb1-footer-copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

/* Mobile Bottom Navigation */
.gfb1-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--gfb1-color-cadet) 0%, var(--gfb1-color-deep) 100%);
    padding: 8px 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.gfb1-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--gfb1-color-white);
    min-width: 60px;
    min-height: 60px;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
    border-radius: 10px;
    padding: 5px;
}

.gfb1-nav-item:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.1);
}

.gfb1-nav-item.gfb1-active {
    color: var(--gfb1-color-sky);
}

.gfb1-nav-icon {
    font-size: 22px;
    margin-bottom: 4px;
}

.gfb1-nav-label {
    font-size: 10px;
    font-weight: 600;
    text-align: center;
}

/* Responsive */
@media (min-width: 769px) {
    .gfb1-menu-toggle {
        display: block;
    }

    .gfb1-bottom-nav {
        display: none;
    }

    .gfb1-main {
        padding-bottom: 30px;
    }

    .gfb1-footer {
        padding-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .gfb1-menu-toggle {
        display: block;
    }

    .gfb1-main {
        padding-bottom: 80px;
    }
}
