/*-------------------------------------------------------+
| KFM Dark – News Carousel
| Angepasst an KFM Dark Theme
| Fonts: Syne / DM Sans | Farben: KFM Token-System
+--------------------------------------------------------*/

/* ── WRAPPER ──────────────────────────────────────────── */
.krazzfm-news-carousel-wrapper {
    margin: 32px 0;
    background: #111318;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* ── HEADER ───────────────────────────────────────────── */
.krazzfm-news-carousel-header {
    background: #181b22;
    padding: 22px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    position: relative;
}

/* Akzent-Linie oben */
.krazzfm-news-carousel-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff6b35, #ff3c7e, #00e5a0);
}

.carousel-header-content { flex: 1; }

.carousel-title {
    font-family: 'Syne', sans-serif;
    color: #f0f2f6;
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.02em;
    text-transform: none;
}

.title-icon {
    font-size: 18px;
    background: linear-gradient(135deg, #ff6b35, #ff3c7e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.carousel-subtitle {
    color: #6b7280;
    font-size: 13px;
    margin: 0;
    font-family: 'DM Sans', sans-serif;
}

/* ── CONTROLS ─────────────────────────────────────────── */
.carousel-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.carousel-control-btn {
    background: #1e2229;
    border: 1px solid rgba(255,255,255,0.07);
    color: #c8cdd8;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4,0,0.2,1);
    flex-shrink: 0;
}

.carousel-control-btn:hover {
    background: rgba(255,107,53,0.12);
    border-color: rgba(255,107,53,0.3);
    color: #ff6b35;
    transform: translateY(-1px);
}

.carousel-control-btn:active { transform: translateY(0); }
.carousel-control-btn i { font-size: 13px; }

/* ── DOTS ─────────────────────────────────────────────── */
.carousel-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4,0,0.2,1);
    border: none;
}

.carousel-dot.active {
    background: linear-gradient(90deg, #ff6b35, #ff3c7e);
    width: 24px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(255,107,53,0.4);
    animation: none; /* kein Glow-Flicker */
}

.carousel-dot:hover:not(.active) {
    background: rgba(255,107,53,0.4);
}

/* ── CAROUSEL STAGE ───────────────────────────────────── */
.krazzfm-news-carousel {
    position: relative;
    overflow: hidden;
    background: #111318;
    min-height: 400px;
}

.carousel-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.5s cubic-bezier(0.4,0,0.2,1),
                transform 0.5s cubic-bezier(0.4,0,0.2,1);
    pointer-events: none;
}

.carousel-slide.active {
    position: relative;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.carousel-slide.prev {
    transform: translateX(-60px);
}

/* ── SLIDE LAYOUT ─────────────────────────────────────── */
.slide-content {
    display: flex;
    min-height: 400px;
}

/* Bild-Sektion */
.slide-image-section {
    flex: 0 0 42%;
    position: relative;
    overflow: hidden;
    background: #0a0c10;
}

.slide-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
}

.carousel-slide.active .slide-image {
    animation: kfmZoomIn 0.7s ease-out both;
}

@keyframes kfmZoomIn {
    from { transform: scale(1.08); opacity: 0.6; }
    to   { transform: scale(1);    opacity: 1; }
}

/* Gradient-Overlay über Bild */
.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255,107,53,0.08) 0%,
        rgba(0,0,0,0.45) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}
.slide-content:hover .image-overlay { opacity: 1; }

/* Kategorie-Badge */
.slide-category-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, #ff6b35, #ff3c7e);
    color: #fff;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: 'Syne', sans-serif;
    box-shadow: 0 4px 12px rgba(255,107,53,0.35);
    animation: kfmSlideInLeft 0.5s ease-out 0.3s both;
}

@keyframes kfmSlideInLeft {
    from { transform: translateX(-40px); opacity: 0; }
    to   { transform: translateX(0);     opacity: 1; }
}

.slide-category-badge i { margin-right: 5px; }

/* Text-Sektion */
.slide-text-section {
    flex: 0 0 58%;
    padding: 36px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #111318;
    position: relative;
}

.carousel-slide.active .slide-text-section > * {
    animation: kfmSlideInRight 0.5s ease-out both;
}
.carousel-slide.active .slide-text-section > *:nth-child(1) { animation-delay: 0.15s; }
.carousel-slide.active .slide-text-section > *:nth-child(2) { animation-delay: 0.25s; }
.carousel-slide.active .slide-text-section > *:nth-child(3) { animation-delay: 0.32s; }
.carousel-slide.active .slide-text-section > *:nth-child(4) { animation-delay: 0.40s; }

@keyframes kfmSlideInRight {
    from { transform: translateX(30px); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

/* Meta-Zeile */
.slide-meta {
    display: flex;
    gap: 18px;
    margin-bottom: 14px;
    font-size: 12px;
    color: #4b5563;
    flex-wrap: wrap;
    font-family: 'DM Sans', sans-serif;
}

.slide-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.slide-meta i { color: #ff6b35; font-size: 11px; }

/* Titel */
.slide-title {
    font-family: 'Syne', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #f0f2f6;
    margin: 0 0 16px 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Auszug */
.slide-excerpt {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 28px;
    font-family: 'DM Sans', sans-serif;
}

/* Weiterlesen-Button */
.slide-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ff6b35, #ff3c7e);
    color: #fff;
    padding: 10px 22px;
    border-radius: 10px;
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.02em;
    transition: all 0.22s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 4px 16px rgba(255,107,53,0.3);
    align-self: flex-start;
}

.slide-read-more:hover {
    box-shadow: 0 8px 28px rgba(255,107,53,0.5);
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
    opacity: 0.92;
}

.slide-read-more i {
    font-size: 12px;
    transition: transform 0.22s ease;
}
.slide-read-more:hover i { transform: translateX(4px); }

/* ── FOOTER ───────────────────────────────────────────── */
.carousel-footer {
    background: #0d0f14;
    padding: 16px 28px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.view-all-news {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 20px;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 8px;
    transition: all 0.22s cubic-bezier(0.4,0,0.2,1);
}

.view-all-news:hover {
    background: rgba(255,107,53,0.08);
    border-color: rgba(255,107,53,0.25);
    color: #ff6b35;
    text-decoration: none;
    transform: translateY(-1px);
}

/* ── EMPTY STATE ──────────────────────────────────────── */
.carousel-empty {
    text-align: center;
    padding: 64px 20px;
    background: #111318;
    color: #4b5563;
}

.empty-icon {
    font-size: 56px;
    margin-bottom: 16px;
    opacity: 0.2;
}

.carousel-empty p {
    font-size: 16px;
    margin: 0;
    color: #4b5563;
    font-family: 'DM Sans', sans-serif;
}

/* ── PROFILE LINK ─────────────────────────────────────── */
.meta-author a {
    color: #4b5563;
    text-decoration: none;
    transition: color 0.22s ease;
}
.meta-author a:hover { color: #ff6b35; }

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 991px) {
    .slide-content { flex-direction: column; }
    .slide-image-section,
    .slide-text-section { flex: 0 0 100%; }
    .slide-image-section { min-height: 260px; }
    .slide-text-section { padding: 28px 24px; }
    .slide-title { font-size: 22px; }
}

@media (max-width: 767px) {
    .krazzfm-news-carousel-header { padding: 18px 20px; }
    .carousel-title { font-size: 17px; }
    .carousel-controls { width: 100%; justify-content: center; }
    .slide-text-section { padding: 22px 18px; }
    .slide-title { font-size: 19px; }
    .slide-excerpt { font-size: 13px; }
    .carousel-control-btn { width: 34px; height: 34px; }
}
