/**
 * TablePlus88 Core Stylesheet
 * Class prefix: wecb5-
 * Color palette: #3A3A3A | #FF8000 | #999999 | #BF360C
 */

/* CSS Variables */
:root {
    --wecb5-bg-dark: #3A3A3A;
    --wecb5-bg-darker: #2a2a2a;
    --wecb5-bg-card: #333333;
    --wecb5-accent: #FF8000;
    --wecb5-accent-hover: #FF9933;
    --wecb5-accent-dark: #BF360C;
    --wecb5-text-light: #FFFFFF;
    --wecb5-text-muted: #999999;
    --wecb5-text-dim: #cccccc;
    --wecb5-border: #4a4a4a;
    --wecb5-shadow: rgba(0, 0, 0, 0.3);
    --wecb5-radius: 8px;
    --wecb5-radius-lg: 12px;
    font-size: 62.5%;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--wecb5-bg-dark);
    color: var(--wecb5-text-light);
    line-height: 1.5rem;
    font-size: 1.4rem;
    max-width: 430px;
    margin: 0 auto;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--wecb5-accent); text-decoration: none; }
a:hover { color: var(--wecb5-accent-hover); }
img { max-width: 100%; height: auto; display: block; }

/* Header */
.wecb5-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    height: 56px;
    background: linear-gradient(180deg, #2a2a2a 0%, #333333 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    z-index: 1000;
    border-bottom: 2px solid var(--wecb5-accent);
}
.wecb5-logo-area {
    display: flex;
    align-items: center;
    gap: 8px;
}
.wecb5-logo-area img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}
.wecb5-logo-area span {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--wecb5-accent);
    letter-spacing: 0.5px;
}
.wecb5-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}
.wecb5-btn-register, .wecb5-btn-login {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
.wecb5-btn-register {
    background: linear-gradient(135deg, var(--wecb5-accent), var(--wecb5-accent-dark));
    color: #fff;
}
.wecb5-btn-register:hover {
    background: linear-gradient(135deg, var(--wecb5-accent-hover), var(--wecb5-accent));
    transform: scale(1.05);
}
.wecb5-btn-login {
    background: transparent;
    color: var(--wecb5-accent);
    border: 1.5px solid var(--wecb5-accent);
}
.wecb5-btn-login:hover {
    background: rgba(255, 128, 0, 0.1);
}
.wecb5-menu-btn {
    background: none;
    border: none;
    color: var(--wecb5-text-light);
    font-size: 2.2rem;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
}

/* Mobile Menu */
.wecb5-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: var(--wecb5-bg-darker);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 20px 16px;
    overflow-y: auto;
}
.wecb5-menu-active { right: 0 !important; }
.wecb5-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--wecb5-border);
}
.wecb5-menu-header span {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--wecb5-accent);
}
.wecb5-menu-close {
    background: none;
    border: none;
    color: var(--wecb5-text-light);
    font-size: 2.4rem;
    cursor: pointer;
}
.wecb5-menu-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 8px;
    color: var(--wecb5-text-light);
    font-size: 1.4rem;
    border-bottom: 1px solid var(--wecb5-border);
    transition: background 0.2s;
}
.wecb5-menu-nav a:hover {
    background: rgba(255, 128, 0, 0.1);
    color: var(--wecb5-accent);
}
.wecb5-menu-nav a .material-icons,
.wecb5-menu-nav a .fas,
.wecb5-menu-nav a .bi {
    font-size: 2rem;
    color: var(--wecb5-accent);
}

/* Overlay */
.wecb5-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
}
.wecb5-overlay-active { display: block; }

/* Main Content */
.wecb5-main {
    padding-top: 56px;
    min-height: 100vh;
}

/* Carousel */
.wecb5-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0 0 var(--wecb5-radius-lg) var(--wecb5-radius-lg);
}
.wecb5-carousel-slide {
    display: none;
    width: 100%;
    cursor: pointer;
}
.wecb5-slide-active { display: block; }
.wecb5-carousel-slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
}
.wecb5-carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}
.wecb5-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    border: none;
    transition: background 0.3s;
}
.wecb5-dot-active {
    background: var(--wecb5-accent);
    width: 20px;
    border-radius: 4px;
}

/* Section */
.wecb5-section {
    padding: 16px 12px;
}
.wecb5-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--wecb5-accent);
    margin-bottom: 12px;
    padding-left: 4px;
    border-left: 4px solid var(--wecb5-accent);
    padding-left: 10px;
}

/* Game Grid */
.wecb5-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.wecb5-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
    background: var(--wecb5-bg-card);
    border-radius: var(--wecb5-radius);
    padding: 8px 4px;
}
.wecb5-game-item:hover {
    transform: translateY(-2px);
}
.wecb5-game-item img {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    margin: 0 auto 4px;
    object-fit: cover;
}
.wecb5-game-item span {
    font-size: 1rem;
    color: var(--wecb5-text-dim);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Category Header */
.wecb5-cat-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 20px 0 10px;
    padding: 8px 12px;
    background: linear-gradient(90deg, var(--wecb5-accent-dark), transparent);
    border-radius: var(--wecb5-radius);
}
.wecb5-cat-header h3 {
    font-size: 1.5rem;
    color: var(--wecb5-text-light);
    font-weight: 600;
}

/* Content Cards */
.wecb5-card {
    background: var(--wecb5-bg-card);
    border-radius: var(--wecb5-radius-lg);
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid var(--wecb5-border);
}
.wecb5-card h2 {
    font-size: 1.6rem;
    color: var(--wecb5-accent);
    margin-bottom: 8px;
}
.wecb5-card h3 {
    font-size: 1.4rem;
    color: var(--wecb5-accent);
    margin-bottom: 6px;
}
.wecb5-card p {
    color: var(--wecb5-text-dim);
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 8px;
}

/* Promo Button */
.wecb5-promo-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--wecb5-accent), var(--wecb5-accent-dark));
    color: #fff;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-align: center;
}
.wecb5-promo-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 128, 0, 0.4);
}

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

/* Testimonials */
.wecb5-testimonial {
    background: var(--wecb5-bg-card);
    border-radius: var(--wecb5-radius-lg);
    padding: 14px;
    margin-bottom: 10px;
    border-left: 3px solid var(--wecb5-accent);
}
.wecb5-testimonial-name {
    font-weight: 700;
    color: var(--wecb5-accent);
    font-size: 1.3rem;
}
.wecb5-testimonial-text {
    color: var(--wecb5-text-dim);
    font-size: 1.2rem;
    margin-top: 4px;
}

/* Winners */
.wecb5-winner-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--wecb5-border);
    font-size: 1.2rem;
}
.wecb5-winner-name { color: var(--wecb5-text-dim); }
.wecb5-winner-game { color: var(--wecb5-accent); font-weight: 600; }
.wecb5-winner-amount { color: #4CAF50; font-weight: 700; }

/* Payment */
.wecb5-payment-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.wecb5-payment-item {
    background: var(--wecb5-bg-card);
    padding: 10px 16px;
    border-radius: var(--wecb5-radius);
    font-size: 1.2rem;
    color: var(--wecb5-text-dim);
    border: 1px solid var(--wecb5-border);
}

/* Footer */
.wecb5-footer {
    background: var(--wecb5-bg-darker);
    padding: 20px 12px 80px;
    border-top: 2px solid var(--wecb5-accent);
}
.wecb5-footer-desc {
    color: var(--wecb5-text-muted);
    font-size: 1.2rem;
    line-height: 1.5;
    margin-bottom: 16px;
}
.wecb5-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.wecb5-footer-links a {
    background: var(--wecb5-bg-card);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 1.1rem;
    color: var(--wecb5-text-dim);
    border: 1px solid var(--wecb5-border);
    transition: all 0.2s;
}
.wecb5-footer-links a:hover {
    color: var(--wecb5-accent);
    border-color: var(--wecb5-accent);
}
.wecb5-footer-copy {
    color: var(--wecb5-text-muted);
    font-size: 1.1rem;
    text-align: center;
    margin-top: 12px;
}

/* Bottom Navigation */
.wecb5-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    height: 60px;
    background: linear-gradient(180deg, #2e2e2e, #1f1f1f);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 2px solid var(--wecb5-accent);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.4);
}
.wecb5-bottom-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 56px;
    background: none;
    border: none;
    color: var(--wecb5-text-muted);
    cursor: pointer;
    transition: all 0.2s;
    padding: 4px;
    border-radius: 8px;
}
.wecb5-bottom-btn:hover,
.wecb5-bottom-btn:focus {
    color: var(--wecb5-accent);
}
.wecb5-btn-pressed {
    transform: scale(0.92);
    color: var(--wecb5-accent) !important;
}
.wecb5-bottom-btn .material-icons,
.wecb5-bottom-btn .fas,
.wecb5-bottom-btn .far,
.wecb5-bottom-btn .fad,
.wecb5-bottom-btn ion-icon,
.wecb5-bottom-btn .bi {
    font-size: 22px;
    margin-bottom: 2px;
}
.wecb5-bottom-btn span {
    font-size: 1rem;
    line-height: 1.2;
}
.wecb5-bottom-btn-active {
    color: var(--wecb5-accent) !important;
}
.wecb5-bottom-btn-active::after {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: var(--wecb5-accent);
    border-radius: 1px;
    margin-top: 2px;
}

/* Features Grid */
.wecb5-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.wecb5-feature-item {
    background: var(--wecb5-bg-card);
    padding: 12px;
    border-radius: var(--wecb5-radius);
    text-align: center;
    border: 1px solid var(--wecb5-border);
}
.wecb5-feature-item .material-icons,
.wecb5-feature-item .fas,
.wecb5-feature-item .bi {
    font-size: 2.4rem;
    color: var(--wecb5-accent);
    margin-bottom: 6px;
}
.wecb5-feature-item h4 {
    font-size: 1.2rem;
    color: var(--wecb5-text-light);
    margin-bottom: 4px;
}
.wecb5-feature-item p {
    font-size: 1.1rem;
    color: var(--wecb5-text-muted);
}

/* Mobile bottom padding */
@media (max-width: 768px) {
    .wecb5-main {
        padding-bottom: 80px;
    }
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
    .wecb5-bottom-nav {
        display: none;
    }
    .wecb5-footer {
        padding-bottom: 20px;
    }
}

/* CTA Section */
.wecb5-cta {
    text-align: center;
    padding: 20px 12px;
    background: linear-gradient(135deg, var(--wecb5-accent-dark), var(--wecb5-bg-dark));
    border-radius: var(--wecb5-radius-lg);
    margin: 16px 12px;
}
.wecb5-cta h2 {
    color: var(--wecb5-accent);
    font-size: 1.8rem;
    margin-bottom: 8px;
}
.wecb5-cta p {
    color: var(--wecb5-text-dim);
    font-size: 1.3rem;
    margin-bottom: 14px;
}

/* App Download */
.wecb5-app-banner {
    background: linear-gradient(135deg, #1a1a1a, var(--wecb5-bg-card));
    border-radius: var(--wecb5-radius-lg);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
    border: 1px solid var(--wecb5-accent);
}
.wecb5-app-banner img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
}
.wecb5-app-info h3 {
    color: var(--wecb5-accent);
    font-size: 1.4rem;
}
.wecb5-app-info p {
    color: var(--wecb5-text-muted);
    font-size: 1.1rem;
}

/* Safety page styles */
.wecb5-safety-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}
.wecb5-safety-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--wecb5-bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--wecb5-accent);
}
.wecb5-safety-icon .material-icons,
.wecb5-safety-icon .fas {
    color: var(--wecb5-accent);
    font-size: 1.8rem;
}
.wecb5-safety-text h4 {
    color: var(--wecb5-accent);
    font-size: 1.3rem;
    margin-bottom: 4px;
}
.wecb5-safety-text p {
    color: var(--wecb5-text-dim);
    font-size: 1.2rem;
}

/* FAQ styles */
.wecb5-faq-item {
    background: var(--wecb5-bg-card);
    border-radius: var(--wecb5-radius);
    padding: 14px;
    margin-bottom: 10px;
    border: 1px solid var(--wecb5-border);
}
.wecb5-faq-item h3 {
    color: var(--wecb5-accent);
    font-size: 1.3rem;
    margin-bottom: 6px;
}
.wecb5-faq-item p {
    color: var(--wecb5-text-dim);
    font-size: 1.2rem;
    line-height: 1.5;
}

/* List styles */
.wecb5-list {
    list-style: none;
    padding: 0;
}
.wecb5-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 6px;
    color: var(--wecb5-text-dim);
    font-size: 1.2rem;
}
.wecb5-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--wecb5-accent);
    font-size: 1rem;
}
