/* ===================================
   999Slot - Modern Gaming Website
   CSS Design System
   =================================== */

/* CSS Variables */
:root {
    /* Colors */
    --bg-primary: #0A0C39;
    --bg-secondary: #121A4D;
    --bg-tertiary: #1B235A;
    --gold-primary: #F3D99E;
    --gold-secondary: #FFAA09;
    --gold-gradient: linear-gradient(135deg, #F3D99E 0%, #FFAA09 50%, #F3D99E 100%);
    --text-primary: #FFFFFF;
    --text-secondary: #A7B6FF;
    --text-muted: #6873BF;
    --accent-green: #04BE02;
    --accent-red: #EF4C44;
    --border-color: #3545A4;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 80px 0;
    --section-padding-mobile: 50px 0;

    /* Effects */
    --glass-bg: rgba(18, 26, 77, 0.8);
    --glass-border: rgba(243, 217, 158, 0.2);
    --shadow-glow: 0 0 30px rgba(243, 217, 158, 0.3);
    --transition: all 0.3s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Page Content Styles */
.page-content {
    min-height: calc(100vh - 200px);
    padding-bottom: 60px;
}

.content-article {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid var(--border-color);
}

.page-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 30px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-section {
    margin-bottom: 30px;
}

.content-section h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--gold-primary);
    margin-bottom: 15px;
}

.content-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
}

.content-section ul {
    margin-left: 20px;
}

.content-section li {
    color: var(--text-secondary);
    line-height: 2;
    list-style: disc;
}

.feature-list {
    list-style: none !important;
    margin-left: 0 !important;
}

.feature-list li {
    list-style: none;
    padding: 10px 0;
}

.contact-info {
    list-style: none !important;
    margin-left: 0 !important;
}

.contact-info li {
    list-style: none;
    padding: 8px 0;
    color: var(--text-secondary);
}

.contact-info a {
    color: var(--gold-primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.service-item {
    background: var(--bg-tertiary);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.service-item h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.service-item p {
    font-size: 0.9rem;
}

.cta-box {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, rgba(243, 217, 158, 0.1) 100%);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-top: 40px;
}

.cta-box h2 {
    color: var(--gold-primary);
    margin-bottom: 15px;
}

.cta-box .btn {
    margin: 10px 5px;
}

.update-date {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 30px;
}

.promo-details {
    list-style: none !important;
    margin: 15px 0 20px !important;
    padding: 0;
}

.promo-details li {
    list-style: none;
    padding: 5px 0;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .content-article {
        padding: 25px 20px;
        border-radius: 15px;
    }

    .cta-box .btn {
        display: block;
        margin: 10px auto;
        max-width: 280px;
    }
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   Header & Navigation
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(10, 12, 57, 0.95);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 35px;
}

.nav-link {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-gradient);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.auth-buttons {
    display: flex;
    gap: 12px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 14px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gold-gradient);
    color: var(--bg-primary);
    box-shadow: 0 4px 20px rgba(243, 217, 158, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gold-primary);
    color: var(--gold-primary);
}

.btn-outline:hover {
    background: var(--gold-primary);
    color: var(--bg-primary);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-icon {
    font-size: 18px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--gold-primary);
    transition: var(--transition);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 70px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(53, 69, 164, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(243, 217, 158, 0.1) 0%, transparent 50%),
        var(--bg-primary);
}

.particles {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(2px 2px at 20px 30px, var(--gold-primary), transparent),
        radial-gradient(2px 2px at 40px 70px, var(--text-secondary), transparent),
        radial-gradient(2px 2px at 80px 40px, var(--gold-secondary), transparent),
        radial-gradient(2px 2px at 130px 80px, var(--gold-primary), transparent),
        radial-gradient(2px 2px at 180px 30px, var(--text-secondary), transparent);
    background-size: 200px 100px;
    animation: particleFloat 20s linear infinite;
    opacity: 0.5;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-100px);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-title .highlight {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ===================================
   Section Styles
   =================================== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 16px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* ===================================
   Games Section
   =================================== */
.games-section {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.game-card {
    position: relative;
    background: var(--bg-tertiary);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    overflow: hidden;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold-gradient);
    opacity: 0;
    transition: var(--transition);
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold-primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.game-card:hover::before {
    opacity: 1;
}

.game-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.game-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.game-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.game-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.game-badge.hot {
    background: var(--accent-red);
    color: white;
}

.game-badge.new {
    background: var(--accent-green);
    color: white;
}

/* ===================================
   Features Section
   =================================== */
.features-section {
    padding: var(--section-padding);
    background: var(--bg-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--gold-primary);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--gold-primary);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* ===================================
   Promotions Section
   =================================== */
.promotions-section {
    padding: var(--section-padding);
    background: var(--bg-secondary);
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.promo-card {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    transition: var(--transition);
}

.promo-card:hover {
    border-color: var(--gold-primary);
    box-shadow: var(--shadow-glow);
}

.promo-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--gold-gradient);
    color: var(--bg-primary);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
    margin-bottom: 16px;
}

.promo-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.promo-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* ===================================
   CTA Section
   =================================== */
.cta-section {
    padding: 80px 0;
    background:
        radial-gradient(ellipse at center, rgba(243, 217, 158, 0.15) 0%, transparent 70%),
        var(--bg-primary);
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--bg-secondary);
    padding: 60px 0 100px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 16px;
}

.footer-col p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold-primary);
    margin-bottom: 20px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--gold-primary);
}

.contact-list li {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.footer-bottom a {
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: var(--gold-primary);
}

.age-restriction {
    font-size: 0.8rem !important;
    color: var(--accent-red) !important;
}

/* ===================================
   Mobile Bottom Navigation
   =================================== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    z-index: 1000;
    padding: 8px 0;
    padding-bottom: env(safe-area-inset-bottom, 8px);
}

.mobile-bottom-nav {
    display: none;
    grid-template-columns: repeat(5, 1fr);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px;
    font-size: 0.7rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.bottom-nav-item .nav-icon {
    font-size: 1.3rem;
}

.bottom-nav-item.active,
.bottom-nav-item:hover {
    color: var(--gold-primary);
}

.bottom-nav-item.cta {
    background: var(--gold-gradient);
    color: var(--bg-primary);
    border-radius: 12px;
    margin: -15px 5px 5px;
    padding: 15px 8px 8px;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .auth-buttons {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 120px 0 80px;
    }

    .hero-stats {
        gap: 30px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto 16px;
    }

    .mobile-bottom-nav {
        display: grid;
    }

    .footer {
        padding-bottom: 120px;
    }

    .games-grid,
    .promo-grid {
        grid-template-columns: 1fr;
    }

    .game-card,
    .promo-card {
        max-width: 400px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 15px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-lg {
        width: 100%;
        max-width: 280px;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-item {
        flex: 1;
        min-width: 80px;
    }

    .section-header {
        margin-bottom: 30px;
    }

    .games-section,
    .features-section,
    .promotions-section {
        padding: var(--section-padding-mobile);
    }
}

/* ===================================
   Scrollbar Styling
   =================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-primary);
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 0.8s ease forwards;
}

.game-card,
.feature-card,
.promo-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}