/**
 * AP777 Theme Stylesheet
 * CSS class prefix: g7b5-
 * Color palette: #DEB887 (gold) | #8B7355 (tan) | #2E4057 (navy) | #CD853F (bronze) | #6F4E37 (brown)
 */

/* === CSS Variables === */
:root {
    --g7b5-primary: #CD853F;
    --g7b5-primary-light: #DEB887;
    --g7b5-secondary: #8B7355;
    --g7b5-dark: #2E4057;
    --g7b5-darker: #1a2536;
    --g7b5-accent: #6F4E37;
    --g7b5-bg: #1a1a2e;
    --g7b5-bg-card: #242445;
    --g7b5-bg-section: #16162e;
    --g7b5-text: #f0e6d3;
    --g7b5-text-muted: #a89f8c;
    --g7b5-border: #3d3d5c;
    --g7b5-success: #4ade80;
    --g7b5-warning: #fbbf24;
    --g7b5-shadow: rgba(0, 0, 0, 0.35);
}

/* === Reset & Base === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.5rem;
    line-height: 1.5rem;
    color: var(--g7b5-text);
    background-color: var(--g7b5-bg);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--g7b5-primary-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--g7b5-primary);
}

ul, ol {
    list-style: none;
}

/* === Header === */
.g7b5-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--g7b5-dark) 0%, var(--g7b5-darker) 100%);
    border-bottom: 2px solid var(--g7b5-primary);
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px var(--g7b5-shadow);
}

.g7b5-header-scrolled {
    background: rgba(46, 64, 87, 0.97);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.g7b5-logo-area {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.g7b5-logo-img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.g7b5-logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--g7b5-primary-light);
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.g7b5-logo-text span {
    color: var(--g7b5-primary);
}

.g7b5-header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.g7b5-btn-register,
.g7b5-btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
    white-space: nowrap;
    line-height: 1.2;
}

.g7b5-btn-register {
    background: linear-gradient(135deg, var(--g7b5-primary) 0%, #b87333 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(205, 133, 63, 0.4);
}

.g7b5-btn-register:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(205, 133, 63, 0.6);
}

.g7b5-btn-login {
    background: transparent;
    color: var(--g7b5-primary-light);
    border: 1.5px solid var(--g7b5-primary);
}

.g7b5-btn-login:hover {
    background: rgba(205, 133, 63, 0.12);
    transform: translateY(-1px);
}

.g7b5-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--g7b5-primary-light);
    font-size: 22px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.g7b5-menu-toggle:hover {
    background: rgba(222, 184, 135, 0.12);
}

/* === Mobile Menu Overlay === */
.g7b5-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0, 0, 0, 0.65);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.g7b5-menu-open ~ .g7b5-menu-overlay,
.g7b5-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* === Mobile Menu Panel === */
#g7b5-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    z-index: 9999;
    background: linear-gradient(180deg, var(--g7b5-dark) 0%, var(--g7b5-darker) 100%);
    border-left: 2px solid var(--g7b5-primary);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    padding: 1.5rem 0;
}

#g7b5-mobile-menu.g7b5-menu-open {
    right: 0;
}

.g7b5-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.2rem 1.2rem;
    border-bottom: 1px solid var(--g7b5-border);
}

.g7b5-menu-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--g7b5-primary-light);
}

.g7b5-menu-close {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--g7b5-text-muted);
    font-size: 20px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.g7b5-menu-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--g7b5-text);
}

.g7b5-menu-list {
    padding: 0.8rem 0;
}

.g7b5-menu-item {
    display: block;
    padding: 0.9rem 1.5rem;
    color: var(--g7b5-text);
    font-size: 1.35rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.g7b5-menu-item:hover {
    background: rgba(205, 133, 63, 0.08);
    color: var(--g7b5-primary-light);
    border-left-color: var(--g7b5-primary);
}

.g7b5-menu-item i {
    margin-right: 0.7rem;
    width: 22px;
    text-align: center;
    color: var(--g7b5-primary);
}

/* === Main Content === */
main {
    padding-top: 58px;
    min-height: calc(100vh - 58px);
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* === Hero Section === */
.g7b5-hero {
    position: relative;
    padding: 2.5rem 1.2rem 3rem;
    background: linear-gradient(160deg, var(--g7b5-dark) 0%, var(--g7b5-bg) 50%, var(--g7b5-bg-section) 100%);
    overflow: hidden;
}

.g7b5-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(205, 133, 63, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.g7b5-hero-content {
    position: relative;
    z-index: 1;
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
}

.g7b5-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(205, 133, 63, 0.15);
    border: 1px solid rgba(205, 133, 63, 0.3);
    color: var(--g7b5-primary-light);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
}

.g7b5-hero h1 {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.2;
    color: var(--g7b5-text);
    margin-bottom: 0.8rem;
    letter-spacing: -0.5px;
}

.g7b5-hero h1 .highlight {
    color: var(--g7b5-primary);
    position: relative;
}

.g7b5-hero-desc {
    font-size: 1.3rem;
    color: var(--g7b5-text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.g7b5-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--g7b5-primary) 0%, #b87333 100%);
    color: #fff;
    padding: 0.85rem 2rem;
    border-radius: 12px;
    font-size: 1.3rem;
    font-weight: 800;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 16px rgba(205, 133, 63, 0.4);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.g7b5-hero-cta:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 24px rgba(205, 133, 63, 0.55);
}

/* === Section Common === */
.g7b5-section {
    padding: 2.5rem 1.2rem;
}

.g7b5-section-alt {
    background: var(--g7b5-bg-section);
}

.g7b5-section-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--g7b5-text);
    text-align: center;
    margin-bottom: 0.5rem;
    position: relative;
}

.g7b5-section-subtitle {
    font-size: 1.15rem;
    color: var(--g7b5-text-muted);
    text-align: center;
    margin-bottom: 1.8rem;
}

.g7b5-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--g7b5-primary), var(--g7b5-primary-light));
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

/* === Game Category Grid === */
.g7b5-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
}

.g7b5-game-card {
    background: var(--g7b5-bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--g7b5-border);
    transition: all 0.28s ease;
    cursor: pointer;
    position: relative;
}

.g7b5-game-card:hover {
    transform: translateY(-3px);
    border-color: var(--g7b5-primary);
    box-shadow: 0 8px 24px var(--g7b5-shadow);
}

.g7b5-game-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: var(--g7b5-darker);
}

.g7b5-game-info {
    padding: 0.6rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.g7b5-game-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--g7b5-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.g7b5-play-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--g7b5-primary);
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    flex-shrink: 0;
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
}

.g7b5-game-card:hover .g7b5-play-icon {
    transform: scale(1.15);
}

/* === Feature Cards === */
.g7b5-feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.g7b5-feature-card {
    background: var(--g7b5-bg-card);
    border: 1px solid var(--g7b5-border);
    border-radius: 14px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.25s ease;
}

.g7b5-feature-card:hover {
    border-color: var(--g7b5-primary);
    background: rgba(36, 36, 69, 0.95);
}

.g7b5-feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(205, 133, 63, 0.18), rgba(222, 184, 135, 0.08));
    border-radius: 12px;
    color: var(--g7b5-primary);
    font-size: 22px;
    flex-shrink: 0;
}

.g7b5-feature-body h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--g7b5-text);
    margin-bottom: 0.35rem;
}

.g7b5-feature-body p {
    font-size: 1.1rem;
    color: var(--g7b5-text-muted);
    line-height: 1.55;
}

/* === CTA Section === */
.g7b5-cta-box {
    background: linear-gradient(135deg, var(--g7b5-dark) 0%, var(--g7b5-accent) 100%);
    border: 2px solid var(--g7b5-primary);
    border-radius: 16px;
    padding: 2.2rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.g7b5-cta-box::before {
    content: '';
    position: absolute;
    top: -60px;
    left: -60px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(205, 133, 63, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.g7b5-cta-box h2 {
    font-size: 1.7rem;
    font-weight: 900;
    color: var(--g7b5-primary-light);
    margin-bottom: 0.6rem;
    position: relative;
}

.g7b5-cta-box p {
    font-size: 1.15rem;
    color: var(--g7b5-text-muted);
    margin-bottom: 1.3rem;
    position: relative;
}

.g7b5-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--g7b5-primary);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 10px;
    font-size: 1.25rem;
    font-weight: 800;
    cursor: pointer;
    border: none;
    transition: all 0.28s ease;
    position: relative;
}

.g7b5-cta-btn:hover {
    background: var(--g7b5-primary-light);
    color: var(--g7b5-dark);
    transform: scale(1.04);
}

/* === Footer === */
.g7b5-footer {
    background: var(--g7b5-darker);
    border-top: 1px solid var(--g7b5-border);
    padding: 2rem 1.2rem 5rem;
}

.g7b5-footer-brand {
    text-align: center;
    margin-bottom: 1.5rem;
}

.g7b5-footer-logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--g7b5-primary-light);
    margin-bottom: 0.4rem;
}

.g7b5-footer-desc {
    font-size: 1.05rem;
    color: var(--g7b5-text-muted);
    line-height: 1.5;
}

.g7b5-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem 1.5rem;
    margin-bottom: 1.5rem;
}

.g7b5-footer-links a {
    font-size: 1.1rem;
    color: var(--g7b5-text-muted);
    transition: color 0.2s ease;
}

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

.g7b5-footer-copy {
    text-align: center;
    font-size: 1rem;
    color: var(--g7b5-text-muted);
    opacity: 0.6;
}

/* === Bottom Navigation (Mobile) === */
.g7b5-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, var(--g7b5-dark) 0%, var(--g7b5-darker) 98%);
    border-top: 2px solid var(--g7b5-primary);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 64px;
    padding: 0.3rem 0.3rem 0.4rem;
    box-shadow: 0 -3px 16px var(--g7b5-shadow);
}

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

.g7b5-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 56px;
    padding: 0.25rem 0.3rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--g7b5-text-muted);
    transition: all 0.25s ease;
    border-radius: 10px;
    position: relative;
    gap: 2px;
}

.g7b5-nav-btn i {
    font-size: 22px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.g7b5-nav-btn span {
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0.2px;
}

.g7b5-nav-btn:hover,
.g7b5-nav-btn.active {
    color: var(--g7b5-primary-light);
    background: rgba(205, 133, 63, 0.1);
}

.g7b5-nav-btn:hover i {
    transform: scale(1.15) translateY(-1px);
}

.g7b5-nav-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--g7b5-primary);
    border-radius: 2px;
}

.g7b5-touch-active {
    transform: scale(0.92) !important;
}

/* === Promo Link Style === */
.g7b5-promo-link {
    display: inline-block;
    color: var(--g7b5-primary-light);
    font-weight: 600;
    border-bottom: 1.5px dashed var(--g7b5-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    padding-bottom: 1px;
}

.g7b5-promo-link:hover {
    color: var(--g7b5-primary);
    border-bottom-style: solid;
}

/* === Utility Classes === */
.g7b5-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 0.8rem;
}

.g7b5-text-center { text-align: center; }
.g7b5-mt-1 { margin-top: 0.8rem; }
.g7b5-mt-2 { margin-top: 1.5rem; }
.g7b5-mb-1 { margin-bottom: 0.8rem; }
.g7b5-mb-2 { margin-bottom: 1.5rem; }

/* === Image Gallery === */
.g7b5-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    margin: 1rem 0;
}

.g7b5-gallery img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--g7b5-border);
}

/* === FAQ Accordion === */
.g7b5-faq-item {
    background: var(--g7b5-bg-card);
    border: 1px solid var(--g7b5-border);
    border-radius: 10px;
    margin-bottom: 0.7rem;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.g7b5-faq-item:hover {
    border-color: var(--g7b5-secondary);
}

.g7b5-faq-q {
    padding: 1rem 1.1rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--g7b5-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    user-select: none;
}

.g7b5-faq-q i {
    color: var(--g7b5-primary);
    font-size: 16px;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.g7b5-faq-a {
    padding: 0 1.1rem 1rem;
    font-size: 1.1rem;
    color: var(--g7b5-text-muted);
    line-height: 1.6;
    display: none;
}

.g7b5-faq-item.open .g7b5-faq-a {
    display: block;
}

.g7b5-faq-item.open .g7b5-faq-q i {
    transform: rotate(180deg);
}

/* === Stats Row === */
.g7b5-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.7rem;
    margin: 1.2rem 0;
}

.g7b5-stat-item {
    text-align: center;
    background: var(--g7b5-bg-card);
    border: 1px solid var(--g7b5-border);
    border-radius: 10px;
    padding: 1rem 0.5rem;
}

.g7b5-stat-num {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--g7b5-primary);
}

.g7b5-stat-label {
    font-size: 0.9rem;
    color: var(--g7b5-text-muted);
    margin-top: 0.2rem;
}

/* === Responsive Tweaks === */
@media (max-width: 360px) {
    .g7b5-hero h1 { font-size: 1.85rem; }
    .g7b5-grid { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
    .g7b5-stats { grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }
}
