/* 
    Peluang88 Sidebar Layout Design
    Inspired by provided screenshot
    Colors: Black, Yellow, Orange, Green
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

:root {
    --bg-black: #050505;
    --bg-dark: #121212;
    --bg-card: rgba(30, 30, 30, 0.6);
    --accent-yellow: #f1c40f;
    --accent-gold: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%);
    --accent-orange: #e67e22;
    --accent-green: #27ae60;
    --accent-red: #c0392b;
    --text-white: #f8f9fa;
    --text-muted: #95a5a6;
    --nav-height: 70px;
    --sidebar-width: 260px;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-black);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    line-height: 1.4;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Enhanced Link Styling for Content Areas */
article a,
.blog-content a {
    color: var(--accent-yellow);
    transition: opacity 0.3s;
}

article a:hover,
.blog-content a:hover {
    opacity: 0.8;
}

/* Layout Container */
.site-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

/* Sticky Header Wrapper */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Navigation */
nav {
    height: var(--nav-height);
    background: #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    border-bottom: 1px solid #333;
    /* position managed by .site-header wrapper */
}

.logo img {
    max-height: 45px;
    width: auto;
    display: block;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-yellow);
}

.btn-signup {
    background: linear-gradient(135deg, #f1c40f 0%, #e67e22 100%);
    color: #000 !important;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 800;
    border: none;
    box-shadow: 0 4px 15px rgba(241, 196, 15, 0.3);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(241, 196, 15, 0.4);
}

.mobile-only {
    display: none;
}

@media (max-width: 1024px) {
    .mobile-only {
        display: block;
    }
    
    .nav-links.active .mobile-only {
        display: none; /* Hide redundant button when menu is open */
    }
}

/* Announcement Bar */
.announcement-bar {
    background: var(--accent-yellow);
    color: #000;
    padding: 5px 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: right;
}

/* Main Body Layout */
.main-layout {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr 300px;
    gap: 15px;
    padding: 15px;
}

/* Sidebars */
.sidebar-left,
.sidebar-right {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Content Area */
.content-area {
    background: var(--bg-dark);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    min-width: 0;
}

/* Section Wrapper for variety */
.design-section {
    margin-bottom: 50px;
    position: relative;
}

.design-section::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--accent-gold);
    margin-top: 15px;
    border-radius: 2px;
}

/* Feature Grid Content */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 25px 0;
}

.feature-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 25px;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
    border-color: var(--accent-yellow);
}

.feature-card h3 {
    color: var(--accent-yellow);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Game Grid */
.game-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
    margin-bottom: 30px;
}

.game-item {
    aspect-ratio: 1;
    background: #333;
    overflow: hidden;
    border-radius: 2px;
}

.game-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-item:hover img {
    transform: scale(1.1);
}

.game-item {
    cursor: pointer;
    border: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.game-item:hover {
    border-color: var(--accent-yellow);
}

/* Blog Section */
.blog-content h1 {
    color: var(--accent-yellow);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.blog-content h2 {
    color: var(--accent-orange);
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem;
}

.blog-content h3 {
    color: var(--accent-yellow);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 2rem 0 0.75rem;
}

.blog-content p {
    color: var(--text-white);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.blog-content ul,
.blog-content ol {
    margin-left: 25px;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.blog-content li {
    margin-bottom: 12px;
    line-height: 1.6;
}

.blog-content li strong {
    color: var(--text-white);
}

.cta-box {
    background: #222;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    margin-top: 2rem;
    border: 1px solid #333;
}

.cta-box h3 {
    margin-bottom: 1rem;
}

.cta-box .btn-signup {
    display: inline-block;
    padding: 15px 50px;
    background: var(--accent-gold);
    color: #000;
    font-weight: 800;
    border: none;
    border-radius: 40px;
    margin-top: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(241, 196, 15, 0.3);
    transition: all 0.3s ease;
}

.cta-box .btn-signup:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(241, 196, 15, 0.5);
}

/* Widgets */
.login-widget {
    background: #444;
    border-radius: 4px;
    padding: 15px;
}

.widget-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 5px;
    font-weight: 800;
    border-radius: 4px;
}

.tab.login {
    background: #fff;
    color: #cc4444;
}

.tab.register {
    background: var(--accent-orange);
    color: #fff;
}

.balance-box {
    background: #eee;
    color: #000;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.balance-box .amount {
    color: #cc4444;
    font-weight: 800;
    font-size: 1.2rem;
}

.widget-buttons {
    display: grid;
    gap: 5px;
}

.btn-widget {
    padding: 8px;
    border-radius: 4px;
    font-weight: 700;
    text-align: center;
    font-size: 0.8rem;
    border: none;
    cursor: pointer;
}

.btn-deposit {
    background: var(--accent-green);
    color: #fff;
}

.btn-withdraw {
    background: var(--accent-orange);
    color: #fff;
}

.faq-container {
    margin-top: 1.5rem;
}

.faq-item {
    background: #111;
    border: 1px solid #222;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.faq-item h3 {
    font-size: 1.1rem;
    color: var(--accent-yellow);
    margin-bottom: 0.5rem;
}

.faq-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Banners */
.banner {
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
}

.banner img {
    width: 100%;
    display: block;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    z-index: 100;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-white);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== TABLET: 1024px ===== */
@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr;
        padding: 10px;
        gap: 10px;
    }

    .sidebar-left {
        order: -1;
        flex-direction: row;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .sidebar-left::-webkit-scrollbar {
        display: none;
    }

    .sidebar-left .banner {
        min-width: 250px;
        flex-shrink: 0;
    }

    .content-area {
        order: 2;
        padding: 20px;
    }

    .sidebar-right {
        order: 3;
    }

    .game-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        border-bottom: 2px solid var(--accent-yellow);
        z-index: 999;
        height: calc(100vh - var(--nav-height));
        overflow-y: auto;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 12px 0;
        border-bottom: 1px solid #222;
        font-size: 1rem;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .blog-content h1 {
        font-size: 1.6rem;
    }

    .blog-content h2 {
        font-size: 1.3rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .cta-box {
        padding: 20px;
    }

    .cta-box .btn-signup {
        padding: 12px 30px;
    }
}

/* ===== MOBILE: 768px ===== */
@media (max-width: 768px) {
    .content-area {
        padding: 15px;
        border-radius: 8px;
    }

    .game-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .blog-content h1 {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .blog-content h2 {
        font-size: 1.4rem;
    }

    .blog-content h3 {
        font-size: 1.2rem;
    }

    .blog-content p {
        font-size: 1rem;
    }

    .blog-content ul,
    .blog-content ol {
        margin-left: 15px;
        margin-bottom: 1.5rem;
    }

    .blog-content li {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .design-section {
        margin-bottom: 35px;
    }

    .faq-item {
        padding: 15px;
    }

    .faq-item h3 {
        font-size: 1.1rem;
    }

    .sidebar-left .banner {
        min-width: 160px;
    }

    .sidebar-right {
        display: none;
    }

    .vip-table {
        font-size: 0.8rem;
    }

    .vip-table thead th,
    .vip-table tbody td {
        padding: 8px 10px;
    }
}

/* ===== SMALL MOBILE: 480px ===== */
@media (max-width: 480px) {
    .main-layout {
        padding: 5px;
        gap: 8px;
    }

    .content-area {
        padding: 12px;
        border-radius: 6px;
    }

    .game-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin-bottom: 20px;
    }

    .blog-content h1 {
        font-size: 1.4rem;
    }

    .blog-content h2 {
        font-size: 1.25rem;
    }

    .blog-content h3 {
        font-size: 1.1rem;
    }

    .blog-content p,
    .blog-content li {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .blog-content ul,
    .blog-content ol {
        margin-left: 12px;
    }

    .design-section {
        margin-bottom: 25px;
    }

    .design-section::after {
        width: 35px;
        height: 2px;
        margin-top: 10px;
    }

    nav {
        padding: 0 10px;
        height: 55px;
    }

    .logo img {
        max-height: 35px;
    }

    .announcement-bar {
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    .sidebar-left .banner {
        min-width: 140px;
    }

    .cta-box {
        padding: 15px;
    }

    .cta-box .btn-signup {
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    .faq-item {
        padding: 12px;
    }

    .vip-table {
        font-size: 0.75rem;
    }

    .vip-table thead th,
    .vip-table tbody td {
        padding: 6px 6px;
    }
}

/* VIP Tier Table */
.vip-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.vip-table thead th {
    background: linear-gradient(135deg, var(--accent-yellow), var(--accent-orange));
    color: #000;
    font-weight: 700;
    padding: 12px 16px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vip-table thead th:first-child {
    text-align: left;
}

.vip-table tbody td {
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    text-align: center;
}

.vip-table tbody td:first-child {
    text-align: left;
    color: var(--text-white);
}

.vip-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

.vip-table tbody tr:hover {
    background: rgba(255, 193, 7, 0.06);
}
@media (max-width: 768px) {
    .vip-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
}

/* Banner Navigation Carousel CSS */
.sidebar-left-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
}
.sidebar-left {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none; /* IE/Edge */
    scroll-snap-type: x mandatory;
    width: 100%;
}

.sidebar-left::-webkit-scrollbar {
    display: none;
}
.sidebar-left .banner {
    flex: 0 0 auto;
    scroll-snap-align: start;
}
.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: var(--accent-yellow);
    border: 1px solid var(--accent-yellow);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.banner-nav:hover {
    background: var(--accent-yellow);
    color: #000;
}
/* Simplified Footer */
.site-footer {
    background: #000;
    padding: 40px 20px;
    border-top: 1px solid #111;
    text-align: center;
    margin-top: 40px;
}

.footer-assets {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-assets img {
    max-width: 100%;
    height: auto;
    max-height: 60px;
    width: auto;
    object-fit: contain;
    filter: grayscale(0.2) brightness(0.9);
    transition: all 0.3s ease;
}

.footer-assets img:hover {
    filter: grayscale(0) brightness(1);
    transform: scale(1.05);
}

.footer-copyright {
    margin-top: 30px;
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .footer-assets {
        gap: 20px;
        flex-direction: column;
    }
    .footer-assets img {
        max-height: 50px;
    }
}

@media (max-width: 1024px) {
    .prev-banner, .next-banner { display: none !important; }
    .sidebar-left { flex-direction: row; scroll-snap-type: x mandatory; }
    .sidebar-left-wrapper { order: -1; }
}

@media (min-width: 1025px) {
    .sidebar-left {
        flex-direction: column;
        overflow-y: hidden;
        scroll-snap-type: y mandatory;
        height: 600px;
    }
    
    .sidebar-left-wrapper {
        flex-direction: column;
    }
    
    .prev-banner, .next-banner {
        display: none !important;
    }
}
