/* ==========================================================================
   Emergence Mag - Components Stylesheet
   ========================================================================== */

/* 1. Breaking News Ticker Animation */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.breaking-news-ticker {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.animate-marquee {
    display: inline-block;
    animation: marquee 25s linear infinite;
    white-space: nowrap;
}

.animate-marquee span,
.animate-marquee a {
    display: inline-block;
    padding-right: 2.5rem;
    color: inherit;
    text-decoration: none;
}

.animate-marquee a:hover {
    text-decoration: underline;
}

.breaking-news-ticker:hover .animate-marquee {
    animation-play-state: paused;
}

/* 2. Carousel Component */
.carousel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
    height: 100%;
}

.carousel-slide {
    flex-shrink: 0;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-slide::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.6) 60%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.carousel-slide > div {
    position: relative;
    z-index: 2;
}

.carousel-prev,
.carousel-next {
    transition: all 0.25s ease;
    backdrop-filter: blur(6px);
    z-index: 10;
    touch-action: manipulation;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: rgba(31, 48, 122, 0.9);
    transform: translateY(-50%) scale(1.08);
}

.carousel-indicators {
    z-index: 10;
}

.carousel-indicator {
    transition: all 0.3s ease;
    cursor: pointer;
}

/* 3. Mobile Navigation Drawer */
#mobile-menu {
    animation: slideDown 0.25s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 4. Article Cards & Editorial Badges */
.badge-category {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    border-radius: 2px;
    display: inline-block;
}

.badge-politique    { background-color: #1f307a; color: #fff; }
.badge-economie     { background-color: #0369a1; color: #fff; }
.badge-international{ background-color: #37a5d5; color: #fff; }
.badge-sport        { background-color: #10b981; color: #fff; }
.badge-sante        { background-color: #059669; color: #fff; }
.badge-tech         { background-color: #6366f1; color: #fff; }
.badge-societe      { background-color: #f4b217; color: #1f307a; }
.badge-culture      { background-color: #8b5cf6; color: #fff; }

/* 5. Editorial Card Hover Effects */
.article-card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

/* Image zoom on hover */
.img-zoom-container {
    overflow: hidden;
}

.img-zoom-container img {
    transition: transform 0.35s ease-out;
}

.article-card-hover:hover .img-zoom-container img {
    transform: scale(1.04);
}
