/**
 * BBJ 777x - Main Stylesheet
 * Prefix: sbf8-
 * Color Palette: #C0C0C0 | #FFEF94 | #2F2F2F | #2D2D2D | #ECF0F1
 */

/* CSS Reset & Base */
*, *::before, *::after {
    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, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.6rem;
    line-height: 1.5rem;
    color: #ECF0F1;
    background-color: #2D2D2D;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

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

ul, ol {
    list-style: none;
}

/* Header Styles */
.sbf8-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #2F2F2F;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #C0C0C0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.sbf8-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sbf8-logo img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.sbf8-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: #FFEF94;
    letter-spacing: -0.5px;
}

.sbf8-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sbf8-btn {
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.sbf8-btn-register {
    background: linear-gradient(135deg, #FFEF94, #f0d85c);
    color: #2F2F2F;
}

.sbf8-btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 239, 148, 0.4);
}

.sbf8-btn-login {
    background: transparent;
    color: #FFEF94;
    border: 2px solid #FFEF94;
}

.sbf8-btn-login:hover {
    background: #FFEF94;
    color: #2F2F2F;
}

.sbf8-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}

.sbf8-menu-toggle span {
    width: 24px;
    height: 2px;
    background: #FFEF94;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Menu */
#gamebf30-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: #2F2F2F;
    z-index: 9999;
    padding: 70px 20px 20px;
    transition: right 0.3s ease;
    overflow-y: auto;
    border-left: 2px solid #C0C0C0;
}

#gamebf30-mobile-menu.sbf8-menu-active {
    right: 0;
}

.sbf8-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    display: none;
}

.sbf8-menu-overlay.sbf8-show {
    display: block;
}

.sbf8-menu-list li {
    margin-bottom: 4px;
}

.sbf8-menu-list a {
    display: block;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 1.4rem;
    color: #ECF0F1;
    transition: all 0.2s ease;
}

.sbf8-menu-list a:hover,
.sbf8-menu-list a.sbf8-nav-active {
    background: rgba(255, 239, 148, 0.15);
    color: #FFEF94;
}

/* Main Content */
main {
    margin-top: 64px;
    padding: 20px 16px;
    min-height: calc(100vh - 200px);
}

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

/* Hero Section */
.sbf8-hero {
    text-align: center;
    padding: 32px 16px;
    background: linear-gradient(180deg, #2F2F2F 0%, #2D2D2D 100%);
    border-radius: 16px;
    margin-bottom: 24px;
    border: 1px solid rgba(192, 192, 192, 0.2);
}

.sbf8-hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #FFEF94;
    margin-bottom: 12px;
    line-height: 1.3;
}

.sbf8-hero p {
    font-size: 1.4rem;
    color: #C0C0C0;
    max-width: 400px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.sbf8-hero-cta {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, #FFEF94, #f0d85c);
    color: #2F2F2F;
    font-weight: 700;
    font-size: 1.4rem;
    border-radius: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.sbf8-hero-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 239, 148, 0.35);
}

/* Section Titles */
.sbf8-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #FFEF94;
    margin-bottom: 16px;
    padding-left: 12px;
    border-left: 4px solid #FFEF94;
}

/* Category Filter Tabs */
.sbf8-cat-filter {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 0;
    margin-bottom: 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sbf8-cat-filter::-webkit-scrollbar {
    display: none;
}

.sbf8-cat-btn {
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    background: #2F2F2F;
    color: #C0C0C0;
    border: 1px solid #444;
    transition: all 0.25s ease;
}

.sbf8-cat-btn.sbf8-active,
.sbf8-cat-btn:hover {
    background: #FFEF94;
    color: #2F2F2F;
    border-color: #FFEF94;
}

/* Game Grid */
.sbf8-game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.sbf8-game-card {
    background: #2F2F2F;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(192, 192, 192, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
}

.sbf8-game-card:hover {
    transform: translateY(-4px);
    border-color: #FFEF94;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.sbf8-game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.sbf8-game-name {
    padding: 8px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #ECF0F1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Content Sections */
.sbf8-content-section {
    background: #2F2F2F;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(192, 192, 192, 0.15);
}

.sbf8-content-section h2 {
    font-size: 1.7rem;
    color: #FFEF94;
    margin-bottom: 14px;
}

.sbf8-content-section h3 {
    font-size: 1.4rem;
    color: #FFEF94;
    margin-top: 16px;
    margin-bottom: 8px;
}

.sbf8-content-section p {
    font-size: 1.4rem;
    color: #C0C0C0;
    line-height: 1.7;
    margin-bottom: 12px;
}

.sbf8-content-section ul {
    padding-left: 20px;
    margin-bottom: 12px;
}

.sbf8-content-section li {
    font-size: 1.3rem;
    color: #C0C0C0;
    line-height: 1.7;
    margin-bottom: 6px;
    list-style: disc;
}

.sbf8-content-section strong {
    color: #FFEF94;
}

/* Promo Link Inline */
.sbf8-promo-link {
    color: #FFEF94;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dotted;
    transition: opacity 0.2s;
}

.sbf8-promo-link:hover {
    opacity: 0.8;
}

/* Feature Cards */
.sbf8-feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.sbf8-feature-item {
    background: rgba(47, 47, 47, 0.6);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    border: 1px solid rgba(192, 192, 192, 0.15);
}

.sbf8-feature-icon {
    font-size: 28px;
    margin-bottom: 8px;
    color: #FFEF94;
}

.sbf8-feature-item h4 {
    font-size: 1.3rem;
    color: #FFEF94;
    margin-bottom: 4px;
}

.sbf8-feature-item p {
    font-size: 1.1rem;
    color: #C0C0C0;
    line-height: 1.5;
}

/* FAQ Accordion */
.sbf8-faq-item {
    background: rgba(45, 45, 45, 0.8);
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid rgba(192, 192, 192, 0.1);
    overflow: hidden;
}

.sbf8-faq-question {
    padding: 14px 16px;
    font-size: 1.3rem;
    font-weight: 600;
    color: #ECF0F1;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.sbf8-faq-question:hover {
    background: rgba(255, 239, 148, 0.08);
}

.sbf8-faq-answer {
    padding: 0 16px 14px;
    font-size: 1.25rem;
    color: #C0C0C0;
    line-height: 1.65;
    display: none;
}

.sbf8-faq-item.sbf8-open .sbf8-faq-answer {
    display: block;
}

/* Mobile Bottom Navigation */
.sbf8-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #2F2F2F;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 62px;
    border-top: 2px solid #C0C0C0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    padding: 0 8px;
}

.sbf8-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 56px;
    cursor: pointer;
    border: none;
    background: none;
    padding: 4px 8px;
    border-radius: 10px;
    transition: all 0.25s ease;
    position: relative;
}

.sbf8-nav-item::after {
    content: '';
    position: absolute;
    bottom: 2px;
    width: 24px;
    height: 3px;
    background: #FFEF94;
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.25s;
}

.sbf8-nav-item.sbf8-active::after,
.sbf8-nav-item:hover::after {
    opacity: 1;
}

.sbf8-nav-icon {
    font-size: 22px;
    color: #C0C0C0;
    margin-bottom: 2px;
    transition: color 0.25s;
}

.sbf8-nav-item:hover .sbf8-nav-icon,
.sbf8-nav-item.sbf8-active .sbf8-nav-icon {
    color: #FFEF94;
}

.sbf8-nav-label {
    font-size: 10px;
    color: #C0C0C0;
    font-weight: 500;
    transition: color 0.25s;
}

.sbf8-nav-item:hover .sbf8-nav-label,
.sbf8-nav-item.sbf8-active .sbf8-nav-label {
    color: #FFEF94;
}

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

/* Footer */
.sbf8-footer {
    background: #2F2F2F;
    border-top: 2px solid #C0C0C0;
    padding: 24px 16px;
    text-align: center;
    margin-top: 32px;
}

.sbf8-footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.sbf8-footer-links a {
    font-size: 1.2rem;
    color: #C0C0C0;
    transition: color 0.2s;
}

.sbf8-footer-links a:hover {
    color: #FFEF94;
}

.sbf8-footer-copy {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

.sbf8-disclaimer {
    font-size: 1rem;
    color: #555;
    margin-top: 12px;
    padding: 12px;
    background: rgba(45, 45, 45, 0.5);
    border-radius: 8px;
    line-height: 1.5;
}

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

/* Responsive */
@media (min-width: 769px) {
    .sbf8-header-actions .sbf8-menu-toggle {
        display: none;
    }

    main {
        max-width: 900px;
        margin-left: auto;
        margin-right: auto;
    }

    .sbf8-game-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .sbf8-feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
