/* CloutMarket Premium Design System */
/* ================================== */

/* Import distinctive fonts - Satoshi for headings, Geist for body */
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@700,800,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&display=swap');

/* CSS Variables for cohesive theming */
:root {
    /* Core palette - cyber/betting aesthetic */
    --bg-primary: #06080c;
    --bg-secondary: #0c1015;
    --bg-card: rgba(12, 16, 22, 0.85);
    --bg-card-hover: rgba(20, 26, 35, 0.95);

    /* Accent colors - sharp, high contrast */
    --accent-primary: #00ff88;
    /* Neon green for wins/positive */
    --accent-secondary: #ff3366;
    /* Hot pink for contrast */
    --accent-tertiary: #6366f1;
    /* Electric purple */
    --accent-warning: #f59e0b;
    /* Amber for caution */

    /* Text hierarchy */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.12);

    /* Shadows & Glows */
    --glow-green: 0 0 20px rgba(0, 255, 136, 0.3);
    --glow-pink: 0 0 20px rgba(255, 51, 102, 0.3);
    --glow-purple: 0 0 20px rgba(99, 102, 241, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);

    /* Animation timing */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Base Reset & Typography */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Atmospheric Background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 255, 136, 0.08), transparent),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(99, 102, 241, 0.06), transparent),
        radial-gradient(ellipse 50% 50% at 0% 100%, rgba(255, 51, 102, 0.04), transparent);
    pointer-events: none;
    z-index: -1;
}

/* Animated grid pattern overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: -1;
    animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.5;
    }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-tertiary));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* ================================== */
/* PREMIUM CARD STYLES */
/* ================================== */

.premium-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.premium-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--glass-highlight) 0%, transparent 50%);
    pointer-events: none;
}

.premium-card:hover {
    transform: translateY(-2px);
    border-color: var(--glass-highlight);
}

/* Animated border gradient on hover */
.premium-card-glow {
    position: relative;
}

.premium-card-glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-tertiary), var(--accent-secondary));
    border-radius: 18px;
    z-index: -1;
    opacity: 0;
    filter: blur(8px);
    transition: opacity 0.4s var(--ease-out-expo);
}

.premium-card-glow:hover::after {
    opacity: 0.5;
}

/* ================================== */
/* BUTTON STYLES */
/* ================================== */

.btn-premium {
    position: relative;
    padding: 12px 24px;
    font-family: 'Satoshi', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.02em;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s var(--ease-out-expo);
}

.btn-over {
    background: linear-gradient(135deg, #00c853, #00ff88);
    color: #000;
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.3);
}

.btn-over:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 255, 136, 0.5);
}

.btn-under {
    background: linear-gradient(135deg, #d32f2f, #ff5252);
    color: #fff;
    box-shadow: 0 4px 20px rgba(255, 82, 82, 0.3);
}

.btn-under:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 82, 82, 0.5);
}

/* Shimmer effect on buttons */
.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-premium:hover::before {
    left: 100%;
}

/* ================================== */
/* ODDS DISPLAY */
/* ================================== */

.odds-badge {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: 18px;
    padding: 8px 16px;
    border-radius: 8px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: all 0.3s var(--ease-spring);
}

.odds-badge-over {
    color: var(--accent-primary);
    text-shadow: var(--glow-green);
}

.odds-badge-under {
    color: var(--accent-secondary);
    text-shadow: var(--glow-pink);
}

.odds-badge:hover {
    transform: scale(1.05);
    border-color: currentColor;
}

/* ================================== */
/* PROGRESS/PERCENTAGE BARS */
/* ================================== */

.percentage-bar {
    height: 8px;
    border-radius: 4px;
    background: var(--bg-secondary);
    overflow: hidden;
    position: relative;
}

.percentage-fill-over {
    height: 100%;
    background: linear-gradient(90deg, #00c853, var(--accent-primary));
    border-radius: 4px;
    position: relative;
    transition: width 0.6s var(--ease-out-expo);
}

.percentage-fill-over::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

.percentage-fill-under {
    height: 100%;
    background: linear-gradient(90deg, #d32f2f, var(--accent-secondary));
    border-radius: 4px;
    transition: width 0.6s var(--ease-out-expo);
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

@keyframes animate-shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(200%);
    }
}

.animate-shimmer {
    animation: animate-shimmer 3s infinite;
}

/* ================================== */
/* LIVE INDICATOR */
/* ================================== */

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(255, 51, 102, 0.2);
    border: 1px solid var(--accent-secondary);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent-secondary);
}

.live-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-secondary);
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 51, 102, 0.7);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.2);
        box-shadow: 0 0 0 8px rgba(255, 51, 102, 0);
    }
}

/* ================================== */
/* NAV PILLS */
/* ================================== */

.nav-pill {
    padding: 10px 20px;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.02em;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
}

.nav-pill:hover {
    color: var(--text-primary);
    background: var(--glass-bg);
    border-color: var(--glass-border);
}

.nav-pill-active {
    background: var(--accent-primary) !important;
    color: #000 !important;
    border-color: var(--accent-primary) !important;
    box-shadow: var(--glow-green);
}

/* ================================== */
/* STAGGER ANIMATIONS FOR PAGE LOAD */
/* ================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-in {
    animation: fadeInUp 0.6s var(--ease-out-expo) forwards;
    opacity: 0;
}

.animate-delay-1 {
    animation-delay: 0.1s;
}

.animate-delay-2 {
    animation-delay: 0.2s;
}

.animate-delay-3 {
    animation-delay: 0.3s;
}

.animate-delay-4 {
    animation-delay: 0.4s;
}

.animate-delay-5 {
    animation-delay: 0.5s;
}

/* ================================== */
/* CREATOR AVATAR WITH GLOW */
/* ================================== */

.avatar-glow {
    position: relative;
    display: inline-block;
}

.avatar-glow img {
    border-radius: 50%;
    border: 2px solid var(--glass-border);
    transition: all 0.3s var(--ease-out-expo);
}

.avatar-glow::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: conic-gradient(from 0deg, var(--accent-primary), var(--accent-tertiary), var(--accent-secondary), var(--accent-primary));
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    filter: blur(10px);
    animation: avatarSpin 3s linear infinite;
    transition: opacity 0.3s;
}

.avatar-glow:hover::before {
    opacity: 0.6;
}

.avatar-glow:hover img {
    border-color: var(--accent-primary);
    transform: scale(1.05);
}

@keyframes avatarSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ================================== */
/* STAT COUNTERS */
/* ================================== */

.stat-value {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 24px;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ================================== */
/* TOOLTIP */
/* ================================== */

.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 8px 12px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s var(--ease-out-expo);
}

.tooltip:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

/* ================================== */
/* PLATFORM ICONS */
/* ================================== */

.platform-icon {
    width: 20px;
    height: 20px;
    padding: 4px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.platform-icon-youtube {
    background: rgba(255, 0, 0, 0.15);
    color: #ff0000;
}

.platform-icon-twitter {
    background: rgba(29, 161, 242, 0.15);
    color: #1da1f2;
}

/* ================================== */
/* NOTIFICATION TOAST */
/* ================================== */

.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 16px 24px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-left: 4px solid var(--accent-primary);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    animation: toastSlideIn 0.4s var(--ease-spring);
    z-index: 9999;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ================================== */
/* MODAL OVERLAY */
/* ================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease-out;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    animation: modalSlideIn 0.4s var(--ease-spring);
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ================================== */
/* CHART STYLING */
/* ================================== */

.chart-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 16px;
}

/* ================================== */
/* UTILITY CLASSES */
/* ================================== */

.text-gradient {
    background: linear-gradient(135deg, var(--text-primary), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-accent {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-glow {
    border: 1px solid var(--glass-border);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.1);
}

.hover-lift {
    transition: transform 0.3s var(--ease-out-expo);
}

.hover-lift:hover {
    transform: translateY(-4px);
}