/* web/css/styles.css */
/* Beloki AI Analytics - Premium Design System */
/* Versión: Tecnológico Amigable */

:root {
    /* Colores base más cálidos */
    --bg-primary: #0f0f1e;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #252541;
    
    /* Colores principales más suaves */
    --accent-primary: #7c3aed;  /* Violeta cálido */
    --accent-secondary: #06b6d4; /* Cyan suave */
    --accent-tertiary: #f97316; /* Naranja cálido */
    
    /* Colores de apoyo amigables */
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    --color-info: #3b82f6;
    
    /* Gradientes suaves */
    --gradient-main: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
    --gradient-warm: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    --gradient-cool: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    --gradient-special: linear-gradient(135deg, #8b5cf6, #ec4899, #06b6d4);
    
    /* Colores para deportes (más vibrantes) */
    --sport-nba: #ff6b35;
    --sport-nfl: #003f7f;
    --sport-mlb: #005a9c;
    --sport-nhl: #111827;
    --sport-soccer: #00a652;
    --sport-default: #7c3aed;
    
    /* Textos */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    /* Fondos de cards */
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-bg-hover: rgba(255, 255, 255, 0.05);
    
    /* Utilidades */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* Fondo con gradiente suave y pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at top left, rgba(124, 58, 237, 0.15) 0%, transparent 40%),
        radial-gradient(ellipse at bottom right, rgba(6, 182, 212, 0.15) 0%, transparent 40%),
        radial-gradient(ellipse at center, rgba(249, 115, 22, 0.05) 0%, transparent 50%);
    z-index: -2;
}

/* Pattern de puntos sutiles */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
}

/* Partículas suaves */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 25s infinite linear;
}

.particle:nth-child(odd) {
    animation-duration: 30s;
    opacity: 0.15;
}

@keyframes float {
    from {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.1;
    }
    90% {
        opacity: 0.1;
    }
    to {
        transform: translateY(-100px) translateX(150px) scale(1);
        opacity: 0;
    }
}

/* Header con diseño más amigable */
.header-main {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    margin: 20px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

/* Decoración animada suave */
.header-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent,
        var(--accent-primary),
        var(--accent-secondary),
        transparent);
    animation: shimmer-slow 8s ease-in-out infinite;
}

@keyframes shimmer-slow {
    0%, 100% { transform: translateX(-50%); }
    50% { transform: translateX(50%); }
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

/* Título con efecto suave */
h1 {
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 700;
    background: linear-gradient(135deg, 
        var(--text-primary) 0%,
        var(--accent-primary) 50%,
        var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

/* Badge más friendly */
.ai-badge {
    background: var(--gradient-main);
    padding: 10px 20px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 
        0 4px 14px rgba(124, 58, 237, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: gentle-glow 3s ease-in-out infinite;
}

@keyframes gentle-glow {
    0%, 100% { 
        box-shadow: 
            0 4px 14px rgba(124, 58, 237, 0.25),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% { 
        box-shadow: 
            0 4px 20px rgba(124, 58, 237, 0.35),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
}

.ai-badge i {
    font-size: 14px;
}

/* Stats Cards más amigables */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-main);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    background: var(--card-bg-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-card:hover::before {
    opacity: 1;
}

/* Iconos con colores más suaves */
.stat-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.stat-card:nth-child(1) .stat-icon {
    background: var(--gradient-main);
}

.stat-card:nth-child(2) .stat-icon {
    background: var(--gradient-success);
}

.stat-card:nth-child(3) .stat-icon {
    background: var(--gradient-warm);
}

.stat-card:nth-child(4) .stat-icon {
    background: var(--gradient-cool);
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Filtros más amigables */
.filters-container {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    margin: 20px;
}

.filter-pills {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.filter-pills:last-child {
    margin-bottom: 0;
}

.filter-pill {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    user-select: none;
}

.filter-pill:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: var(--accent-primary);
    transform: translateY(-1px);
}

.filter-pill.active {
    background: var(--gradient-main);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.25);
}

.filter-pill i {
    margin-right: 6px;
    font-size: 12px;
}

/* Pick Cards más amigables y modernos */
.picks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 24px;
    padding: 0 20px 40px;
}

@media (max-width: 840px) {
    .picks-grid {
        grid-template-columns: 1fr;
    }
}

.pick-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 28px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.pick-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--card-gradient);
    opacity: 0.8;
}

/* Colores según confianza pero más suaves */
.pick-card.confidence-high {
    --card-gradient: var(--gradient-success);
}

.pick-card.confidence-medium {
    --card-gradient: var(--gradient-warm);
}

.pick-card.confidence-low {
    --card-gradient: var(--gradient-cool);
}

.pick-card.confidence-surprise {
    --card-gradient: var(--gradient-special);
}

.pick-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px var(--accent-primary);
    background: var(--card-bg-hover);
}

/* Header del pick */
.pick-header {
    margin-bottom: 24px;
}

/* Sport badge más colorido y amigable */
.pick-sport {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pick-sport i {
    font-size: 14px;
}

.pick-sport.sport-NBA {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
}

.pick-sport.sport-NFL {
    background: linear-gradient(135deg, #003f7f, #0066cc);
}

.pick-sport.sport-MLB {
    background: linear-gradient(135deg, #005a9c, #0080ff);
}

.pick-sport.sport-SOCCER {
    background: linear-gradient(135deg, #00a652, #00d659);
}

.pick-sport.sport-default {
    background: var(--gradient-main);
}

.pick-match {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.pick-time {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.pick-time i {
    color: var(--accent-secondary);
    font-size: 12px;
}

/* Detalles del pick con diseño más limpio */
.pick-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 24px 0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.detail-row:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--accent-primary);
}

.detail-label {
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.detail-label i {
    font-size: 16px;
    color: var(--accent-primary);
}

.detail-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Sección de confianza mejorada */
.confidence-section {
    margin-top: 24px;
    padding: 20px;
    background: linear-gradient(135deg, 
        rgba(124, 58, 237, 0.05),
        rgba(6, 182, 212, 0.05));
    border-radius: 16px;
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.confidence-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.confidence-label {
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.confidence-value {
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.confidence-value.high {
    color: var(--color-success);
}

.confidence-value.medium {
    color: var(--color-warning);
}

.confidence-value.low {
    color: var(--accent-secondary);
}

.confidence-value.surprise {
    background: var(--gradient-special);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer-text 2s ease infinite;
}

@keyframes shimmer-text {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

/* Barra de confianza más visual */
.confidence-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.confidence-fill {
    height: 100%;
    border-radius: 100px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.confidence-fill.high {
    background: var(--gradient-success);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.confidence-fill.medium {
    background: var(--gradient-warm);
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.4);
}

.confidence-fill.low {
    background: var(--gradient-cool);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

.confidence-fill.surprise {
    background: var(--gradient-special);
    background-size: 200% 100%;
    animation: gradient-slide 2s linear infinite;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

@keyframes gradient-slide {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* Shine effect más suave */
.confidence-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent);
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* AI Badge más amigable */
.ai-analysis {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: var(--gradient-main);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 4px 14px rgba(124, 58, 237, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: float-smooth 4s ease-in-out infinite;
}

@keyframes float-smooth {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.ai-analysis i {
    font-size: 22px;
    color: white;
}

/* Loading Screen más amigable */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 32px;
    position: relative;
}

.loading-circle {
    position: absolute;
    border-radius: 50%;
    border: 3px solid rgba(124, 58, 237, 0.1);
}

.loading-circle:nth-child(1) {
    width: 100%;
    height: 100%;
    border-top-color: var(--accent-primary);
    animation: spin 1.5s ease-in-out infinite;
}

.loading-circle:nth-child(2) {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border-right-color: var(--accent-secondary);
    animation: spin-reverse 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes spin-reverse {
    to { transform: rotate(-360deg); }
}

.loading-text {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

/* Empty State más amigable */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    margin: 20px;
}

.empty-icon {
    font-size: 64px;
    color: var(--accent-primary);
    margin-bottom: 24px;
    opacity: 0.8;
}

.empty-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.empty-text {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

/* Toast de notificación más suave */
.notification-toast {
    position: fixed;
    top: 30px;
    right: 30px;
    background: linear-gradient(135deg, 
        rgba(124, 58, 237, 0.95),
        rgba(6, 182, 212, 0.95));
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 14px;
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.notification-toast.show {
    transform: translateX(0);
}

.notification-toast i {
    font-size: 18px;
    animation: wiggle 0.5s ease;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

/* Live Indicator más sutil */
.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ef4444;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

/* Responsive mejorado */
@media (max-width: 768px) {
    .header-main {
        padding: 24px 20px;
        margin: 12px;
        border-radius: 20px;
    }

    h1 {
        font-size: 26px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-value {
        font-size: 24px;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .filters-container {
        padding: 20px;
        margin: 12px;
    }

    .picks-grid {
        gap: 16px;
        padding: 0 12px 30px;
    }

    .pick-card {
        padding: 20px;
    }

    .pick-match {
        font-size: 18px;
    }

    .notification-toast {
        right: 12px;
        left: 12px;
        transform: translateY(-100px);
    }

    .notification-toast.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .logo-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .filter-pills {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
        margin-bottom: 16px;
    }

    .filter-pills::-webkit-scrollbar {
        height: 4px;
    }

    .filter-pills::-webkit-scrollbar-thumb {
        background: var(--accent-primary);
        border-radius: 4px;
    }
}

/* Animaciones de entrada más suaves */
.pick-card {
    animation: fadeInUp 0.6s ease backwards;
}

.pick-card:nth-child(1) { animation-delay: 0.1s; }
.pick-card:nth-child(2) { animation-delay: 0.15s; }
.pick-card:nth-child(3) { animation-delay: 0.2s; }
.pick-card:nth-child(4) { animation-delay: 0.25s; }
.pick-card:nth-child(5) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Scrollbar personalizada más sutil */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 100px;
}

::-webkit-scrollbar-thumb {
    background: rgba(124, 58, 237, 0.3);
    border-radius: 100px;
    border: 3px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(124, 58, 237, 0.5);
}

/* Focus states para accesibilidad */
button:focus,
.filter-pill:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background: rgba(124, 58, 237, 0.3);
    color: white;
}

/* Utilidades */
.text-gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Easter egg: emoji en picks sorpresa */
.surprise-emoji {
    font-size: 24px;
    animation: bounce 1s ease infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}