﻿:root {
    --primary-color: #9c27b0; /* Purple inspired by 10CRIC */
    --primary-hover: #7b1fa2;
    --bg-light: #f5f6fa; /* Very light gray */
    --text-dark: #1a1a1a;
    --text-muted: #6c757d;
    --card-bg: #ffffff;
    
    /* Support colors */
    --soft-lavender: #f3e5f5;
    --light-blue: #e3f2fd;
    --light-green: #e8f5e9;
    --light-yellow: #fff8e1;

    --border-radius-sm: 12px;
    --border-radius-md: 16px;
    --border-radius-lg: 20px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Premium Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

/* Custom Buttons */
/* Replaced by Hero Banner provided CSS below, but keeping placeholder in case */

/* Layout Utilities */
a {
    text-decoration: none;
    color: inherit;
}

/* Hide horizontal scrollbar but allow vertical */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* --- Header / Navbar --- */
.header-logo {
    letter-spacing: -1px;
}

.text-primary-custom {
    color: var(--primary-color) !important;
}

.nav-link {
    color: var(--text-dark) !important;
    font-size: 14px;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar .dropdown-menu {
    border-radius: var(--border-radius-sm);
}

.text-sm {
    font-size: 14px;
}

/* ==============================
   HERO BANNER
================================ */

.hero-banner-section {
    width: 100%;
    padding: 0;
}

.hero-banner {
    width: 100%;
    height: 252px;
    margin: 0 auto;

    display: flex;
    align-items: stretch;

    background: transparent;

    overflow: hidden;
    border-radius: 28px;

    position: relative;
}


/* ==============================
   LEFT CONTENT
================================ */

.hero-content {
    width: 31%;
    min-width: 340px;

    padding: 18px 20px 15px 80px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    background: transparent;

    position: relative;
    z-index: 2;
}

.hero-content h4 {
    margin: 0 0 8px;

    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;

    color: #000;
}

.hero-content h1 {
    margin: 0 0 40px;

    font-size: 27px;
    line-height: 1.05;
    font-weight: 800;

    color: #000;
}

.hero-content p {
    margin: 0;

    font-size: 13px;
    line-height: 1.2;

    color: #222;
}

.hero-content p strong {
    font-weight: 800;
    color: #000;
}


/* ==============================
   CLAIM BUTTON
================================ */

.btn-primary-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 120px;
    height: 40px;

    padding: 0;

    border: none;
    border-radius: 25px;

    background: #8d3df5;
    color: #fff;

    font-size: 16px;
    font-weight: 700;

    text-decoration: none;

    transition: all 0.2s ease;
}

.btn-primary-custom:hover {
    background: #7730d8;
    color: #fff;

    transform: translateY(-1px);
}


/* ==============================
   IMAGE
================================ */

.hero-image-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 28px;
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;

    position: absolute;
    inset: 0;
}


/* ==============================
   TABLET
================================ */

@media (max-width: 991px) {

    .hero-banner {
        height: 230px;
    }

    .hero-content {
        width: 34%;
        min-width: 280px;

        padding-right: 15px;
    }

    .hero-image-wrapper {
        width: 66%;
    }

    .hero-content h4 {
        font-size: 18px;
    }

    .hero-content h1 {
        font-size: 24px;
        margin-bottom: 28px;
    }
}


/* ==============================
   MOBILE
================================ */

@media (max-width: 767px) {

    .hero-banner {
        height: auto;
        min-height: 230px;

        display: block;

        border-radius: 20px;
    }

    .hero-content {
        width: 100%;
        min-width: 0;

        padding: 25px 20px;

        text-align: center;

        align-items: center;
    }

    .hero-content h4 {
        font-size: 18px;
    }

    .hero-content h1 {
        font-size: 26px;
        margin-bottom: 25px;
    }

    .hero-image-wrapper {
        width: 100%;
        height: 180px;

        border-radius: 0 0 20px 20px;
    }

    .hero-image {
        position: relative;
        object-fit: cover;
    }
}

.object-fit-cover {
    object-fit: cover;
}

/* --- Feature Category Cards --- */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.feature-img-placeholder {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 150px;
    height: 150px;
    background: rgba(0,0,0,0.05);
    border-radius: 50%;
    z-index: 0;
}

.feature-img-placeholder.small {
    width: 80px;
    height: 80px;
    bottom: -20px;
    right: 50%;
    transform: translateX(50%);
}

.bg-sports { background: #e3f2fd; }
.bg-live-casino { background: #e8f5e9; }
.bg-instant { background: #e0f7fa; }
.bg-vip { background: #fff3e0; }
.bg-promos { background: #f3e5f5; }
.bg-loyalty { background: #fff8e1; }

.large-card { min-height: 250px; }
.small-card { min-height: 120px; }

/* --- Carousels & Tracks --- */
.carousel-container {
    width: 100%;
}

.carousel-track {
    transition: transform 0.3s ease-out;
    cursor: grab;
}

.carousel-track:active {
    cursor: grabbing;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* --- Game Cards --- */
.game-card {
    min-width: 160px;
    width: 160px;
    height: 220px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    background-color: #333; /* fallback */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 15px;
    color: white;
}

.game-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    z-index: 2;
}

.game-info-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.game-title {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 5px;
    text-transform: uppercase;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.game-provider {
    font-size: 11px;
    opacity: 0.8;
}

/* Simulated bg colors for game cards since we don't have images */
.bg-game-1 { background: linear-gradient(to bottom, #111, #444); }
.bg-game-2 { background: linear-gradient(to bottom, #2196F3, #1565C0); }
.bg-game-3 { background: linear-gradient(to bottom, #FF5722, #D84315); }
.bg-game-4 { background: linear-gradient(to bottom, #4CAF50, #2E7D32); }
.bg-game-5 { background: linear-gradient(to bottom, #FFC107, #FF8F00); }
.bg-game-6 { background: linear-gradient(to bottom, #9C27B0, #6A1B9A); }
.bg-game-7 { background: linear-gradient(to bottom, #E91E63, #AD1457); }

/* --- Sports Pills --- */
.sport-pill {
    background-color: white;
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    border: 1px solid #e0e0e0;
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sport-pill:hover, .sport-pill.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* --- Match Cards --- */
.match-card {
    min-width: 280px;
    max-width: 300px; width: 85vw;
    background: white;
    border-radius: var(--border-radius-md);
    padding: 16px;
    border: 1px solid #eee;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.match-odds-btn {
    background-color: var(--bg-light);
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    width: 100%;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.match-odds-btn:hover {
    background-color: #e0e0e0;
}

.badge-cricket {
    background-color: #f3e5f5;
    color: var(--primary-color);
    font-weight: 600;
}

/* --- Info Section --- */
.info-section {
    position: relative;
}

.info-overlay {
    position: absolute;
    bottom: 80px;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, white, transparent);
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.info-section.expanded .info-overlay {
    opacity: 0;
}

.info-content {
    line-height: 1.6;
}

/* --- Footer --- */
.footer-links a {
    color: #a0a0a0;
    transition: color 0.2s ease;
    display: inline-block;
    margin-bottom: 8px;
}

.footer-links a:hover {
    color: white;
}

/* --- Floating Chat --- */
.floating-chat-container {
    position: fixed;
    bottom: 30px;
    left: 30px; /* Reference screenshot has chat at bottom left */
    z-index: 1050;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.chat-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    padding: 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-toggle-btn:hover {
    transform: scale(1.1);
}

.chat-panel {
    max-width: 300px; width: 85vw;
    height: 400px;
    margin-bottom: 15px;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transform-origin: bottom left;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.chat-panel.d-none {
    display: flex !important; /* Override bootstrap temporarily for transition */
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
}

.bg-primary-custom {
    background-color: var(--primary-color);
}

.chat-body {
    overflow-y: auto;
    height: 100%;
}

.chat-message.bot {
    border-bottom-left-radius: 0;
}
.chat-message.user {
    border-bottom-right-radius: 0;
    margin-left: auto;
}
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 22px;
        margin-bottom: 20px;
    }
    .hero-content h4 {
        font-size: 16px;
    }
    .hero-image-wrapper {
        height: 150px;
    }
    .chat-panel {
        max-width: 90vw;
    }
    .feature-img-placeholder {
        width: 120px;
        height: 120px;
    }
}
