/**
 * Takabet APK - Common CSS Styles
 * All classes prefixed with vd19- for namespace isolation
 * Color palette: #2C2C2C (dark bg) | #E0F2F1 (light text)
 * Mobile-first responsive design, max-width: 430px
 */

/* === CSS Variables === */
:root {
    --vd19-primary: #E0F2F1;
    --vd19-bg: #2C2C2C;
    --vd19-bg-dark: #1A1A1A;
    --vd19-bg-card: #333333;
    --vd19-bg-card-hover: #3D3D3D;
    --vd19-text: #E0F2F1;
    --vd19-text-muted: #A0B8B5;
    --vd19-accent: #00BFA5;
    --vd19-accent-dark: #00897B;
    --vd19-accent-light: #4DB6AC;
    --vd19-gold: #FFD54F;
    --vd19-gold-dark: #FFC107;
    --vd19-danger: #EF5350;
    --vd19-success: #66BB6A;
    --vd19-border: #444444;
    --vd19-shadow: rgba(0,0,0,0.3);
    --vd19-radius: 0.8rem;
    --vd19-radius-sm: 0.5rem;
    --vd19-radius-lg: 1.2rem;
    --vd19-font: 'Segoe UI', 'Noto Sans Bengali', sans-serif;
    --vd19-transition: all 0.3s ease;
}

/* === Reset & Base === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--vd19-font);
    background-color: var(--vd19-bg);
    color: var(--vd19-text);
    line-height: 1.5rem;
    font-size: 1.4rem;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    max-width: 430px;
    margin: 0 auto;
}

a {
    color: var(--vd19-accent);
    text-decoration: none;
    transition: var(--vd19-transition);
}

a:hover {
    color: var(--vd19-accent-light);
}

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

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

.vd19-wrapper {
    padding: 1rem 0;
}

/* === Header === */
.vd19-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    z-index: 1000;
    background: linear-gradient(135deg, var(--vd19-bg-dark) 0%, #252525 100%);
    border-bottom: 1px solid var(--vd19-border);
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vd19-header-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.vd19-logo {
    width: 28px;
    height: 28px;
    border-radius: 0.4rem;
}

.vd19-site-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--vd19-accent);
    white-space: nowrap;
}

.vd19-header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vd19-btn-register, .vd19-btn-login {
    padding: 0.4rem 1rem;
    border-radius: var(--vd19-radius-sm);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--vd19-transition);
    min-height: 32px;
}

.vd19-btn-register {
    background: linear-gradient(135deg, var(--vd19-accent) 0%, var(--vd19-accent-dark) 100%);
    color: var(--vd19-bg-dark);
}

.vd19-btn-register:hover {
    background: linear-gradient(135deg, var(--vd19-accent-light) 0%, var(--vd19-accent) 100%);
    transform: scale(1.05);
}

.vd19-btn-login {
    background: transparent;
    color: var(--vd19-accent);
    border: 1px solid var(--vd19-accent);
}

.vd19-btn-login:hover {
    background: rgba(0, 191, 165, 0.1);
}

.vd19-menu-toggle {
    background: none;
    border: none;
    color: var(--vd19-text);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.3rem;
    display: flex;
    align-items: center;
}

/* === Mobile Menu === */
.vd19-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: var(--vd19-transition);
}

.vd19-overlay-active {
    opacity: 1;
    visibility: visible;
}

.vd19-mobile-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 260px;
    height: 100%;
    background: var(--vd19-bg-dark);
    z-index: 9999;
    transition: right 0.3s ease;
    padding: 6rem 1.5rem 2rem;
    overflow-y: auto;
}

.vd19-menu-active {
    right: 0;
}

.vd19-menu-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--vd19-text);
    font-size: 2.2rem;
    cursor: pointer;
}

.vd19-mobile-menu a {
    display: block;
    padding: 1rem 0;
    color: var(--vd19-text);
    font-size: 1.4rem;
    border-bottom: 1px solid var(--vd19-border);
    transition: var(--vd19-transition);
}

.vd19-mobile-menu a:hover {
    color: var(--vd19-accent);
    padding-left: 0.5rem;
}

/* === Main Content === */
.vd19-main {
    padding-top: 5rem;
    min-height: 100vh;
}

@media (max-width: 768px) {
    .vd19-main {
        padding-bottom: 7rem;
    }
}

/* === Carousel === */
.vd19-carousel {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 0;
    margin-top: 0.5rem;
}

.vd19-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    cursor: pointer;
}

.vd19-slide-active {
    opacity: 1;
}

.vd19-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vd19-carousel-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}

.vd19-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    border: none;
    transition: var(--vd19-transition);
}

.vd19-dot-active {
    background: var(--vd19-accent);
    transform: scale(1.3);
}

/* === Section Titles === */
.vd19-section-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--vd19-primary);
    padding: 1.2rem 0 0.8rem;
    border-left: 3px solid var(--vd19-accent);
    padding-left: 0.8rem;
    margin-bottom: 0.8rem;
}

.vd19-section-title i {
    margin-right: 0.5rem;
    color: var(--vd19-accent);
}

/* === Game Grid === */
.vd19-game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    padding: 0.5rem 0;
}

.vd19-game-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: var(--vd19-transition);
    text-align: center;
}

.vd19-game-item:hover {
    transform: translateY(-2px);
}

.vd19-game-item:hover .vd19-game-name {
    color: var(--vd19-accent);
}

.vd19-game-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--vd19-radius-sm);
    overflow: hidden;
    margin-bottom: 0.3rem;
    border: 1px solid var(--vd19-border);
    background: var(--vd19-bg-card);
}

.vd19-game-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vd19-game-name {
    font-size: 1.05rem;
    color: var(--vd19-text-muted);
    line-height: 1.3rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: var(--vd19-transition);
}

/* === Category Tabs === */
.vd19-category-label {
    display: inline-block;
    background: linear-gradient(135deg, var(--vd19-accent-dark) 0%, var(--vd19-accent) 100%);
    color: var(--vd19-bg-dark);
    padding: 0.4rem 1.2rem;
    border-radius: var(--vd19-radius);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem;
}

/* === Promo CTA === */
.vd19-promo-box {
    background: linear-gradient(135deg, var(--vd19-accent-dark) 0%, var(--vd19-accent) 100%);
    border-radius: var(--vd19-radius);
    padding: 1.2rem;
    text-align: center;
    margin: 1rem 0;
    cursor: pointer;
    transition: var(--vd19-transition);
}

.vd19-promo-box:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 191, 165, 0.3);
}

.vd19-promo-box h3 {
    color: var(--vd19-bg-dark);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.vd19-promo-box p {
    color: var(--vd19-bg-dark);
    font-size: 1.2rem;
    opacity: 0.9;
}

/* === Cards === */
.vd19-card {
    background: var(--vd19-bg-card);
    border-radius: var(--vd19-radius);
    padding: 1.2rem;
    margin: 0.8rem 0;
    border: 1px solid var(--vd19-border);
}

.vd19-card h3 {
    color: var(--vd19-accent);
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
}

.vd19-card p {
    color: var(--vd19-text-muted);
    font-size: 1.2rem;
    line-height: 1.6rem;
}

/* === Buttons === */
.vd19-btn-promo {
    display: inline-block;
    background: linear-gradient(135deg, var(--vd19-accent) 0%, var(--vd19-accent-dark) 100%);
    color: var(--vd19-bg-dark);
    padding: 0.8rem 2rem;
    border-radius: var(--vd19-radius);
    font-weight: 700;
    font-size: 1.3rem;
    cursor: pointer;
    border: none;
    transition: var(--vd19-transition);
    text-align: center;
}

.vd19-btn-promo:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 191, 165, 0.4);
}

.vd19-btn-gold {
    background: linear-gradient(135deg, var(--vd19-gold) 0%, var(--vd19-gold-dark) 100%);
    color: var(--vd19-bg-dark);
}

/* === Footer === */
.vd19-footer {
    background: var(--vd19-bg-dark);
    padding: 2rem 1.2rem 1.5rem;
    border-top: 1px solid var(--vd19-border);
    margin-top: 2rem;
}

.vd19-footer-brand {
    font-size: 1.2rem;
    color: var(--vd19-text-muted);
    line-height: 1.7rem;
    margin-bottom: 1rem;
}

.vd19-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.vd19-footer-links a {
    color: var(--vd19-text-muted);
    font-size: 1.1rem;
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--vd19-border);
    border-radius: var(--vd19-radius-sm);
    transition: var(--vd19-transition);
}

.vd19-footer-links a:hover {
    color: var(--vd19-accent);
    border-color: var(--vd19-accent);
}

.vd19-footer-promo {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.vd19-footer-promo button {
    flex: 1;
    min-width: 120px;
}

.vd19-footer-copyright {
    text-align: center;
    color: var(--vd19-text-muted);
    font-size: 1.1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--vd19-border);
}

/* === Bottom Fixed Nav === */
.vd19-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    height: 60px;
    background: linear-gradient(180deg, #1E1E1E 0%, var(--vd19-bg-dark) 100%);
    border-top: 1px solid var(--vd19-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding: 0 0.3rem;
}

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

.vd19-bottom-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--vd19-text-muted);
    cursor: pointer;
    min-width: 60px;
    min-height: 52px;
    transition: var(--vd19-transition);
    padding: 0.3rem;
    border-radius: var(--vd19-radius-sm);
}

.vd19-bottom-nav-btn:hover,
.vd19-nav-active {
    color: var(--vd19-accent);
    transform: scale(1.08);
}

.vd19-bottom-nav-btn .vd19-nav-icon {
    font-size: 2.2rem;
    margin-bottom: 0.1rem;
}

.vd19-bottom-nav-btn .vd19-nav-label {
    font-size: 0.95rem;
    line-height: 1.2rem;
}

/* === Help Page Content === */
.vd19-help-content {
    padding: 0.5rem 0;
}

.vd19-help-content h2 {
    color: var(--vd19-accent);
    font-size: 1.6rem;
    margin: 1.2rem 0 0.6rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid var(--vd19-border);
}

.vd19-help-content h3 {
    color: var(--vd19-primary);
    font-size: 1.4rem;
    margin: 1rem 0 0.4rem;
}

.vd19-help-content p {
    color: var(--vd19-text-muted);
    font-size: 1.25rem;
    line-height: 1.7rem;
    margin-bottom: 0.6rem;
}

.vd19-help-content ul, .vd19-help-content ol {
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
}

.vd19-help-content li {
    color: var(--vd19-text-muted);
    font-size: 1.25rem;
    line-height: 1.7rem;
    margin-bottom: 0.3rem;
}

/* === Feature List === */
.vd19-feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin: 0.8rem 0;
}

.vd19-feature-item {
    background: var(--vd19-bg-card);
    border-radius: var(--vd19-radius-sm);
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--vd19-border);
    transition: var(--vd19-transition);
}

.vd19-feature-item:hover {
    border-color: var(--vd19-accent);
    transform: translateY(-2px);
}

.vd19-feature-item i {
    font-size: 2.4rem;
    color: var(--vd19-accent);
    margin-bottom: 0.4rem;
}

.vd19-feature-item h4 {
    color: var(--vd19-primary);
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.vd19-feature-item p {
    color: var(--vd19-text-muted);
    font-size: 1.05rem;
}

/* === Winner List === */
.vd19-winner-list {
    background: var(--vd19-bg-card);
    border-radius: var(--vd19-radius);
    padding: 0.8rem;
    margin: 0.5rem 0;
}

.vd19-winner-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--vd19-border);
    font-size: 1.15rem;
}

.vd19-winner-item:last-child {
    border-bottom: none;
}

.vd19-winner-name {
    color: var(--vd19-primary);
    font-weight: 600;
}

.vd19-winner-game {
    color: var(--vd19-text-muted);
}

.vd19-winner-amount {
    color: var(--vd19-gold);
    font-weight: 700;
}

/* === Text Promo Links === */
.vd19-text-link {
    color: var(--vd19-accent);
    font-weight: 600;
    cursor: pointer;
    border-bottom: 1px dashed var(--vd19-accent);
    transition: var(--vd19-transition);
}

.vd19-text-link:hover {
    color: var(--vd19-accent-light);
}

/* === Internal Links === */
.vd19-internal-link {
    color: var(--vd19-accent-light);
    text-decoration: underline;
    font-weight: 500;
}

/* === Utility === */
.vd19-text-center { text-align: center; }
.vd19-mt-1 { margin-top: 0.5rem; }
.vd19-mt-2 { margin-top: 1rem; }
.vd19-mb-1 { margin-bottom: 0.5rem; }
.vd19-mb-2 { margin-bottom: 1rem; }
.vd19-fw-bold { font-weight: 700; }

/* === Desktop adjustments === */
@media (min-width: 769px) {
    body {
        max-width: 430px;
    }
    .vd19-main {
        padding-bottom: 2rem;
    }
}
