/**
 * Hao88 App - Main CSS Stylesheet
 * All classes use 'gbbf-' prefix to avoid namespace conflicts
 */

/* CSS Variables */
:root {
    --gbbf-primary: #000080;
    --gbbf-secondary: #34495E;
    --gbbf-accent1: #7B68EE;
    --gbbf-accent2: #87CEFA;
    --gbbf-light: #FFFACD;
    --gbbf-dark: #34495E;
    --gbbf-white: #FFFFFF;
    --gbbf-text: #FFFACD;
    --gbbf-text-dark: #34495E;
}

/* 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.4rem;
    line-height: 1.5;
    background-color: var(--gbbf-secondary);
    color: var(--gbbf-text);
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
}

a {
    text-decoration: none;
    color: var(--gbbf-accent2);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--gbbf-accent1);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header Styles */
.gbbf-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--gbbf-primary) 0%, var(--gbbf-secondary) 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    padding: 10px 15px;
}

.gbbf-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
}

.gbbf-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gbbf-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gbbf-accent1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gbbf-white);
    font-size: 18px;
    font-weight: bold;
}

.gbbf-logo-text {
    color: var(--gbbf-white);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gbbf-header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.gbbf-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.gbbf-btn-register {
    background: var(--gbbf-accent1);
    color: var(--gbbf-white);
}

.gbbf-btn-register:hover {
    background: var(--gbbf-accent2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(123, 104, 238, 0.4);
}

.gbbf-btn-login {
    background: transparent;
    color: var(--gbbf-white);
    border: 2px solid var(--gbbf-white);
}

.gbbf-btn-login:hover {
    background: var(--gbbf-white);
    color: var(--gbbf-primary);
}

.gbbf-menu-btn {
    background: none;
    border: none;
    color: var(--gbbf-white);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu */
.gbbf-mobile-menu {
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    background: var(--gbbf-secondary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.gbbf-mobile-menu.gbbf-menu-open {
    max-height: 400px;
}

.gbbf-menu-list {
    list-style: none;
    padding: 10px 0;
}

.gbbf-menu-item {
    border-bottom: 1px solid rgba(255, 250, 205, 0.1);
}

.gbbf-menu-item:last-child {
    border-bottom: none;
}

.gbbf-menu-link {
    display: block;
    padding: 12px 20px;
    color: var(--gbbf-text);
    font-size: 14px;
    transition: background 0.3s ease;
}

.gbbf-menu-link:hover {
    background: rgba(123, 104, 238, 0.1);
    color: var(--gbbf-accent2);
}

/* Main Content */
.gbbf-main {
    margin-top: 52px;
    padding: 20px 15px 80px;
    min-height: calc(100vh - 52px);
}

.gbbf-container {
    max-width: 430px;
    margin: 0 auto;
}

/* Hero Carousel */
.gbbf-carousel {
    position: relative;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.gbbf-carousel-slide {
    width: 100%;
    height: 180px;
    overflow: hidden;
    cursor: pointer;
}

.gbbf-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gbbf-carousel-slide:hover img {
    transform: scale(1.05);
}

/* Headings */
.gbbf-h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--gbbf-accent2);
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gbbf-h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--gbbf-accent1);
    margin-bottom: 15px;
    margin-top: 30px;
}

.gbbf-h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gbbf-light);
    margin-bottom: 10px;
}

/* Game Grid */
.gbbf-section {
    margin-bottom: 30px;
}

.gbbf-section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--gbbf-accent2);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gbbf-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.gbbf-game-item {
    background: rgba(52, 73, 94, 0.5);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.gbbf-game-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(123, 104, 238, 0.3);
}

.gbbf-game-icon {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.gbbf-game-name {
    padding: 5px;
    font-size: 10px;
    color: var(--gbbf-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Content Cards */
.gbbf-card {
    background: rgba(52, 73, 94, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(135, 206, 250, 0.2);
}

.gbbf-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--gbbf-accent2);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gbbf-card-content {
    font-size: 14px;
    line-height: 1.6;
    color: var(--gbbf-text);
}

.gbbf-card-content p {
    margin-bottom: 12px;
}

/* Promo Links */
.gbbf-promo-link {
    display: inline-block;
    color: var(--gbbf-accent2);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.gbbf-promo-link:hover {
    color: var(--gbbf-accent1);
}

.gbbf-promo-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--gbbf-accent1) 0%, var(--gbbf-primary) 100%);
    color: var(--gbbf-white);
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 10px rgba(123, 104, 238, 0.3);
}

.gbbf-promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(123, 104, 238, 0.5);
}

/* Footer */
.gbbf-footer {
    background: linear-gradient(135deg, var(--gbbf-primary) 0%, var(--gbbf-secondary) 100%);
    padding: 30px 15px 80px;
    margin-top: 40px;
}

.gbbf-footer-content {
    max-width: 430px;
    margin: 0 auto;
}

.gbbf-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    justify-content: center;
}

.gbbf-footer-link {
    color: var(--gbbf-text);
    font-size: 12px;
    transition: color 0.3s ease;
}

.gbbf-footer-link:hover {
    color: var(--gbbf-accent2);
}

.gbbf-partners {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.gbbf-partner-logo {
    width: 50px;
    height: 30px;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.gbbf-partner-logo:hover {
    opacity: 1;
}

.gbbf-copyright {
    text-align: center;
    color: rgba(255, 250, 205, 0.6);
    font-size: 11px;
}

/* Bottom Navigation */
.gbbf-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, var(--gbbf-primary) 0%, var(--gbbf-secondary) 100%);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    height: 60px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
}

.gbbf-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(255, 250, 205, 0.7);
    padding: 5px;
    border-radius: 8px;
}

.gbbf-bottom-nav-item:hover {
    background: rgba(123, 104, 238, 0.2);
    color: var(--gbbf-accent2);
}

.gbbf-bottom-nav-item.gbbf-active {
    color: var(--gbbf-accent2);
}

.gbbf-bottom-nav-item.gbbf-touched {
    transform: scale(0.95);
}

.gbbf-bottom-nav-icon {
    font-size: 22px;
    margin-bottom: 2px;
}

.gbbf-bottom-nav-text {
    font-size: 10px;
    font-weight: 500;
}

/* Utilities */
.gbbf-text-center {
    text-align: center;
}

.gbbf-mt-20 {
    margin-top: 20px;
}

.gbbf-mb-20 {
    margin-bottom: 20px;
}

.gbbf-hidden {
    display: none;
}

/* Desktop Styles */
@media (min-width: 769px) {
    .gbbf-bottom-nav {
        display: none;
    }

    .gbbf-main {
        padding-bottom: 20px;
    }

    .gbbf-footer {
        padding-bottom: 30px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .gbbf-game-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .gbbf-main {
        padding-bottom: 80px;
    }
}
