/**
 * 789 Casino - Main Stylesheet
 * Website: 789-casino.click
 * CSS Class Prefix: w6d9d-
 * Color Palette: #A0522D, #FF4500, #FF1493, #2D2D2D, #E5E5E5
 */

/* ========== CSS Variables ========== */
:root {
    --w6d9d-primary: #FF4500;
    --w6d9d-primary-dark: #A0522D;
    --w6d9d-accent: #FF1493;
    --w6d9d-bg: #2D2D2D;
    --w6d9d-bg-light: #3D3D3D;
    --w6d9d-bg-card: #1A1A1A;
    --w6d9d-text: #E5E5E5;
    --w6d9d-text-muted: #A0A0A0;
    --w6d9d-white: #FFFFFF;
    --w6d9d-black: #000000;
    --w6d9d-gradient: linear-gradient(135deg, #FF4500 0%, #FF1493 100%);
    --w6d9d-gradient-dark: linear-gradient(135deg, #A0522D 0%, #8B0000 100%);
    --w6d9d-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --w6d9d-radius: 12px;
    --w6d9d-radius-sm: 8px;
    --w6d9d-transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--w6d9d-bg);
    color: var(--w6d9d-text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--w6d9d-transition);
}

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

ul, ol {
    list-style: none;
}

/* ========== Header ========== */
.w6d9d-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(45, 45, 45, 0.98) 0%, rgba(45, 45, 45, 0.95) 100%);
    backdrop-filter: blur(10px);
    padding: 12px 16px;
    transition: var(--w6d9d-transition);
}

.w6d9d-header.w6d9d-scrolled {
    background: rgba(26, 26, 26, 0.98);
    box-shadow: var(--w6d9d-shadow);
}

.w6d9d-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 430px;
    margin: 0 auto;
}

.w6d9d-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.w6d9d-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.w6d9d-logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--w6d9d-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.w6d9d-header-actions {
    display: flex;
    gap: 10px;
}

.w6d9d-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: var(--w6d9d-radius-sm);
    cursor: pointer;
    transition: var(--w6d9d-transition);
}

.w6d9d-btn-login {
    background: transparent;
    color: var(--w6d9d-text);
    border: 2px solid var(--w6d9d-primary);
}

.w6d9d-btn-login:hover {
    background: var(--w6d9d-primary);
    color: var(--w6d9d-white);
}

.w6d9d-btn-register {
    background: var(--w6d9d-gradient);
    color: var(--w6d9d-white);
}

.w6d9d-btn-register:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(255, 69, 0, 0.4);
}

/* ========== Mobile Menu ========== */
.w6d9d-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 24px;
    cursor: pointer;
    z-index: 10001;
}

.w6d9d-hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--w6d9d-text);
    border-radius: 2px;
    transition: var(--w6d9d-transition);
}

.w6d9d-hamburger.w6d9d-active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.w6d9d-hamburger.w6d9d-active span:nth-child(2) {
    opacity: 0;
}

.w6d9d-hamburger.w6d9d-active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

#game6d36MobileMenu {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: var(--w6d9d-bg-card);
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    padding: 80px 20px 20px;
    overflow-y: auto;
}

#game6d36MobileMenu.w6d9d-active {
    transform: translateX(0);
}

#game6d36MenuOverlay {
    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: var(--w6d9d-transition);
}

#game6d36MenuOverlay.w6d9d-active {
    opacity: 1;
    visibility: visible;
}

.w6d9d-mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.w6d9d-mobile-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: var(--w6d9d-text);
    border-radius: var(--w6d9d-radius-sm);
    font-size: 1rem;
    transition: var(--w6d9d-transition);
}

.w6d9d-mobile-nav a:hover {
    background: var(--w6d9d-bg-light);
    color: var(--w6d9d-primary);
}

.w6d9d-mobile-nav a i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

/* ========== Main Content ========== */
.w6d9d-main {
    padding-top: 70px;
    padding-bottom: 80px;
}

/* ========== Carousel/Slider ========== */
.w6d9d-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 0 0 20px 20px;
}

.w6d9d-slides {
    display: flex;
    transition: transform 0.5s ease;
}

.w6d9d-slide {
    min-width: 100%;
    position: relative;
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

.w6d9d-slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.w6d9d-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.w6d9d-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--w6d9d-transition);
}

.w6d9d-dot.w6d9d-active {
    background: var(--w6d9d-primary);
    transform: scale(1.2);
}

/* ========== Hero Section ========== */
.w6d9d-hero {
    padding: 30px 16px;
    text-align: center;
    background: linear-gradient(180deg, var(--w6d9d-bg-card) 0%, var(--w6d9d-bg) 100%);
}

.w6d9d-hero h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    background: var(--w6d9d-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.w6d9d-hero p {
    font-size: 1rem;
    color: var(--w6d9d-text-muted);
    margin-bottom: 24px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.w6d9d-hero-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 280px;
    margin: 0 auto;
}

.w6d9d-hero-cta .w6d9d-btn {
    padding: 14px 24px;
    font-size: 1rem;
}

/* ========== Game Categories Tabs ========== */
.w6d9d-tabs {
    padding: 20px 16px;
}

.w6d9d-tabs-header {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.w6d9d-tabs-header::-webkit-scrollbar {
    display: none;
}

.w6d9d-tab-btn {
    flex-shrink: 0;
    padding: 10px 20px;
    background: var(--w6d9d-bg-light);
    color: var(--w6d9d-text-muted);
    border: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--w6d9d-transition);
    white-space: nowrap;
}

.w6d9d-tab-btn.w6d9d-active {
    background: var(--w6d9d-gradient);
    color: var(--w6d9d-white);
}

.w6d9d-tab-btn:hover:not(.w6d9d-active) {
    background: var(--w6d9d-primary-dark);
    color: var(--w6d9d-text);
}

/* ========== Game Grid ========== */
.w6d9d-tab-content {
    display: none;
}

.w6d9d-tab-content.w6d9d-active {
    display: block;
}

.w6d9d-game-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 16px 0;
}

.w6d9d-game-card {
    background: var(--w6d9d-bg-card);
    border-radius: var(--w6d9d-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--w6d9d-transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.w6d9d-game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(255, 69, 0, 0.2);
    border-color: var(--w6d9d-primary);
}

.w6d9d-game-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.w6d9d-game-card-title {
    padding: 10px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    color: var(--w6d9d-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========== Features Section ========== */
.w6d9d-features {
    padding: 30px 16px;
    background: var(--w6d9d-bg-card);
}

.w6d9d-section-title {
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
    color: var(--w6d9d-text);
}

.w6d9d-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.w6d9d-feature-card {
    background: var(--w6d9d-bg-light);
    padding: 20px;
    border-radius: var(--w6d9d-radius);
    text-align: center;
    transition: var(--w6d9d-transition);
}

.w6d9d-feature-card:hover {
    transform: scale(1.02);
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.1) 0%, rgba(255, 20, 147, 0.1) 100%);
}

.w6d9d-feature-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: var(--w6d9d-primary);
}

.w6d9d-feature-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--w6d9d-text);
}

.w6d9d-feature-desc {
    font-size: 0.85rem;
    color: var(--w6d9d-text-muted);
}

/* ========== Footer ========== */
.w6d9d-footer {
    background: var(--w6d9d-bg-card);
    padding: 30px 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.w6d9d-footer-partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.w6d9d-footer-partners img {
    height: 28px;
    opacity: 0.7;
    transition: var(--w6d9d-transition);
}

.w6d9d-footer-partners img:hover {
    opacity: 1;
}

.w6d9d-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.w6d9d-footer-links a {
    font-size: 0.85rem;
    color: var(--w6d9d-text-muted);
}

.w6d9d-footer-links a:hover {
    color: var(--w6d9d-primary);
}

.w6d9d-footer-copyright {
    text-align: center;
    font-size: 0.8rem;
    color: var(--w6d9d-text-muted);
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ========== Mobile Bottom Navigation ========== */
.w6d9d-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: linear-gradient(180deg, rgba(26, 26, 26, 0.98) 0%, rgba(10, 10, 10, 0.99) 100%);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    border-top: 1px solid rgba(255, 69, 0, 0.3);
    padding: 0 4px;
}

.w6d9d-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    min-height: 60px;
    padding: 8px 4px;
    color: var(--w6d9d-text-muted);
    transition: var(--w6d9d-transition);
    cursor: pointer;
    border-radius: 12px;
}

.w6d9d-bottom-nav-item:hover,
.w6d9d-bottom-nav-item.w6d9d-active {
    color: var(--w6d9d-primary);
    background: rgba(255, 69, 0, 0.1);
}

.w6d9d-bottom-nav-item i {
    font-size: 24px;
    margin-bottom: 4px;
}

.w6d9d-bottom-nav-item span {
    font-size: 10px;
    font-weight: 500;
}

/* Promotional CTA button in bottom nav */
.w6d9d-bottom-nav-item.w6d9d-promo {
    background: var(--w6d9d-gradient);
    color: var(--w6d9d-white);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    margin-top: -20px;
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.4);
}

.w6d9d-bottom-nav-item.w6d9d-promo:hover {
    transform: scale(1.1);
    background: var(--w6d9d-gradient);
}

.w6d9d-bottom-nav-item.w6d9d-promo i {
    font-size: 26px;
    margin-bottom: 0;
}

.w6d9d-bottom-nav-item.w6d9d-promo span {
    display: none;
}

/* ========== Help Page Styles ========== */
.w6d9d-help-content {
    padding: 20px 16px;
    max-width: 430px;
    margin: 0 auto;
}

.w6d9d-help-content h1 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--w6d9d-text);
}

.w6d9d-help-content h2 {
    font-size: 1.2rem;
    margin: 24px 0 12px;
    color: var(--w6d9d-primary);
}

.w6d9d-help-content p {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 16px;
    color: var(--w6d9d-text-muted);
}

.w6d9d-help-content ul {
    margin: 16px 0;
    padding-left: 20px;
}

.w6d9d-help-content li {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 8px;
    color: var(--w6d9d-text-muted);
    position: relative;
    padding-left: 16px;
}

.w6d9d-help-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--w6d9d-primary);
    border-radius: 50%;
}

.w6d9d-cta-box {
    background: var(--w6d9d-gradient);
    border-radius: var(--w6d9d-radius);
    padding: 20px;
    text-align: center;
    margin: 24px 0;
}

.w6d9d-cta-box h3 {
    color: var(--w6d9d-white);
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.w6d9d-cta-box .w6d9d-btn {
    background: var(--w6d9d-white);
    color: var(--w6d9d-primary);
}

.w6d9d-cta-box .w6d9d-btn:hover {
    transform: scale(1.05);
}

/* ========== Responsive Design ========== */
@media (max-width: 430px) {
    html {
        font-size: 15px;
    }

    .w6d9d-main {
        padding-bottom: 80px;
    }
}

@media (min-width: 431px) and (max-width: 768px) {
    .w6d9d-header-inner,
    .w6d9d-hero,
    .w6d9d-tabs,
    .w6d9d-features,
    .w6d9d-footer,
    .w6d9d-help-content {
        max-width: 430px;
        margin-left: auto;
        margin-right: auto;
    }
}

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

    .w6d9d-main {
        padding-bottom: 20px;
    }

    .w6d9d-header-inner {
        max-width: 1200px;
    }

    .w6d9d-game-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .w6d9d-features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ========== Utility Classes ========== */
.w6d9d-text-center {
    text-align: center;
}

.w6d9d-mt-20 {
    margin-top: 20px;
}

.w6d9d-mb-20 {
    margin-bottom: 20px;
}

.w6d9d-hidden {
    display: none !important;
}
