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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #c7d2fe 0%, #ddd6fe 50%, #e0e7ff 100%);
    min-height: 100vh;
    color: #1e293b;
    overflow-x: hidden;
}

/* Header Styles */
.header {
    background: rgba(55, 65, 81, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

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

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

.logo-img {
    height: 48px;
    width: auto;
}

.header-center {
    flex: 1;
    max-width: 500px;
    margin: 0 40px;
}

.search-container {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
}

.header-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn {
    padding: 10px 24px;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline {
    background: transparent;
    color: #fbbf24;
    border: 1px solid #fbbf24;
}

.btn-outline:hover {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    color: #1f2937;
    font-weight: 700;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
}

/* Navigation Tabs */
.nav-tabs {
    background: rgba(55, 65, 81, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 8px 20px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nav-container::-webkit-scrollbar {
    display: none;
}

.nav-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(31, 41, 55, 0.8);
    border: none;
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    margin: 8px 4px;
}

.nav-tab:hover {
    color: #ffffff;
    background: rgba(51, 65, 85, 0.9);
}

.nav-tab.active {
    color: #ffffff;
    background: rgba(51, 65, 85, 1);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.nav-icon {
    font-size: 16px;
}

.nav-text {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Carousel Section */
.hero-section {
    margin: 30px 0;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 20px;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    align-items: center;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.carousel-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.3) 0%, rgba(30, 41, 59, 0.2) 50%, rgba(71, 85, 105, 0.1) 100%);
}

.carousel-text {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    max-width: 100%;
}

.carousel-title { display: none; }

.carousel-percentage { display: none; }

.carousel-subtitle { display: none; }

.carousel-cta {
    background: linear-gradient(45deg, #f97316, #ea580c);
    color: #ffffff;
    border: none;
    padding: 16px 40px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
    letter-spacing: 1px;
}

.carousel-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.6);
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: 20px;
}

.carousel-nav.next {
    right: 20px;
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #fbbf24;
    border-color: #fbbf24;
}

.indicator:hover {
    border-color: #ffffff;
    transform: scale(1.2);
}

/* Games Section */
.games-section {
    margin: 40px 0;
}

.games-container {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 30px 0;
    backdrop-filter: none;
}

.games-title {
    font-size: 32px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 30px;
    text-align: left;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

/* Article Content (Markdown) */
.content-section {
    margin: 40px 0;
}

.article-content {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    color: #1e293b;
    line-height: 1.25;
    margin: 22px 0 14px;
}

.article-content h1 { font-size: 32px; font-weight: 900; letter-spacing: 0.2px; }
.article-content h2 { font-size: 28px; font-weight: 800; }
.article-content h3 { font-size: 22px; font-weight: 800; }
.article-content h4 { font-size: 18px; font-weight: 700; }
.article-content h5 { font-size: 16px; font-weight: 700; }
.article-content h6 { font-size: 14px; font-weight: 700; }

.article-content p {
    margin: 12px 0 14px;
    line-height: 1.7;
    color: #334155;
}

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

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

.article-content a {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(37, 99, 235, 0.4);
}

.article-content a:hover {
    color: #1d4ed8;
    text-decoration-color: rgba(29, 78, 216, 0.6);
}

.article-content hr {
    height: 1px;
    border: none;
    background: rgba(0, 0, 0, 0.15);
    margin: 24px 0;
}

.article-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    display: block; /* enable horizontal scroll on small screens */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: #ffffff;
    margin: 14px 0 20px;
}

.article-content thead th {
    background: #f8fafc;
    color: #0f172a;
    font-weight: 800;
}

.article-content th,
.article-content td {
    padding: 12px 14px;
    font-size: 14px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.article-content tbody tr:nth-child(even) {
    background: #f9fafb;
}

.game-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: #ffffff;
}

.game-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(45deg, #ef4444, #dc2626);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

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

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

.game-name {
    padding: 15px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    color: #1e293b;
    letter-spacing: 0.5px;
    background: #ffffff;
}

/* Jackpot Section */
.jackpot-section {
    margin: 60px 0;
    position: relative;
}

.jackpot-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 50px;
    border-radius: 25px;
    background: 
        linear-gradient(135deg, rgba(30, 27, 75, 0.85) 0%, rgba(49, 46, 129, 0.8) 25%, rgba(124, 58, 237, 0.75) 50%, rgba(192, 38, 211, 0.8) 75%, rgba(245, 158, 11, 0.85) 100%),
        url('assets/gp-images.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-height: 400px;
}

/* Animated background overlay */
.jackpot-container::before { content: none; }

/* Floating particles effect */
.jackpot-container::after { content: none; }

.jackpot-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    max-width: 800px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.jackpot-heading {
    font-size: 42px;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #ffffff, #fbbf24, #ffffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShimmer 2s ease-in-out infinite;
}

.jackpot-amount {
    font-size: clamp(40px, 7.8vw, 88px);
    font-weight: 900;
    color: #fbbf24;
    text-shadow: 
        0 0 10px rgba(251, 191, 36, 0.5),
        0 0 20px rgba(251, 191, 36, 0.3),
        0 0 30px rgba(251, 191, 36, 0.2),
        0 4px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 1.8px;
    animation: glow 2s ease-in-out infinite alternate;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jackpot-amount::before { content: none; }

.jackpot-sub {
    font-size: 26px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.jackpot-btn {
    align-self: center;
    background: linear-gradient(45deg, #fbbf24, #f59e0b, #fbbf24);
    background-size: 200% 200%;
    color: #1f2937;
    border: none;
    padding: 20px 40px;
    border-radius: 20px;
    font-weight: 900;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 15px 35px rgba(251, 191, 36, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    animation: buttonShimmer 3s ease-in-out infinite;
}

.jackpot-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.jackpot-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 18px 40px rgba(251, 191, 36, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.jackpot-btn:hover::before {
    left: 100%;
}


/* Keyframe animations */
@keyframes shimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(180deg); }
}

@keyframes textShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes glow {
    0% { 
        text-shadow: 
            0 0 10px rgba(251, 191, 36, 0.5),
            0 0 20px rgba(251, 191, 36, 0.3),
            0 0 30px rgba(251, 191, 36, 0.2),
            0 4px 8px rgba(0, 0, 0, 0.3);
    }
    100% { 
        text-shadow: 
            0 0 15px rgba(251, 191, 36, 0.8),
            0 0 25px rgba(251, 191, 36, 0.5),
            0 0 35px rgba(251, 191, 36, 0.3),
            0 4px 8px rgba(0, 0, 0, 0.3);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: translate(2px, 2px) scale(1); }
    50% { opacity: 0.6; transform: translate(3px, 3px) scale(1.02); }
}

@keyframes buttonShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}


/* Footer */
.footer {
    margin-top: 60px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
}

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

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

.footer-logo {
    height: 28px;
    width: auto;
}

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

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

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

.footer-link:hover {
    color: #fbbf24;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .carousel-text {
        padding: 30px 40px;
    }
    
    .carousel-percentage {
        font-size: 60px;
    }
    
    .carousel-subtitle {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .logo-img {
        height: 44px;
    }
    
    .header-center {
        order: 3;
        width: 100%;
        margin: 0;
        max-width: none;
    }
    
    .nav-container {
        padding: 0 10px;
    }
    
    .nav-tab {
        padding: 12px 16px;
    }
    
    .nav-text {
        font-size: 12px;
    }
    
    .hero-carousel {
        height: 300px;
    }
    
    .carousel-img {
        object-fit: contain;
        background-color: transparent;
    }
    
    .carousel-content {
        align-items: flex-end;
        background: linear-gradient(180deg, rgba(31, 41, 55, 0) 55%, rgba(31, 41, 55, 0.75) 100%);
    }
    .carousel-text {
        padding: 16px 20px 24px;
        text-align: center;
        max-width: 100%;
    }
    
    .carousel-percentage {
        font-size: 48px;
    }
    
    .carousel-subtitle {
        font-size: 24px;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .carousel-nav.prev {
        left: 10px;
    }
    
    .carousel-nav.next {
        right: 10px;
    }
    
    .games-container {
        padding: 20px;
    }
    
    .games-title {
        font-size: 28px;
        text-align: left;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 12px;
    }
    .article-content {
        padding: 20px;
        border-radius: 12px;
    }
    .article-content h1 { font-size: 26px; }
    .article-content h2 { font-size: 22px; }
    .article-content h3 { font-size: 18px; }
    
    .footer-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .footer-links {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .hero-section { margin: 0; }
    .main-content {
        padding: 0 15px;
    }
    
    .header-container {
        padding: 10px 15px;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .carousel-content {
        align-items: flex-end;
        background: linear-gradient(180deg, rgba(31, 41, 55, 0) 55%, rgba(31, 41, 55, 0.85) 100%);
    }
    .carousel-text {
        padding: 14px 16px 22px;
    }
    
    .carousel-percentage {
        font-size: 40px;
    }
    
    .carousel-subtitle {
        font-size: 20px;
    }
    
    .carousel-cta {
        padding: 12px 30px;
        font-size: 16px;
    }
    
    .carousel-img {
        object-fit: contain;
        background-color: transparent;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
    
    .game-img {
        height: 120px;
    }
    
    .game-name {
        padding: 10px;
        font-size: 11px;
    }
    .article-content th,
    .article-content td {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

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

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

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

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

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Jackpot responsive tweaks */
@media (max-width: 1200px) {
    .jackpot-container { 
        padding: 60px 40px; 
        min-height: 350px;
    }
    .jackpot-content { gap: 20px; max-width: 700px; }
    .jackpot-heading { font-size: 38px; }
    .jackpot-amount { font-size: 76px; }
    .jackpot-sub { font-size: 24px; }
    .jackpot-btn { font-size: 20px; padding: 18px 36px; }
}

@media (max-width: 992px) {
    .jackpot-container { 
        padding: 50px 35px; 
        min-height: 320px;
    }
    .jackpot-content { gap: 18px; max-width: 600px; }
    .jackpot-heading { font-size: 34px; }
    .jackpot-amount { font-size: 68px; }
    .jackpot-sub { font-size: 22px; }
    .jackpot-btn { font-size: 18px; padding: 16px 32px; }
}

@media (max-width: 768px) {
    .jackpot-container { 
        padding: 40px 30px; 
        min-height: 280px;
        border-radius: 20px;
        background-size: contain;
        background-position: center center;
    }
    .jackpot-content { 
        gap: 20px; 
        max-width: 100%;
    }
    .jackpot-heading { font-size: 30px; }
    .jackpot-amount { font-size: clamp(34px, 8.2vw, 56px); letter-spacing: 1.2px; }
    .jackpot-sub { font-size: 20px; }
    .jackpot-btn { 
        font-size: 17px; 
        padding: 15px 28px;
    }
}

@media (max-width: 480px) {
    .jackpot-section { margin: 40px 0; }
    .jackpot-container { 
        padding: 30px 25px; 
        min-height: 250px;
        background-size: contain;
        background-position: center center;
    }
    .jackpot-content { gap: 16px; }
    .jackpot-heading { font-size: 26px; }
    .jackpot-amount { font-size: clamp(30px, 9vw, 46px); letter-spacing: 0.9px; }
    .jackpot-sub { font-size: 18px; }
    .jackpot-btn { 
        font-size: 16px; 
        padding: 14px 24px;
        border-radius: 15px;
    }
    
    /* Reduce animation intensity on mobile */
    .jackpot-container::before,
    .jackpot-container::after {
        animation-duration: 4s;
    }
    
    .jackpot-amount {
        animation-duration: 3s;
    }
}