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

:root {
    /* Color Palette */
    --bg-primary: #0a0e14;
    --bg-secondary: #151921;
    --bg-tertiary: #1a1f2e;
    --accent-purple: #8B5CF6;
    --accent-pink: #EC4899;
    --accent-gold: #F59E0B;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --border-color: #2d3748;
    --hover-bg: #252a35;

    /* Spacing */
    --header-height: 70px;
    --sidebar-width: 220px;
    --gap: 1rem;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ==================== Header ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 2rem;
    max-width: 1920px;
    margin: 0 auto;
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: 1px;
}

.logo-text {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

.logo-casino {
    color: var(--text-primary);
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 5px rgba(139, 92, 246, 0.5));
    }
    to {
        filter: drop-shadow(0 0 15px rgba(236, 72, 153, 0.8));
    }
}

.main-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-pink));
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

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

.lang-currency {
    display: flex;
    gap: 0.5rem;
}

.lang-btn,
.currency-btn {
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.lang-btn:hover,
.currency-btn:hover {
    background: var(--hover-bg);
    border-color: var(--accent-purple);
    transform: translateY(-2px);
}

/* ==================== Buttons ==================== */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

.btn-login:hover {
    border-color: var(--accent-purple);
    background: var(--hover-bg);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.4);
}

.btn-join {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    color: var(--text-primary);
    box-shadow: 0 5px 25px rgba(236, 72, 153, 0.5);
    animation: pulse-glow 2s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.btn-join::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    border-radius: 10px;
}

.btn-join:hover::before {
    opacity: 1;
}

.btn-join:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 35px rgba(236, 72, 153, 0.8);
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 5px 25px rgba(236, 72, 153, 0.5);
    }
    50% {
        box-shadow: 0 5px 35px rgba(139, 92, 246, 0.8);
    }
}

/* ==================== Main Container ==================== */
.main-container {
    display: flex;
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
}

/* ==================== Sidebar ==================== */
.sidebar {
    position: fixed;
    left: 0;
    top: var(--header-height);
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 900;
}

.sidebar-scroll {
    padding: 1rem 0;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-item:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
    border-left-color: var(--accent-purple);
}

.sidebar-item.active {
    background: var(--hover-bg);
    color: var(--text-primary);
    border-left-color: var(--accent-pink);
}

.sidebar-icon {
    font-size: 1.3rem;
    width: 30px;
    text-align: center;
}

.sidebar-text {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Custom Scrollbar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--accent-purple);
}

/* ==================== Main Content ==================== */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 2rem;
    background: var(--bg-primary);
}

/* ==================== Main Heading ==================== */
.main-heading {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.3;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
    }
    to {
        text-shadow: 0 0 20px rgba(139, 92, 246, 0.6);
    }
}

/* ==================== Hero Banners ==================== */
.hero-banners {
    margin-bottom: 3rem;
}

.banner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.banner-card {
    position: relative;
    display: block;
    height: 280px;
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.banner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
}

.banner-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.banner-card:hover img {
    transform: scale(1.1);
}

.banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.7), transparent);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.banner-content h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.banner-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

.banner-btn {
    align-self: flex-start;
    padding: 0.65rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    color: var(--text-primary);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.banner-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.5);
}

/* ==================== Games Sections ==================== */
.games-section {
    margin-bottom: 3rem;
}

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

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    background-clip: text;
}

.view-all {
    color: var(--accent-purple);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.view-all:hover {
    color: var(--accent-pink);
    transform: translateX(5px);
}

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

.game-card {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(236, 72, 153, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.play-btn {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.game-card:hover img {
    transform: scale(1.1);
}

.game-card:hover .game-overlay {
    opacity: 1;
}

/* ==================== FAQ Section ==================== */
.faq-section {
    margin: 4rem 0;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 15px;
}

.faq-section h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--hover-bg);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==================== Footer ==================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    margin-left: var(--sidebar-width);
    padding: 3rem 2rem 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto 2rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-section ul li a:hover {
    color: var(--accent-purple);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ==================== Mobile Responsive ==================== */
@media (max-width: 1024px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 0;
    }

    .header-container {
        padding: 0 1rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
        border-bottom: 1px solid var(--border-color);
    }

    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-link {
        padding: 1rem 1.5rem;
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .lang-currency {
        display: none;
    }

    .btn-login {
        display: none;
    }

    .btn-join {
        font-size: 0.8rem;
        padding: 0.6rem 1.2rem;
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 1rem;
    }

    .main-heading {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .footer {
        margin-left: 0;
    }

    .banner-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .banner-card {
        height: 220px;
    }

    .banner-content {
        padding: 1.25rem;
    }

    .banner-content h2 {
        font-size: 1.3rem;
    }

    .banner-content p {
        font-size: 0.9rem;
    }

    .banner-btn {
        font-size: 0.85rem;
        padding: 0.6rem 1.25rem;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.75rem;
    }

    .section-header h2 {
        font-size: 1.3rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.4rem;
    }

    .main-heading {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .banner-card {
        height: 180px;
    }

    .banner-content {
        padding: 1rem;
        gap: 0.5rem;
    }

    .banner-content h2 {
        font-size: 1.1rem;
    }

    .banner-content p {
        font-size: 0.85rem;
        line-height: 1.3;
    }

    .banner-btn {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
}

/* ==================== Content Sections ==================== */
.content-section {
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.content-section h1 {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
    text-align: center;
    line-height: 1.3;
}

.content-block {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.content-block:hover {
    border-color: var(--accent-purple);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.15);
}

.content-block h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.content-block h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--accent-purple);
    margin: 1.5rem 0 1rem;
}

.content-block p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.content-block ul,
.content-block ol {
    margin: 1rem 0 1rem 1.5rem;
    color: var(--text-secondary);
}

.content-block li {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.content-block ul li {
    list-style-type: disc;
}

.content-block ol li {
    list-style-type: decimal;
}

.content-block strong {
    color: var(--accent-pink);
    font-weight: 600;
}

/* ==================== Info Tables ==================== */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--bg-tertiary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.info-table thead {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
}

.info-table thead th {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1rem;
    padding: 1rem;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s ease;
}

.info-table tbody tr:hover {
    background: var(--hover-bg);
}

.info-table tbody tr:last-child {
    border-bottom: none;
}

.info-table tbody td {
    color: var(--text-secondary);
    font-size: 1rem;
    padding: 1rem;
    line-height: 1.6;
}

.info-table tbody td:first-child {
    color: var(--text-primary);
    font-weight: 600;
}

/* Responsive table */
@media (max-width: 768px) {
    .info-table {
        font-size: 0.9rem;
    }

    .info-table thead th,
    .info-table tbody td {
        padding: 0.75rem 0.5rem;
    }

    .content-section h1 {
        font-size: 1.8rem;
    }

    .content-block {
        padding: 1.5rem;
    }

    .content-block h2 {
        font-size: 1.5rem;
    }

    .content-block h3 {
        font-size: 1.2rem;
    }

    .content-block p,
    .content-block li {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    /* Stack table for mobile */
    .info-table,
    .info-table thead,
    .info-table tbody,
    .info-table tr,
    .info-table th,
    .info-table td {
        display: block;
    }

    .info-table thead {
        display: none;
    }

    .info-table tbody tr {
        margin-bottom: 1rem;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 1rem;
    }

    .info-table tbody td {
        padding: 0.5rem 0;
        border: none;
        position: relative;
        padding-left: 50%;
    }

    .info-table tbody td:before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 45%;
        padding-right: 10px;
        font-weight: 700;
        color: var(--accent-purple);
    }

    .content-section h1 {
        font-size: 1.5rem;
    }

    .content-block {
        padding: 1rem;
    }

    .content-block h2 {
        font-size: 1.3rem;
    }

    .content-block h3 {
        font-size: 1.1rem;
    }
}

/* ==================== Accessibility ==================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==================== Print Styles ==================== */
@media print {
    .header,
    .sidebar,
    .footer,
    .game-overlay {
        display: none;
    }

    .main-content {
        margin-left: 0;
    }
}
