/**
 * betao.css - Core styles for betao.click
 * All classes use prefix "w810d-" for namespace isolation
 */

/* CSS Variables */
:root {
    --w810d-primary: #006400;
    --w810d-secondary: #CD853F;
    --w810d-accent: #98FB98;
    --w810d-muted: #8FBC8F;
    --w810d-bg: #2D2D2D;
    --w810d-bg-light: #1a1a1a;
    --w810d-text: #CCCCCC;
    --w810d-text-light: #ffffff;
    --w810d-border: #3a3a3a;
    --w810d-gradient: linear-gradient(135deg, #006400, #004d00);
    --w810d-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* 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(--w810d-bg);
    color: var(--w810d-text);
    line-height: 1.5rem;
    font-size: 1.4rem;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.w810d-container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.w810d-wrapper {
    padding: 1rem;
}

/* Header */
.w810d-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, var(--w810d-bg) 0%, rgba(45, 45, 45, 0.95) 100%);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--w810d-border);
}

.w810d-header-scrolled {
    box-shadow: var(--w810d-shadow);
}

.w810d-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 430px;
    margin: 0 auto;
}

.w810d-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.w810d-logo img {
    width: 28px;
    height: 28px;
}

.w810d-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--w810d-secondary);
    letter-spacing: 1px;
}

.w810d-header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.w810d-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.w810d-btn-primary {
    background: var(--w810d-gradient);
    color: var(--w810d-text-light);
}

.w810d-btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 100, 0, 0.4);
}

.w810d-btn-secondary {
    background: transparent;
    color: var(--w810d-secondary);
    border: 2px solid var(--w810d-secondary);
}

.w810d-btn-secondary:hover {
    background: var(--w810d-secondary);
    color: var(--w810d-bg);
}

.w810d-menu-toggle {
    background: transparent;
    border: none;
    color: var(--w810d-text);
    font-size: 2.2rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile Menu */
.w810d-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--w810d-bg-light);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

.prod3e-menu-active {
    right: 0 !important;
}

.w810d-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.prod3e-overlay-active {
    opacity: 1 !important;
    visibility: visible !important;
}

.w810d-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--w810d-border);
}

.w810d-menu-close {
    background: transparent;
    border: none;
    color: var(--w810d-text);
    font-size: 2.4rem;
    cursor: pointer;
}

.w810d-menu-nav {
    list-style: none;
}

.w810d-menu-nav li {
    margin-bottom: 0.8rem;
}

.w810d-menu-nav a {
    display: block;
    padding: 1rem;
    color: var(--w810d-text);
    font-size: 1.4rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.w810d-menu-nav a:hover {
    background: var(--w810d-primary);
    color: var(--w810d-text-light);
}

/* Main Content */
main {
    padding-top: 60px;
}

@media (max-width: 768px) {
    main {
        padding-bottom: 80px;
    }
}

/* Carousel/Slider */
.w810d-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    margin: 1rem 0;
}

.w810d-slide {
    display: none;
    width: 100%;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
}

.prod3e-slide-active {
    display: block;
}

.w810d-slide img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.w810d-slide:hover img {
    transform: scale(1.02);
}

/* Sections */
.w810d-section {
    padding: 2rem 1rem;
}

.w810d-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--w810d-secondary);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.w810d-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--w810d-primary);
    margin: 0.8rem auto 0;
    border-radius: 2px;
}

/* Game Grid */
.w810d-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.w810d-game-card {
    background: var(--w810d-bg-light);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--w810d-border);
}

.w810d-game-card:hover {
    transform: translateY(-3px);
    border-color: var(--w810d-secondary);
    box-shadow: 0 8px 20px rgba(205, 133, 63, 0.2);
}

.w810d-game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.w810d-game-name {
    padding: 0.5rem;
    font-size: 1.1rem;
    text-align: center;
    color: var(--w810d-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Category Title */
.w810d-category-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--w810d-accent);
    margin: 1.5rem 0 1rem;
    padding-left: 0.5rem;
    border-left: 3px solid var(--w810d-secondary);
}

/* Info Box */
.w810d-info-box {
    background: var(--w810d-bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
    border: 1px solid var(--w810d-border);
}

.w810d-info-box h3 {
    color: var(--w810d-secondary);
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.w810d-info-box p {
    color: var(--w810d-text);
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 0.8rem;
}

/* Promo Links */
.w810d-promo-link {
    color: var(--w810d-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s ease;
}

.w810d-promo-link:hover {
    color: var(--w810d-accent);
    text-decoration: underline;
}

.w810d-cta-btn {
    display: inline-block;
    background: var(--w810d-gradient);
    color: var(--w810d-text-light);
    padding: 1rem 2.5rem;
    border-radius: 25px;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    margin: 1rem 0;
}

.w810d-cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(0, 100, 0, 0.5);
}

/* Features Grid */
.w810d-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.w810d-feature-card {
    background: var(--w810d-bg-light);
    border-radius: 12px;
    padding: 1.2rem;
    text-align: center;
    border: 1px solid var(--w810d-border);
    transition: all 0.3s ease;
}

.w810d-feature-card:hover {
    border-color: var(--w810d-primary);
}

.w810d-feature-icon {
    font-size: 2.8rem;
    color: var(--w810d-secondary);
    margin-bottom: 0.8rem;
}

.w810d-feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--w810d-text-light);
    margin-bottom: 0.5rem;
}

.w810d-feature-desc {
    font-size: 1.1rem;
    color: var(--w810d-text);
}

/* Footer */
.w810d-footer {
    background: var(--w810d-bg-light);
    padding: 2rem 1rem;
    margin-top: 2rem;
    border-top: 1px solid var(--w810d-border);
}

.w810d-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.w810d-footer-links a {
    color: var(--w810d-text);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.w810d-footer-links a:hover {
    color: var(--w810d-secondary);
}

.w810d-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.w810d-partners img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.w810d-partners img:hover {
    opacity: 1;
}

.w810d-copyright {
    text-align: center;
    color: var(--w810d-muted);
    font-size: 1.2rem;
}

/* Bottom Navigation - Mobile Only */
.w810d-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, rgba(45, 45, 45, 0.98) 0%, var(--w810d-bg-light) 100%);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 1px solid var(--w810d-border);
    padding: 0 0.5rem;
}

.w810d-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;
    border-radius: 8px;
}

.w810d-nav-item:hover {
    background: rgba(0, 100, 0, 0.2);
}

.w810d-nav-item.active {
    color: var(--w810d-secondary);
}

.w810d-nav-item.active .w810d-nav-icon {
    color: var(--w810d-secondary);
}

.w810d-nav-icon {
    font-size: 22px;
    color: var(--w810d-text);
    margin-bottom: 2px;
    transition: all 0.3s ease;
}

.w810d-nav-item:hover .w810d-nav-icon {
    transform: scale(1.1);
    color: var(--w810d-secondary);
}

.w810d-nav-text {
    font-size: 10px;
    color: var(--w810d-text);
    font-weight: 500;
}

.w810d-nav-item.active .w810d-nav-text {
    color: var(--w810d-secondary);
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
    .w810d-bottom-nav {
        display: none;
    }
}

/* RTP Stats */
.w810d-rtp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.w810d-rtp-item {
    background: var(--w810d-bg-light);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--w810d-border);
}

.w810d-rtp-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--w810d-secondary);
}

.w810d-rtp-label {
    font-size: 1.1rem;
    color: var(--w810d-muted);
}

/* FAQ Section */
.w810d-faq-item {
    background: var(--w810d-bg-light);
    border-radius: 10px;
    margin-bottom: 0.8rem;
    overflow: hidden;
    border: 1px solid var(--w810d-border);
}

.w810d-faq-question {
    padding: 1.2rem;
    font-weight: 600;
    color: var(--w810d-text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.w810d-faq-question i {
    color: var(--w810d-secondary);
}

.w810d-faq-answer {
    padding: 0 1.2rem 1.2rem;
    color: var(--w810d-text);
    font-size: 1.3rem;
    line-height: 1.6;
}

/* List Styles */
.w810d-list {
    list-style: none;
    padding: 0;
}

.w810d-list li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--w810d-text);
}

.w810d-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--w810d-secondary);
    border-radius: 50%;
}

/* Responsive */
@media (max-width: 380px) {
    .w810d-game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .w810d-features-grid {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.w810d-text-center {
    text-align: center;
}

.w810d-mb-1 {
    margin-bottom: 1rem;
}

.w810d-mb-2 {
    margin-bottom: 2rem;
}

.w810d-highlight {
    color: var(--w810d-secondary);
    font-weight: 600;
}
