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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(145deg, #0a0603 0%, #1a0f08 25%, #2a1810 50%, #3a2218 75%, #4a2c20 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Header Styles */
.main-header {
    background: rgba(10, 6, 3, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.25);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 25px;
    max-width: 1600px;
    margin: 0 auto;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sidebar-toggle {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: rgba(255, 215, 0, 0.1);
}

.hamburger-line {
    width: 22px;
    height: 3px;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 36px;
    filter: brightness(1.2) saturate(1.1);
}

.header-center {
    display: flex;
    align-items: center;
    gap: 25px;
    flex: 1;
    max-width: 700px;
    margin: 0 25px;
}

.search-container {
    position: relative;
    flex: 1;
    max-width: 350px;
}

.search-input {
    width: 100%;
    padding: 12px 50px 12px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 215, 0, 0.25);
    border-radius: 25px;
    color: #ffffff;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.search-input:focus {
    border-color: #FFD700;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.15);
}

.search-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #FFD700;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: rgba(255, 215, 0, 0.15);
}

.primary-btn {
    background: linear-gradient(135deg, #8B4513 0%, #CD853F 100%);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 69, 19, 0.5);
    background: linear-gradient(135deg, #A0522D 0%, #DEB887 100%);
}

.header-right {
    display: flex;
    gap: 15px;
}

.auth-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.login-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 2px solid rgba(255, 215, 0, 0.25);
}

.login-btn:hover {
    background: rgba(255, 215, 0, 0.15);
    border-color: #FFD700;
}

.register-btn {
    background: linear-gradient(135deg, #DAA520, #FFD700);
    color: #2D1810;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(218, 165, 32, 0.3);
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(218, 165, 32, 0.5);
}

/* Layout Styles */
.app-layout {
    display: flex;
    margin-top: 70px;
    min-height: calc(100vh - 70px);
    position: relative;
}

/* Sidebar Styles */
.sidebar-nav {
    width: 220px;
    background: linear-gradient(180deg, #0a0603 0%, #1a0f08 50%, #2a1810 100%);
    border-right: 1px solid rgba(255, 215, 0, 0.2);
    flex-shrink: 0;
    position: relative;
    transition: width 0.3s ease;
    overflow: visible;
    z-index: 100;
}

.sidebar-nav.collapsed {
    width: 70px;
}

.sidebar-header {
    position: relative;
    padding: 20px 0;
}

.sidebar-collapse {
    position: absolute;
    top: 20px;
    right: -18px;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #DAA520, #FFD700);
    border: 2px solid rgba(255, 215, 0, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 200;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.sidebar-collapse:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(218, 165, 32, 0.4);
}

.collapse-icon {
    font-size: 14px;
    color: #2D1810;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.sidebar-nav.collapsed .collapse-icon {
    transform: rotate(180deg);
}

.sidebar-close {
    display: none;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    border-bottom: 1px solid rgba(255, 215, 0, 0.08);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(255, 215, 0, 0.12);
    color: #FFD700;
}

.nav-item.active .nav-link {
    background: rgba(218, 165, 32, 0.25);
    color: #FFD700;
    border-left: 4px solid #FFD700;
}

.nav-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.nav-text {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.8px;
    opacity: 1;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.sidebar-nav.collapsed .nav-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.sidebar-nav.collapsed .nav-link {
    justify-content: center;
    padding: 16px 15px;
}

.sidebar-nav.collapsed .nav-link::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 6, 3, 0.95);
    color: #FFD700;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    margin-left: 15px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(10px);
}

.sidebar-nav.collapsed .nav-link:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Main Content Styles */
.main-content {
    flex: 1;
    padding: 25px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.15);
}

/* Hero Promotions */
.hero-promotions {
    margin-bottom: 40px;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.promo-banner {
    position: relative;
    border-radius: 20px;
    padding: 30px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.promo-banner:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.welcome-promo {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 50%, #CD853F 100%);
    border: 2px solid rgba(255, 215, 0, 0.4);
}

.cashback-promo {
    background: linear-gradient(135deg, #4682B4 0%, #5F9EA0 50%, #87CEEB 100%);
    border: 2px solid rgba(135, 206, 235, 0.4);
}

.highroller-promo {
    background: linear-gradient(135deg, #DAA520 0%, #FFD700 50%, #FFA500 100%);
    border: 2px solid rgba(255, 215, 0, 0.6);
}

.promo-content {
    flex: 1;
    z-index: 2;
    max-width: 60%;
}

.promo-badge {
    font-size: 13px;
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: 10px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.promo-title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 18px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.highlight {
    display: block;
    font-size: 18px;
    opacity: 0.9;
}

.promo-cta {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.promo-cta:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.promo-visual {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 45%;
    height: 120%;
    pointer-events: none;
    opacity: 0.95;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.promo-image {
    width: auto;
    height: 100%;
    object-fit: contain;
    object-position: right bottom;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
}

/* Winners Section */
.winners-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.section-title {
    font-size: 26px;
    font-weight: 800;
    color: #FFD700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #FFD700;
    margin-right: 5px;
}

.winners-slider {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 15px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 215, 0, 0.3) transparent;
}

.winners-slider::-webkit-scrollbar {
    height: 8px;
}

.winners-slider::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}

.winners-slider::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 4px;
}

.winner-card {
    background: rgba(26, 15, 10, 0.85);
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 15px;
    padding: 18px;
    min-width: 160px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.winner-card:hover {
    transform: translateY(-5px);
    background: rgba(26, 15, 10, 0.95);
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.win-amount {
    font-size: 18px;
    font-weight: 800;
    color: #FFD700;
    margin-bottom: 12px;
}

.game-thumb {
    margin-bottom: 12px;
}

.game-thumb img {
    width: 55px;
    height: 55px;
    border-radius: 10px;
    object-fit: cover;
}

.winner-name {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

/* Game Categories */
.game-category {
    margin-bottom: 45px;
}

.section-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.control-arrow {
    background: rgba(26, 15, 10, 0.85);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #DAA520;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
}

.control-arrow:hover {
    background: rgba(218, 165, 32, 0.25);
    border-color: #DAA520;
    transform: scale(1.1);
}

.view-all-btn {
    background: linear-gradient(135deg, #DAA520, #FFD700);
    color: #2D1810;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    box-shadow: 0 3px 10px rgba(218, 165, 32, 0.3);
}

.view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(218, 165, 32, 0.5);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

.game-card {
    background: rgba(26, 15, 10, 0.85);
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.game-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(26, 15, 10, 0.95);
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.game-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.game-card:hover .game-image {
    transform: scale(1.08);
}

.game-info {
    padding: 15px 18px;
}

.game-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 5px;
}

.game-provider {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* Footer Styles */
.site-footer {
    margin-top: 50px;
    border-top: 1px solid rgba(255, 215, 0, 0.25);
    background: rgba(10, 6, 3, 0.95);
    backdrop-filter: blur(20px);
}

.footer-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo {
    height: 30px;
    filter: brightness(1.2);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

.footer-nav {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #FFD700;
    text-decoration: underline;
}

.footer-partners {
    padding: 15px 25px 30px;
    border-top: 1px solid rgba(255, 215, 0, 0.12);
}

.partner-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.partner-badge {
    background: rgba(26, 15, 10, 0.85);
    border: 1px solid rgba(255, 215, 0, 0.25);
    color: rgba(255, 255, 255, 0.85);
    border-radius: 18px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 500;
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    top: 70px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 999;
}

.mobile-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: slideInUp 0.6s ease-out forwards;
    opacity: 0;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .promo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .app-layout {
        flex-direction: column;
    }
    
    .sidebar-nav {
        width: 100vw;
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 1001;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }
    
    .sidebar-nav.mobile-active {
        transform: translateX(0);
    }
    
    .sidebar-nav.collapsed {
        width: 100vw;
    }
    
    .sidebar-collapse {
        display: none;
    }

    .sidebar-close {
        position: absolute;
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 1px solid rgba(255, 215, 0, 0.4);
        background: rgba(10, 6, 3, 0.85);
        color: #FFD700;
        font-size: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1100;
        cursor: pointer;
    }
    
    .mobile-overlay {
        display: block;
        top: 0;
    }
    
    .header-container {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .header-center {
        order: 3;
        width: 100%;
        margin: 15px 0 0 0;
    }

    .sidebar-nav .nav-text {
        opacity: 1 !important;
        width: auto !important;
        overflow: visible !important;
    }
    
    .sidebar-nav .nav-link {
        justify-content: flex-start !important;
        padding: 16px 20px !important;
    }
    
    .promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .promo-banner {
        min-height: 200px;
        padding: 25px;
    }
    
    .promo-title {
        font-size: 20px;
    }

    .promo-content {
        max-width: 65%;
    }

    .promo-visual {
        width: 40%;
        height: 100%;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
    
    .winners-slider {
        gap: 12px;
    }
    
    .winner-card {
        min-width: 140px;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .no-scroll {
        overflow: hidden;
        height: 100vh;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 12px 18px;
    }
    
    .main-content {
        padding: 18px;
    }
    
    .auth-btn {
        padding: 10px 18px;
        font-size: 12px;
    }
    
    .promo-title {
        font-size: 18px;
    }
    
    .promo-content {
        max-width: 70%;
    }

    .promo-visual {
        width: 50%;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.5);
}

/* Article Content Styles */
.content-article {
    padding: 25px 25px 40px;
    margin-top: 0;
    background: rgba(0, 0, 0, 0.15);
}

.article-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.content-article h1,
.content-article h2,
.content-article h3,
.content-article h4,
.content-article h5,
.content-article h6 {
    color: #FFD700;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 16px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.content-article h1 { font-size: 28px; margin-top: 6px; }
.content-article h2 { font-size: 24px; margin-top: 20px; }
.content-article h3 { font-size: 18px; margin-top: 16px; }

.content-article p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    margin: 0 0 14px;
}

.content-article ul,
.content-article ol {
    padding-left: 22px;
    margin: 8px 0 16px;
}

.content-article li {
    margin: 6px 0;
}

.content-article a {
    color: #FFD700;
    text-decoration: none;
}

.content-article a:hover {
    text-decoration: underline;
}

.content-article table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0 22px;
    background: rgba(26, 15, 10, 0.85);
    border: 1px solid rgba(255, 215, 0, 0.25);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.content-article thead th {
    background: linear-gradient(135deg, #DAA520, #FFD700);
    color: #2D1810;
    font-weight: 800;
    padding: 12px 14px;
    font-size: 14px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 215, 0, 0.4);
}

.content-article tbody td {
    padding: 12px 14px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    border-top: 1px solid rgba(255, 215, 0, 0.12);
}

.content-article tbody tr:nth-child(even) {
    background: rgba(26, 15, 10, 0.75);
}

.content-article tbody tr:hover {
    background: rgba(218, 165, 32, 0.08);
}

@media (max-width: 768px) {
    .content-article {
        padding: 22px 18px 40px;
    }
    .content-article h1 { font-size: 24px; }
    .content-article h2 { font-size: 20px; }
    .content-article h3 { font-size: 16px; }
}
