/* =============================================================================
   Premios Jasiel — Premium Redesign
   Features: Glassmorphism, Vibrat HSL Gradients, Smooth Animations
   ============================================================================= */

:root {
    /* Premium Palette - HSL based for better vibrancy */
    --accent-today: hsl(158, 88%, 42%);
    --accent-today-glow: hsla(158, 88%, 42%, 0.4);
    --accent-yesterday: hsl(262, 80%, 60%);
    --accent-yesterday-glow: hsla(262, 80%, 60%, 0.3);
    
    --bg-deep: hsl(222, 47%, 7%);
    --bg-surface: hsla(222, 47%, 12%, 0.7);
    --glass-bg: hsla(255, 255%, 255%, 0.05);
    --glass-border: hsla(255, 255%, 255%, 0.1);
    
    --text-main: hsl(210, 40%, 98%);
    --text-muted: hsl(215, 20%, 65%);
    
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* ===== Base Styles ===== */
body {
    background-color: var(--bg-deep);
    background-image: 
        radial-gradient(at 0% 0%, hsla(158, 88%, 42%, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, hsla(262, 80%, 60%, 0.1) 0px, transparent 50%);
    color: var(--text-main);
    font-family: 'Outfit', 'Inter', sans-serif;
}

/* ===== Glassy Header ===== */
.hero-header {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.75rem 0;
}

.brand-icon {
    background: linear-gradient(135deg, var(--accent-today), #10b981);
    box-shadow: 0 0 20px var(--accent-today-glow);
    border-radius: 12px;
}

/* ===== Premium Cards ===== */
.slide-card {
    background: var(--bg-surface);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--card-shadow);
}

.slide-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--accent-today);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.slide-card--today {
    border-top: 4px solid var(--accent-today);
}

.slide-card--yesterday {
    border-top: 4px solid var(--accent-yesterday);
}

/* ===== Responsive Grid ===== */
.slide-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    grid-template-rows: repeat(2, 1fr) !important;
    gap: 20px !important;
    padding: 15px !important;
    overflow-y: auto !important;
}

/* Tablet / Medium Screens */
@media (max-width: 1400px) {
    .slide-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
        grid-template-rows: auto !important;
    }
}

@media (max-width: 991px) {
    .slide-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .slide-card {
        padding: 15px !important;
    }
    
    .lottery-ball, 
    .lottery-ball--today, 
    .lottery-ball--yesterday, 
    .lottery-ball--pending {
        width: 65px !important;
        height: 65px !important;
        font-size: 1.5rem !important;
    }
    
    .lottery-badge {
        font-size: 1.8rem !important;
    }

    .slide-container {
        padding: 10px !important;
        height: auto !important;
    }

    /* Enable scroll on mobile */
    html, body {
        overflow: auto !important;
        height: auto !important;
        min-height: 100vh !important;
    }

    .main-content, .carousel-inner, .carousel-item, .carousel {
        height: auto !important;
        min-height: calc(100vh - 80px) !important;
        overflow: visible !important;
    }
}

/* ===== Typography ===== */
.lottery-badge {
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    width: 100%;
    margin: 10px 0;
    display: block;
    background: linear-gradient(to bottom, #fff, #94a3b8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* ===== Premium Balls ===== */
.lottery-ball {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 900;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.lottery-ball::after {
    content: '';
    position: absolute;
    top: 5%;
    left: 15%;
    width: 70%;
    height: 30%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
    border-radius: 50%;
}

.lottery-ball--today {
    background: radial-gradient(circle at 30% 30%, var(--accent-today), #064e3b);
}

.lottery-ball--yesterday {
    background: radial-gradient(circle at 30% 30%, var(--accent-yesterday), #2e1065);
}

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

.slide-grid > div {
    animation: fadeInUp 0.6s ease forwards;
}

.slide-grid > div:nth-child(1) { animation-delay: 0.1s; }
.slide-grid > div:nth-child(2) { animation-delay: 0.2s; }
.slide-grid > div:nth-child(3) { animation-delay: 0.3s; }
.slide-grid > div:nth-child(4) { animation-delay: 0.4s; }
.slide-grid > div:nth-child(5) { animation-delay: 0.5s; }
.slide-grid > div:nth-child(6) { animation-delay: 0.6s; }
.slide-grid > div:nth-child(7) { animation-delay: 0.7s; }
.slide-grid > div:nth-child(8) { animation-delay: 0.8s; }

/* ===== Status Badges ===== */
.status-badge {
    text-transform: uppercase;
    font-size: 0.65rem;
    padding: 4px 10px;
    border-radius: 50px;
    font-weight: 800;
}

.status-badge--verified {
    background: hsla(158, 88%, 42%, 0.15);
    color: var(--accent-today);
    border: 1px solid var(--accent-today);
}
