/*
Theme Name: CV666 Affiliate Casino Bengali Theme
Theme URI: https://www.wwwcv666.com/
Author: Antigravity AI
Author URI: https://www.wwwcv666.com/
Description: Tema WordPress de alta conversão para afiliados iGaming, clone idêntico do site CV666 (সিভি৬৬৬) em Bengali para o mercado de Bangladesh.
Version: 1.0.5
License: Proprietary
License URI: https://www.wwwcv666.com/
Text Domain: cv666-affiliate
*/

:root {
    --bg-dark: #00332e;
    --bg-sidebar: #002723;
    --bg-card: #004740;
    --bg-card-hover: #005950;
    --bg-header: #002b27;
    --accent-green: #00e676;
    --accent-green-bright: #00ff75;
    --accent-teal: #00b395;
    --accent-gold: #ffb800;
    --accent-gold-glow: rgba(255, 184, 0, 0.5);
    --accent-red: #ff2a5f;
    --text-main: #ffffff;
    --text-muted: #72bcae;
    --text-gold: #ffd700;
    --border-color: rgba(0, 230, 118, 0.18);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --font-bengali: 'Noto Sans Bengali', 'SolaimanLipi', sans-serif;
    --shadow-gold: 0 4px 20px rgba(255, 184, 0, 0.35);
    --shadow-green: 0 4px 25px rgba(0, 230, 118, 0.4);
    --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-bengali);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.5;
    background-image: radial-gradient(circle at 50% 20%, #004d45 0%, #002723 100%);
    background-attachment: fixed;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* App Main Grid Layout with Left Sidebar */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* Custom Scrollbar Removal (Keep Scrolling Smooth without Visual Scrollbars) */
::-webkit-scrollbar {
    display: none;
    width: 0px;
    height: 0px;
}
* {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Header Hamburger Toggle Button — always visible on desktop & mobile */
.sidebar-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(0, 230, 118, 0.3);
    color: #fff;
    font-size: 20px;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    z-index: 10001;
    position: relative;
}
.sidebar-toggle-btn:hover {
    background: rgba(0, 230, 118, 0.15);
    color: #00e676;
    border-color: #00e676;
}

/* Collapsible Left Navigation Sidebar — Starts BELOW Fixed Header */
.left-navigation {
    width: 250px;
    background: #00221e;
    padding: 16px 12px;
    position: fixed;
    top: 65px;
    left: 0;
    height: calc(100vh - 65px);
    overflow-y: auto;
    border-right: 1px solid rgba(0, 230, 118, 0.18);
    z-index: 9000;
    flex-shrink: 0;
    transition: transform 0.3s ease, width 0.3s ease;
    transform: translateX(0);
}

/* Collapsed State on Desktop — slide out to the left */
.left-navigation.collapsed {
    transform: translateX(-260px);
}

.left-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.left-nav-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 92px;
    background: #003630;
    border: 1px solid rgba(0, 230, 118, 0.2);
    border-radius: 12px;
    color: #b0d4cf;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    padding: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.left-nav-card.active, .left-nav-card:hover {
    background: linear-gradient(180deg, #005c52 0%, #003a34 100%);
    border-color: #00e676;
    color: #fff;
    box-shadow: 0 6px 16px rgba(0, 230, 118, 0.35);
    transform: translateY(-3px);
}

.left-nav-card .icon {
    font-size: 28px;
    margin-bottom: 6px;
    color: #00e676;
    text-shadow: 0 0 10px rgba(0, 230, 118, 0.5);
}

.left-nav-card.has-qr-popover {
    position: relative;
}

/* App Download QR Code Hover Popover Box (Always on Top of Games Grid) */
.app-qr-popover {
    position: fixed;
    left: 260px;
    bottom: 40px;
    background: #002b26;
    border: 2px solid #00e676;
    border-radius: 14px;
    padding: 14px 18px;
    display: none;
    gap: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.95);
    z-index: 9999999;
    animation: popoverFade 0.25s ease-in-out;
}

.left-nav-card.has-qr-popover:hover .app-qr-popover {
    display: flex;
}

@keyframes popoverFade {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.app-qr-popover .qr-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.app-qr-popover img {
    width: 100px;
    height: 100px;
    background: #fff;
    padding: 4px;
    border-radius: 8px;
}

.app-qr-popover .qr-label {
    font-size: 11px;
    font-weight: 800;
    color: #ffb800;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Main Content Wrapper — offset for fixed sidebar + fixed header */
.main-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    margin-left: 250px;
    padding-top: 65px;
    transition: margin-left 0.3s ease;
}

/* When sidebar is collapsed, main-wrapper expands */
.app-layout.sidebar-collapsed .main-wrapper {
    margin-left: 0;
}

/* Header Navbar */
.site-header {
    background: var(--bg-header);
    border-bottom: 1px solid rgba(0, 230, 118, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 24px;
}
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 28px;
    font-weight: 900;
    color: var(--accent-gold);
}
.brand-logo .wintk {
    background: #00e676;
    color: #002723;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.btn-login {
    background: #00665a;
    border: 1px solid var(--accent-green);
    color: #fff;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
}
.btn-register {
    background: linear-gradient(135deg, #ffb800 0%, #ff9900 100%);
    color: #000;
    padding: 10px 28px;
    border-radius: var(--radius-sm);
    font-weight: 900;
    font-size: 15px;
    box-shadow: var(--shadow-gold);
    cursor: pointer;
}

/* Horizontal Tabs (Like Screenshot) */
.category-tabs-bar {
    display: flex;
    gap: 10px;
    padding: 15px 24px;
    background: rgba(0, 39, 35, 0.8);
    overflow-x: auto;
    border-bottom: 1px solid rgba(0, 230, 118, 0.1);
}

.cat-tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 20px;
    min-width: 90px;
    background: #004d45;
    border: 1px solid rgba(0, 230, 118, 0.15);
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cat-tab-btn.active, .cat-tab-btn:hover {
    background: linear-gradient(135deg, #008c7e 0%, #004d45 100%);
    border-color: var(--accent-green);
    box-shadow: 0 4px 15px rgba(0, 230, 118, 0.3);
}

.cat-tab-btn .icon {
    font-size: 22px;
}

/* Banner Carousel (Matches Screenshot Exactly) */
.hero-slider {
    max-width: 1000px;
    margin: 20px auto;
    padding: 0 15px;
    position: relative;
}
.slider-container {
    width: 100%;
    height: 310px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0, 230, 118, 0.25);
    position: relative;
    background: #00221e;
}
.slide-item {
    display: none;
    width: 100%;
    height: 100%;
}
.slide-item.active {
    display: block;
}
.slide-item img {
    width: 100%;
    height: 310px;
    object-fit: fill;
    display: block;
    cursor: pointer;
}

/* Dots Indicator (Matches Screenshot Dots Bar) */
.slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.dot {
    width: 24px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}
.dot.active, .dot:hover {
    background: var(--accent-green-bright);
    width: 32px;
    box-shadow: 0 0 10px var(--accent-green);
}

/* Marquee Notice */
.notice-bar {
    max-width: 1360px;
    margin: 0 auto 20px auto;
    padding: 0 20px;
}
.notice-inner {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-gold);
}
.notice-marquee {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}
.notice-marquee p {
    display: inline-block;
    animation: marquee 25s linear infinite;
}
@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* 4D Game Filter Engine (Single Horizontal Line Layout) */
.filter-engine {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}
.filter-box {
    background: #00221e;
    border: 1px solid rgba(0, 230, 118, 0.2);
    border-radius: var(--radius-md);
    padding: 16px 20px;
}
.filter-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
.filter-grid {
    display: flex;
    gap: 15px;
    align-items: center;
}
.filter-select {
    flex: 1;
    padding: 10px 14px;
    background: #001715;
    border: 1px solid rgba(0, 230, 118, 0.25);
    color: #fff;
    border-radius: var(--radius-sm);
    outline: none;
    font-size: 13px;
}

/* Game Grid Section */
.game-section {
    width: 100%;
    max-width: 1200px;
    margin: 25px auto;
    padding: 0 20px;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.section-title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    border-left: 4px solid var(--accent-green);
    padding-left: 12px;
}
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    width: 100%;
}
.game-card {
    background: #002c27;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(0, 230, 118, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    cursor: pointer;
}
.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 230, 118, 0.3);
    border-color: var(--accent-green);
}
.game-card img {
    width: 100%;
    aspect-ratio: 400/540;
    min-height: 180px;
    object-fit: cover;
    display: block;
    background: #001f1c;
}
.game-info {
    padding: 10px;
    text-align: center;
    background: #00221e;
}
.game-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.game-provider {
    font-size: 11px;
    color: var(--text-muted);
}
.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 39, 35, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.game-card:hover .play-overlay {
    opacity: 1;
}
.btn-play-now {
    background: linear-gradient(135deg, #00e676 0%, #00a859 100%);
    color: #000;
    font-weight: bold;
    padding: 10px 22px;
    border-radius: 20px;
    font-size: 14px;
    box-shadow: var(--shadow-green);
}

/* VIP Table Section */
.vip-section {
    max-width: 1360px;
    margin: 40px auto;
    padding: 0 20px;
}
.vip-card {
    background: linear-gradient(135deg, #1b1338 0%, #100b24 100%);
    border: 1px solid var(--accent-gold);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-card);
}
.vip-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 14px;
}
.vip-table th, .vip-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
.vip-table th {
    color: var(--accent-gold);
}

/* Footer Section */
.site-footer {
    background: #090513;
    border-top: 1px solid var(--border-color);
    padding: 40px 20px 20px 20px;
    margin-top: 60px;
}
.footer-container {
    max-width: 1360px;
    margin: 0 auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}
.footer-col h4 {
    color: var(--accent-gold);
    margin-bottom: 15px;
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 8px;
}
.footer-col ul li a {
    color: var(--text-muted);
    transition: color 0.2s ease;
}
.footer-col ul li a:hover {
    color: #fff;
}
.payments-logos, .providers-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}
.payments-logos img, .providers-logos img {
    height: 35px;
    border-radius: 4px;
    background: rgba(255,255,255,0.05);
    padding: 4px;
}
.copyright {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

/* Floating Social Buttons (Fixed Right Edge - Matches Reference Screenshot) */
.floating-sidebar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-float-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-float-btn:hover {
    transform: scale(1.18);
    box-shadow: 0 8px 25px rgba(0, 230, 118, 0.5);
}

.social-float-btn.whatsapp { background: #25d366; }
.social-float-btn.facebook { background: #1877f2; }
.social-float-btn.telegram { background: #0088cc; }
.social-float-btn.support  { background: #00bcd4; }

/* Floating Modal Backdrop Overlay (Full-screen fixed overlay) */
.cv-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(6px) !important;
    z-index: 99999999 !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Rich Announcement Multi-Tab Modal (Matches Screenshots 2, 3, 4 Exactly) */
.announcement-modal-box {
    width: 95%;
    max-width: 900px;
    background: #002e29;
    border: 2px solid rgba(0, 230, 118, 0.3);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.9);
    display: flex;
    flex-direction: column;
    max-height: 85vh;
}

.announcement-header {
    background: #00221e;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(0, 230, 118, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.announcement-header h2 {
    color: #ffb800;
    font-size: 20px;
    font-weight: 800;
    margin: 0;
}

.announcement-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.announcement-tabs-nav {
    width: 260px;
    background: #002420;
    border-right: 1px solid rgba(0, 230, 118, 0.15);
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
}

.announcement-tab-item {
    padding: 12px 14px;
    background: #003630;
    border: 1px solid rgba(0, 230, 118, 0.12);
    border-radius: 8px;
    color: #a3c7c2;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.announcement-tab-item.active, .announcement-tab-item:hover {
    background: #ffb800;
    color: #000;
    border-color: #ffb800;
    font-weight: 800;
}

.announcement-content-pane {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    background: #002b26;
    color: #fff;
}

.announcement-pane {
    display: none;
}

.announcement-pane.active {
    display: block;
}

/* Header Navbar (Fixed Position — Top Priority Layer) */
.site-header {
    background: var(--bg-header);
    border-bottom: 1px solid rgba(0, 230, 118, 0.15);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10000;
    padding: 12px 24px;
}

/* Horizontal Category Tabs Bar (Centered & Uniform Button Widths) */
/* margin-top removed — main-wrapper already has padding-top: 65px */
.category-tabs-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 15px 24px;
    background: rgba(0, 39, 35, 0.95);
    overflow-x: auto;
    border-bottom: 1px solid rgba(0, 230, 118, 0.1);
    margin-top: 0;
}

.cat-tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 16px;
    flex: 0 0 110px; /* Uniform Fixed Width */
    width: 110px;
    height: 75px;
    background: #004d45;
    border: 1px solid rgba(0, 230, 118, 0.15);
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Blog Posts Grid System (4 Columns Desktop / 2 Columns Mobile) */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

@media (max-width: 1024px) {
    .blog-posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile Responsive Rules */
@media (max-width: 840px) {
    .blog-posts-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .site-header {
        padding: 8px 12px;
    }
    .header-container {
        gap: 8px;
    }
    .brand-logo {
        font-size: 20px;
    }
    .brand-logo .wintk {
        font-size: 12px;
        padding: 1px 4px;
    }
    .game-search-box {
        max-width: 130px !important;
        margin: 0 4px !important;
    }
    .game-search-box input {
        padding: 6px 10px 6px 30px !important;
        font-size: 11px !important;
    }
    .btn-login {
        padding: 6px 12px !important;
        font-size: 12px !important;
    }
    .btn-register {
        padding: 6px 14px !important;
        font-size: 12px !important;
        white-space: nowrap;
    }

    /* 4D Search Filter Engine Dropdowns Mobile Fix */
    .filter-grid {
        flex-direction: column !important;
        gap: 8px !important;
    }
    .filter-select {
        width: 100% !important;
        font-size: 12px !important;
    }
    
    /* Category Bar Mobile Spacing */
    .category-tabs-bar {
        justify-content: flex-start !important;
        padding: 10px 12px !important;
    }
    .cat-tab-btn {
        flex: 0 0 95px !important;
        width: 95px !important;
        height: 65px !important;
        font-size: 11px !important;
    }
    .cat-tab-btn .icon {
        font-size: 18px !important;
    }
    
    /* Hero Banner Slider Mobile Fix */
    .hero-slider {
        margin: 10px auto;
        padding: 0 10px;
    }
    .slider-container {
        height: auto !important;
        aspect-ratio: 1000 / 310;
    }
    .slide-item img {
        height: auto !important;
        aspect-ratio: 1000 / 310;
        object-fit: cover !important;
    }
    
    /* Mobile: sidebar hidden by default, slides in when toggled */
    .left-navigation {
        transform: translateX(-260px) !important;
        width: 260px !important;
    }
    .left-navigation.mobile-open {
        transform: translateX(0) !important;
        z-index: 999999;
        background: #00221e;
        box-shadow: 10px 0 30px rgba(0,0,0,0.9);
    }
    /* Mobile: main-wrapper takes full width */
    .main-wrapper {
        margin-left: 0 !important;
    }
    .games-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .floating-sidebar {
        right: 8px;
    }
    .social-float-btn {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    .announcement-body {
        flex-direction: column;
    }
    .announcement-tabs-nav {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
    }
}

/* Enforce footer brand logo layout styling independently of inline style attributes */
.footer-brand-logo,
.footer-brand-logo img,
picture.footer-brand-logo img {
    width: 55px !important;
    height: 55px !important;
    min-width: 55px !important;
    min-height: 55px !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 15px rgba(255, 184, 0, 0.4) !important;
    display: inline-block !important;
    object-fit: cover !important;
}

