:root {
    /* Light Theme Palette */
    --primary-color: #F59E0B;
    /* Amber 500 */
    --secondary-color: #3B82F6;
    /* Blue 500 */
    --bg-main: #F8FAFC;
    /* Slate 50 */
    --bg-card: #FFFFFF;
    --text-main: #1E293B;
    /* Slate 800 */
    --text-muted: #64748B;
    /* Slate 500 */

    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);

    --status-cheap: #22c55e;
    /* Green 500 */
    --status-avg: #f59e0b;
    /* Amber 500 */
    --status-expensive: #ef4444;
    /* Red 500 */

    --font-main: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Effects (Subtle for Light Mode) */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, #e0f2fe, #f8fafc);
    z-index: -2;
}

.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
    opacity: 0.3;
    animation: floatOrb 20s infinite alternate ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: #fde68a;
    /* Amber 200 */
    top: -100px;
    right: -100px;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: #bae6fd;
    /* Sky 200 */
    bottom: -50px;
    left: -50px;
    animation-delay: -5s;
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 50px);
    }
}

/* Layout */
.app-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Glassmorphism Utilities */
.glass-header,
.glass-card,
.glass-footer {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
}

/* Header */
.glass-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
}

.logo .highlight {
    color: var(--primary-color);
}

.date-display {
    color: var(--text-muted);
    font-weight: 600;
}

/* Hero Section (Centered) */
.hero-section {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.main-card {
    padding: 3rem;
    text-align: center;
    width: 100%;
    max-width: 600px;
    position: relative;
    overflow: hidden;
}

.main-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--status-cheap), var(--status-avg), var(--status-expensive));
}

.card-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-direction: column;
}

.badge {
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.05);
}

.price-display {
    font-size: 6rem;
    font-weight: 800;
    line-height: 1;
    margin: 1.5rem 0;
    color: var(--text-main);
}

.price-display .currency {
    font-size: 3rem;
    vertical-align: top;
    color: var(--text-muted);
}

.price-display .unit {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 400;
}

.subtext {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Horizontal Strip Section */
.strip-section {
    margin-bottom: 2rem;
}

.strip-section h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--text-muted);
    text-align: center;
}

.hourly-strip {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0.5rem 2.5rem 0.5rem;
    /* Bottom padding for scrollbar/shadow */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar for cleaner look but keep functionality */
.hourly-strip::-webkit-scrollbar {
    height: 12px;
}

.hourly-strip::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.hourly-strip::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.traffic-light-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 80px;
    flex-shrink: 0;
}

.light-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.traffic-light-item:hover .light-circle {
    transform: scale(1.1);
}

.light-circle.green {
    background: var(--status-cheap);
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
}

.light-circle.orange {
    background: var(--status-avg);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

.light-circle.red {
    background: var(--status-expensive);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

.traffic-light-item .time {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.traffic-light-item.current .time {
    color: var(--text-main);
    font-weight: 800;
    text-decoration: underline;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: var(--glass-bg);
}

.stat-card .icon {
    font-size: 2rem;
    background: rgba(0, 0, 0, 0.05);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.stat-card .info h3 {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

/* Chart Section */
.chart-section {
    padding: 2rem;
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.legend {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

.dot.cheap {
    background: var(--status-cheap);
}

.dot.avg {
    background: var(--status-avg);
}

.dot.expensive {
    background: var(--status-expensive);
}

.chart-container {
    height: 300px;
    width: 100%;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.tips-card,
.breakdown-card {
    padding: 2rem;
}

.tips-card h2,
.breakdown-card h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.tips-list {
    list-style: none;
}

.tips-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tips-list .emoji {
    font-size: 1.5rem;
    background: rgba(0, 0, 0, 0.05);
    padding: 10px;
    border-radius: 12px;
    height: fit-content;
}

.schedule-item {
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid;
}

.schedule-item.valle {
    border-color: var(--status-cheap);
}

.schedule-item.llano {
    border-color: var(--status-avg);
}

.schedule-item.punta {
    border-color: var(--status-expensive);
}

.schedule-item .time-range {
    font-weight: 700;
    font-size: 1.1rem;
}

.schedule-item .label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

/* Footer */
.glass-footer {
    text-align: center;
    padding: 2rem;
    margin-bottom: 2rem;
}

.disclaimer {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* SUN ANIMATION */
.sun-wrapper {
    position: fixed;
    top: 50px;
    right: 50px;
    width: 120px;
    height: 120px;
    z-index: 50;
    pointer-events: none;
}

.sun {
    width: 100%;
    height: 100%;
    position: relative;
    animation: pulseSun 3s infinite ease-in-out;
}

.sun .face {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at 30% 30%, #FCD34D, #F59E0B);
    /* Lighter Yellow/Orange */
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.4);
    z-index: 2;
}

.sun .rays {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110px;
    height: 110px;
    background: repeating-conic-gradient(from 0deg,
            rgba(245, 158, 11, 0) 0deg,
            rgba(245, 158, 11, 0.2) 10deg,
            rgba(245, 158, 11, 0) 20deg);
    border-radius: 50%;
    animation: rotateRays 20s linear infinite;
    z-index: 1;
}

.eyes {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 16px;
}

.eye {
    width: 10px;
    height: 10px;
    background: #1e293b;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
}

.pupil {
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
}

.mouth {
    position: absolute;
    bottom: 25%;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 12px;
    border-bottom: 3px solid #1e293b;
    border-radius: 0 0 20px 20px;
}

.cheeks {
    position: absolute;
    top: 55%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 12px;
}

.cheek {
    width: 8px;
    height: 5px;
    background: rgba(239, 68, 68, 0.2);
    border-radius: 50%;
}

@keyframes pulseSun {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes rotateRays {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Headline Section */
.headline-section {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
}

#main-headline {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-main);
}

.headline-highlight {
    padding: 0 0.5rem;
    border-radius: 8px;
    display: inline-block;
}

.headline-highlight.yes {
    color: #15803d;
    /* Strong Green */
    background: rgba(34, 197, 94, 0.2);
}

.headline-highlight.no {
    color: #b91c1c;
    /* Strong Red */
    background: rgba(239, 68, 68, 0.2);
}

/* Info Grid Single Column */
.info-grid.single-col {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

/* Responsive */
@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .sun-wrapper {
        width: 100px;
        height: 100px;
        top: 20px;
        right: 20px;
    }

    .sun .face {
        width: 70px;
        height: 70px;
    }

    .sun .rays {
        width: 100px;
        height: 100px;
    }
}

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

    .info-grid {
        grid-template-columns: 1fr;
    }

    .price-display {
        font-size: 4rem;
    }

    .sun-wrapper {
        display: none;
    }

    #main-headline {
        font-size: 1.8rem;
    }
}