/**
 * 35bet Core Stylesheet
 * All classes use w4089- prefix for namespace isolation
 * Color palette: #1A1A2E | #D2B48C | #C9C9FF | #FA8072 | #E9ECEF | #D2691E
 * Mobile-first design, max-width 430px
 */

/* CSS Variables */
:root {
    --w4089-primary: #D2B48C;
    --w4089-bg: #1A1A2E;
    --w4089-bg-light: #2A2A4A;
    --w4089-text: #E9ECEF;
    --w4089-text-muted: #C9C9FF;
    --w4089-accent: #FA8072;
    --w4089-gold: #D2691E;
    --w4089-card-bg: #222244;
    --w4089-border: #3A3A5A;
    --w4089-white: #FFFFFF;
    --w4089-font-size: 62.5%;
}

/* Base Reset */
html { font-size: var(--w4089-font-size); }
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--w4089-bg);
    color: var(--w4089-text);
    line-height: 1.5rem;
    max-width: 430px;
    margin: 0 auto;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

/* ========== HEADER ========== */
.w4089-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, var(--w4089-bg) 0%, var(--w4089-bg-light) 100%);
    border-bottom: 2px solid var(--w4089-primary);
    max-width: 430px;
    margin: 0 auto;
}
.w4089-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    height: 5.2rem;
}
.w4089-logo-area {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}
.w4089-logo-img {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
}
.w4089-logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--w4089-primary);
    letter-spacing: 0.1rem;
}
.w4089-header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.w4089-btn-register, .w4089-btn-login {
    padding: 0.5rem 1.2rem;
    border: none;
    border-radius: 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 3.2rem;
    min-width: 6rem;
}
.w4089-btn-register {
    background: linear-gradient(135deg, var(--w4089-accent), #FF6B6B);
    color: var(--w4089-white);
}
.w4089-btn-register:hover {
    transform: scale(1.05);
    box-shadow: 0 0.4rem 1.2rem rgba(250, 128, 114, 0.4);
}
.w4089-btn-login {
    background: transparent;
    border: 2px solid var(--w4089-primary);
    color: var(--w4089-primary);
}
.w4089-btn-login:hover {
    background: var(--w4089-primary);
    color: var(--w4089-bg);
}

/* Hamburger */
.w4089-hamburger {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    cursor: pointer;
    padding: 0.6rem;
    background: none;
    border: none;
}
.w4089-hamburger span {
    display: block;
    width: 2rem;
    height: 0.2rem;
    background: var(--w4089-primary);
    transition: all 0.3s ease;
    border-radius: 0.1rem;
}
.w4089-hamburger.w4089-active span:nth-child(1) {
    transform: rotate(45deg) translate(0.4rem, 0.4rem);
}
.w4089-hamburger.w4089-active span:nth-child(2) { opacity: 0; }
.w4089-hamburger.w4089-active span:nth-child(3) {
    transform: rotate(-45deg) translate(0.4rem, -0.4rem);
}

/* Mobile Menu */
.w4089-mobile-menu {
    display: none;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--w4089-bg-light);
    border-top: 1px solid var(--w4089-border);
}
.w4089-mobile-menu a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--w4089-text);
    text-decoration: none;
    font-size: 1.4rem;
    border-bottom: 1px solid var(--w4089-border);
    transition: background 0.2s;
}
.w4089-mobile-menu a:hover {
    background: rgba(210, 180, 140, 0.1);
    color: var(--w4089-primary);
}

/* ========== MAIN CONTENT ========== */
.w4089-main {
    padding-top: 6.5rem;
    min-height: 100vh;
}
@media (max-width: 768px) {
    .w4089-main { padding-bottom: 8rem; }
}

/* ========== CAROUSEL ========== */
.w4089-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0 0 1rem 1rem;
}
.w4089-slide {
    display: none;
    width: 100%;
    cursor: pointer;
}
.w4089-slide img {
    width: 100%;
    height: auto;
    display: block;
}
.w4089-slide:first-child { display: block; }
.w4089-carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
}

/* ========== SECTIONS ========== */
.w4089-section {
    padding: 2rem 0;
}
.w4089-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--w4089-primary);
    margin-bottom: 1.2rem;
    padding-left: 1rem;
    border-left: 4px solid var(--w4089-accent);
}
.w4089-section-subtitle {
    font-size: 1.4rem;
    color: var(--w4089-text-muted);
    margin-bottom: 1rem;
}

/* ========== GAME GRID ========== */
.w4089-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    padding: 0 0.5rem;
}
.w4089-game-item {
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
    text-decoration: none;
    display: block;
}
.w4089-game-item:hover { transform: scale(1.05); }
.w4089-game-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 1rem;
    object-fit: cover;
    border: 2px solid var(--w4089-border);
    transition: border-color 0.3s;
}
.w4089-game-item:hover .w4089-game-img {
    border-color: var(--w4089-primary);
}
.w4089-game-name {
    font-size: 1.1rem;
    color: var(--w4089-text);
    margin-top: 0.4rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========== CATEGORY HEADER ========== */
.w4089-cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0 0.5rem;
}
.w4089-cat-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--w4089-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ========== CONTENT CARDS ========== */
.w4089-card {
    background: var(--w4089-card-bg);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.2rem;
    border: 1px solid var(--w4089-border);
}
.w4089-card-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--w4089-primary);
    margin-bottom: 0.8rem;
}
.w4089-card p {
    font-size: 1.3rem;
    line-height: 1.8rem;
    color: var(--w4089-text);
    margin-bottom: 0.8rem;
}

/* ========== PROMO BUTTON ========== */
.w4089-promo-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--w4089-accent), #FF6B6B);
    color: var(--w4089-white);
    padding: 1rem 2rem;
    border-radius: 2.5rem;
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 4.4rem;
}
.w4089-promo-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0.4rem 1.5rem rgba(250, 128, 114, 0.5);
}
.w4089-promo-btn-outline {
    background: transparent;
    border: 2px solid var(--w4089-primary);
    color: var(--w4089-primary);
}
.w4089-promo-btn-outline:hover {
    background: var(--w4089-primary);
    color: var(--w4089-bg);
}

/* ========== TEXT LINK ========== */
.w4089-text-link {
    color: var(--w4089-accent);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s;
}
.w4089-text-link:hover { color: var(--w4089-primary); }

/* ========== FOOTER ========== */
.w4089-footer {
    background: var(--w4089-bg-light);
    padding: 2rem 1rem;
    border-top: 2px solid var(--w4089-primary);
    margin-top: 2rem;
}
.w4089-footer-brand {
    font-size: 1.3rem;
    color: var(--w4089-text-muted);
    line-height: 1.8rem;
    margin-bottom: 1.5rem;
}
.w4089-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}
.w4089-footer-link {
    background: var(--w4089-card-bg);
    color: var(--w4089-text);
    padding: 0.6rem 1.2rem;
    border-radius: 1.5rem;
    font-size: 1.2rem;
    text-decoration: none;
    border: 1px solid var(--w4089-border);
    transition: all 0.2s;
}
.w4089-footer-link:hover {
    border-color: var(--w4089-primary);
    color: var(--w4089-primary);
}
.w4089-footer-copy {
    font-size: 1.2rem;
    color: var(--w4089-text-muted);
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--w4089-border);
}

/* ========== BOTTOM NAV ========== */
.w4089-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, #2A2A4A, #1A1A2E);
    border-top: 2px solid var(--w4089-primary);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 6rem;
    max-width: 430px;
    margin: 0 auto;
    padding: 0 0.3rem;
}
.w4089-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 6rem;
    min-height: 5.2rem;
    cursor: pointer;
    border: none;
    background: none;
    color: var(--w4089-text-muted);
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
    gap: 0.3rem;
}
.w4089-bottom-nav-item .w4089-nav-icon {
    font-size: 2.2rem;
    transition: all 0.3s ease;
}
.w4089-bottom-nav-item .w4089-nav-label {
    font-size: 1rem;
    white-space: nowrap;
}
.w4089-bottom-nav-item:hover,
.w4089-bottom-nav-item.w4089-active {
    color: var(--w4089-accent);
    transform: scale(1.1);
}
.w4089-bottom-nav-item.w4089-active .w4089-nav-icon {
    color: var(--w4089-accent);
    text-shadow: 0 0 8px rgba(250, 128, 114, 0.6);
}
@media (min-width: 769px) {
    .w4089-bottom-nav { display: none; }
}

/* ========== FAQ / TIPS SECTION ========== */
.w4089-faq-item {
    background: var(--w4089-card-bg);
    border-radius: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid var(--w4089-border);
    overflow: hidden;
}
.w4089-faq-q {
    padding: 1.2rem;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--w4089-primary);
    cursor: pointer;
}
.w4089-faq-a {
    padding: 0 1.2rem 1.2rem;
    font-size: 1.3rem;
    color: var(--w4089-text);
    line-height: 1.8rem;
}

/* ========== WINNER / TESTIMONIAL ========== */
.w4089-winner-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    background: var(--w4089-card-bg);
    border-radius: 0.8rem;
    margin-bottom: 0.8rem;
    border: 1px solid var(--w4089-border);
}
.w4089-winner-avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--w4089-primary);
}
.w4089-winner-info { flex: 1; }
.w4089-winner-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--w4089-primary);
}
.w4089-winner-detail {
    font-size: 1.1rem;
    color: var(--w4089-text-muted);
}
.w4089-winner-amount {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--w4089-accent);
}

/* ========== PAYMENT / APP ========== */
.w4089-payment-row {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
    margin: 1rem 0;
}
.w4089-payment-item {
    background: var(--w4089-card-bg);
    border: 1px solid var(--w4089-border);
    border-radius: 0.8rem;
    padding: 0.8rem 1.2rem;
    font-size: 1.2rem;
    color: var(--w4089-text);
}

/* ========== H TAGS ========== */
.w4089-h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--w4089-primary);
    margin-bottom: 1rem;
    line-height: 2.4rem;
}
.w4089-h2 {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--w4089-primary);
    margin-bottom: 0.8rem;
    line-height: 2rem;
}
.w4089-h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--w4089-text-muted);
    margin-bottom: 0.6rem;
}

/* ========== UTILITY ========== */
.w4089-text-center { text-align: center; }
.w4089-mt-1 { margin-top: 1rem; }
.w4089-mt-2 { margin-top: 2rem; }
.w4089-mb-1 { margin-bottom: 1rem; }
.w4089-mb-2 { margin-bottom: 2rem; }
.w4089-p-1 { padding: 1rem; }
.w4089-hidden { display: none; }

/* ========== DESKTOP NAV ========== */
.w4089-desktop-nav {
    display: none;
}
@media (min-width: 769px) {
    .w4089-desktop-nav {
        display: flex;
        gap: 1.5rem;
        align-items: center;
    }
    .w4089-desktop-nav a {
        color: var(--w4089-text);
        text-decoration: none;
        font-size: 1.4rem;
        transition: color 0.2s;
    }
    .w4089-desktop-nav a:hover {
        color: var(--w4089-primary);
    }
}

/* ========== PARTNER LOGOS ========== */
.w4089-partners {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin: 1.5rem 0;
    opacity: 0.7;
}
.w4089-partner-logo {
    height: 2.5rem;
    filter: grayscale(1);
    transition: filter 0.3s;
}
.w4089-partner-logo:hover { filter: grayscale(0); }

/* ========== RESPONSIVE ADJUSTMENTS ========== */
@media (max-width: 360px) {
    .w4089-game-grid { grid-template-columns: repeat(3, 1fr); }
    .w4089-h1 { font-size: 1.7rem; }
}
@media (min-width: 361px) and (max-width: 430px) {
    .w4089-game-grid { grid-template-columns: repeat(4, 1fr); }
}
