/**
 * 333 Squid Game - Main Stylesheet
 * All classes use vb8b- prefix for namespace isolation
 * Color palette: #2C2C2C | #FF4500 | #DC143C | #FF6347 | #2F2F2F
 */

:root {
    --vb8b-primary: #FF4500;
    --vb8b-secondary: #DC143C;
    --vb8b-accent: #FF6347;
    --vb8b-bg-dark: #2C2C2C;
    --vb8b-bg-darker: #2F2F2F;
    --vb8b-text-light: #FFFFFF;
    --vb8b-text-muted: #CCCCCC;
    --vb8b-gold: #FFD700;
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--vb8b-bg-dark);
    color: var(--vb8b-text-light);
    line-height: 1.5rem;
    max-width: 430px;
    margin: 0 auto;
    -webkit-font-smoothing: antialiased;
}

/* Container */
.vb8b-container {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

/* Header */
.vb8b-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: linear-gradient(135deg, var(--vb8b-bg-darker) 0%, #1a1a1a 100%);
    border-bottom: 2px solid var(--vb8b-primary);
    z-index: 1000;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.vb8b-header-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}
.vb8b-header-logo img {
    width: 28px;
    height: 28px;
    border-radius: 4px;
}
.vb8b-header-logo span {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--vb8b-primary);
    white-space: nowrap;
}
.vb8b-header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.vb8b-btn-register {
    background: linear-gradient(135deg, var(--vb8b-primary), var(--vb8b-secondary));
    color: #fff;
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    min-height: 36px;
}
.vb8b-btn-login {
    background: transparent;
    color: var(--vb8b-accent);
    border: 1.5px solid var(--vb8b-accent);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    min-height: 36px;
}
.vb8b-header-menu-btn {
    background: none;
    border: none;
    color: var(--vb8b-text-light);
    font-size: 2rem;
    cursor: pointer;
    padding: 0 0.3rem;
}

/* Mobile Menu */
.vb8b-mobile-menu {
    display: none;
    position: fixed;
    top: 52px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: var(--vb8b-bg-darker);
    border-bottom: 2px solid var(--vb8b-primary);
    z-index: 9999;
    padding: 0.5rem 0;
}
.vb8b-mobile-menu a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--vb8b-text-light);
    text-decoration: none;
    font-size: 1.4rem;
    border-bottom: 1px solid #444;
}
.vb8b-mobile-menu a:hover {
    background: var(--vb8b-primary);
    color: #fff;
}

/* Main Content */
.vb8b-main {
    padding-top: 56px;
}
@media (max-width: 768px) {
    .vb8b-main {
        padding-bottom: 80px;
    }
}

/* Carousel */
.vb8b-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: 0;
}
.vb8b-slide {
    display: none;
    width: 100%;
    cursor: pointer;
}
.vb8b-slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* Section Titles */
.vb8b-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--vb8b-primary);
    margin: 1.5rem 0 1rem;
    padding-left: 1rem;
    border-left: 3px solid var(--vb8b-accent);
}

/* Category Label */
.vb8b-cat-label {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--vb8b-gold);
    margin: 1.2rem 0 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Game Grid */
.vb8b-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
    padding: 0.5rem 0;
}
.vb8b-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
}
.vb8b-game-item:hover {
    transform: scale(1.05);
}
.vb8b-game-item img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 0.8rem;
    object-fit: cover;
    border: 1px solid #444;
}
.vb8b-game-item p {
    font-size: 1rem;
    color: var(--vb8b-text-muted);
    margin-top: 0.3rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Content Card */
.vb8b-card {
    background: var(--vb8b-bg-darker);
    border-radius: 1rem;
    padding: 1.2rem;
    margin: 1rem 0;
    border: 1px solid #444;
}
.vb8b-card h3 {
    font-size: 1.5rem;
    color: var(--vb8b-primary);
    margin-bottom: 0.8rem;
}
.vb8b-card p {
    font-size: 1.3rem;
    color: var(--vb8b-text-muted);
    line-height: 1.8rem;
}

/* Promo Button */
.vb8b-promo-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--vb8b-primary), var(--vb8b-secondary));
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 3rem;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    margin: 1rem 0;
    text-align: center;
}

/* Promo Text Link */
.vb8b-promo-link {
    color: var(--vb8b-accent);
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    font-size: 1.3rem;
}

/* FAQ Section */
.vb8b-faq-item {
    background: var(--vb8b-bg-darker);
    border-radius: 0.8rem;
    padding: 1rem;
    margin: 0.6rem 0;
    border-left: 3px solid var(--vb8b-primary);
}
.vb8b-faq-item strong {
    color: var(--vb8b-gold);
    font-size: 1.3rem;
    display: block;
    margin-bottom: 0.4rem;
}
.vb8b-faq-item span {
    color: var(--vb8b-text-muted);
    font-size: 1.2rem;
    line-height: 1.6rem;
}

/* Footer */
.vb8b-footer {
    background: #1a1a1a;
    padding: 2rem 1.2rem 1rem;
    margin-top: 2rem;
    border-top: 2px solid var(--vb8b-primary);
}
.vb8b-footer-desc {
    font-size: 1.2rem;
    color: var(--vb8b-text-muted);
    line-height: 1.6rem;
    margin-bottom: 1.2rem;
}
.vb8b-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
}
.vb8b-footer-links a {
    background: var(--vb8b-bg-dark);
    color: var(--vb8b-accent);
    padding: 0.4rem 0.8rem;
    border-radius: 0.4rem;
    font-size: 1.1rem;
    text-decoration: none;
    border: 1px solid #444;
}
.vb8b-footer-links a:hover {
    background: var(--vb8b-primary);
    color: #fff;
}
.vb8b-footer-copy {
    text-align: center;
    font-size: 1.1rem;
    color: #888;
    padding-top: 1rem;
    border-top: 1px solid #444;
}

/* Bottom Navigation */
.vb8b-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    height: 60px;
    background: linear-gradient(180deg, #1a1a1a, #111);
    border-top: 2px solid var(--vb8b-primary);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 0 0.3rem;
}
.vb8b-bottom-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 56px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    transition: color 0.2s, transform 0.15s;
    padding: 0.3rem;
}
.vb8b-bottom-nav-btn:hover,
.vb8b-bottom-nav-btn:focus {
    color: var(--vb8b-primary);
    transform: scale(1.1);
}
.vb8b-bottom-nav-btn.active {
    color: var(--vb8b-primary);
}
.vb8b-bottom-nav-btn i,
.vb8b-bottom-nav-btn .material-icons {
    font-size: 22px;
    margin-bottom: 2px;
}
.vb8b-bottom-nav-btn span {
    font-size: 1rem;
    white-space: nowrap;
}

/* Internal Links */
.vb8b-internal-link {
    color: var(--vb8b-accent);
    text-decoration: underline;
    font-weight: 500;
}
.vb8b-internal-link:hover {
    color: var(--vb8b-primary);
}

/* Winners Table */
.vb8b-winners-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.2rem;
}
.vb8b-winners-table th {
    background: var(--vb8b-primary);
    color: #fff;
    padding: 0.6rem;
    text-align: left;
    font-size: 1.1rem;
}
.vb8b-winners-table td {
    padding: 0.5rem 0.6rem;
    border-bottom: 1px solid #444;
    color: var(--vb8b-text-muted);
}

/* Payment Icons Row */
.vb8b-payment-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.8rem 0;
}
.vb8b-payment-item {
    background: var(--vb8b-bg-darker);
    padding: 0.6rem 1.2rem;
    border-radius: 0.6rem;
    font-size: 1.2rem;
    color: var(--vb8b-text-muted);
    border: 1px solid #444;
}

/* Testimonial */
.vb8b-testimonial {
    background: var(--vb8b-bg-darker);
    border-radius: 0.8rem;
    padding: 1rem;
    margin: 0.5rem 0;
    border-left: 3px solid var(--vb8b-gold);
}
.vb8b-testimonial p {
    font-size: 1.2rem;
    color: var(--vb8b-text-muted);
    line-height: 1.6rem;
}
.vb8b-testimonial strong {
    color: var(--vb8b-gold);
    font-size: 1.1rem;
}

/* Desktop Hide */
@media (min-width: 769px) {
    .vb8b-bottom-nav { display: none; }
}
@media (max-width: 768px) {
    .vb8b-main { padding-bottom: 80px; }
}

/* Utility */
.vb8b-text-center { text-align: center; }
.vb8b-mt-1 { margin-top: 1rem; }
.vb8b-mb-1 { margin-bottom: 1rem; }
.vb8b-text-sm { font-size: 1.2rem; }
