/* Hero Carousel */

.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* The scrolling track that holds all slides side by side */
.carousel-track {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
}

/* Navigation arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--mlb-blue);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
    padding: 0;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-prev {
    left: 12px;
}

.carousel-next {
    right: 12px;
}

/* Dot indicators */
.carousel-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 20;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 45, 114, 0.3);
    border: 1px solid rgba(0, 45, 114, 0.4);
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.carousel-dot.active {
    background: var(--mlb-blue);
    transform: scale(1.3);
}

/* Slide 2: budget chart controls */
#slide-budget .chart-controls {
    width: 100%;
}

.budget-y-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.budget-season-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--mlb-blue);
    letter-spacing: 0.05em;
}

/* Dark mode adjustments */
body.dark-mode .carousel-arrow {
    background: rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--text-dark);
}

body.dark-mode .carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.45);
}

body.dark-mode .carousel-dot {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

body.dark-mode .carousel-dot.active {
    background: var(--mlb-blue-light);
}

body.dark-mode .budget-season-label {
    color: var(--mlb-blue-light);
}

/* Mobile: slightly smaller arrows */
@media (max-width: 768px) {
    .carousel-arrow {
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
    }

    .carousel-prev {
        left: 6px;
    }

    .carousel-next {
        right: 6px;
    }

    .carousel-dot {
        width: 10px;
        height: 10px;
    }

    .carousel-dots {
        bottom: 10px;
        gap: 10px;
    }
}
