/* =====================================================
   SHOWCASE - Slider de noticias en tiempo real
   ===================================================== */

#showcase-container {
    position: relative;
    width: 100%;
    background: var(--color-highlight-bg);
    border: 1px solid var(--color-line-light);
    overflow: hidden;
}

/* Loading state */
.showcase-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 350px;
    gap: 15px;
    color: var(--color-text-muted);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-line-light);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Slider container */
.showcase-slider {
    position: relative;
    height: 380px;
}

.showcase-slides {
    position: relative;
    height: 100%;
}

/* Individual slide */
.showcase-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s;
}

.showcase-slide.active {
    opacity: 1;
    visibility: visible;
}

/* Image */
.showcase-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.showcase-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showcase-image-wrapper.image-error .showcase-image {
    display: none;
}

.showcase-image-wrapper.image-error::after {
    content: 'Imagen no disponible';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.showcase-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0.1) 40%,
        rgba(0,0,0,0.8) 100%
    );
}

/* Content overlay */
.showcase-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    color: white;
    z-index: 2;
}

.showcase-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.showcase-brand {
    background: var(--color-accent);
    color: white;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.showcase-status {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.showcase-status.live {
    color: #4ade80;
    animation: pulse-live 2s ease-in-out infinite;
}

.showcase-status.archived {
    color: rgba(255,255,255,0.6);
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.showcase-headline {
    font-family: var(--font-headline);
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.showcase-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.showcase-source {
    display: flex;
    align-items: center;
    gap: 8px;
}

.showcase-favicon {
    width: 16px;
    height: 16px;
    border-radius: 2px;
}

.showcase-media-name {
    font-size: 0.85rem;
    font-weight: 500;
}

.showcase-time {
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(255,255,255,0.2);
    padding: 4px 10px;
    border-radius: 3px;
}

/* Navigation arrows */
.showcase-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.showcase-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.showcase-nav svg {
    width: 20px;
    height: 20px;
    color: var(--color-text);
}

.showcase-prev {
    left: 15px;
}

.showcase-next {
    right: 15px;
}

/* Dots navigation */
.showcase-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.showcase-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.showcase-dot:hover {
    background: rgba(255,255,255,0.7);
}

.showcase-dot.active {
    background: white;
    transform: scale(1.3);
}

/* Caption */
.showcase-caption {
    padding: 10px 15px;
    background: var(--color-text);
    color: rgba(255,255,255,0.7);
    font-size: 0.7rem;
    text-align: right;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Empty/Error states */
.showcase-empty,
.showcase-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 350px;
    gap: 10px;
    text-align: center;
    padding: 30px;
}

.showcase-empty-icon,
.showcase-error-icon {
    font-size: 3rem;
}

.showcase-empty p,
.showcase-error p {
    color: var(--color-text-muted);
    margin: 0;
}

.showcase-empty-sub {
    font-size: 0.85rem;
}

.showcase-retry {
    margin-top: 10px;
    padding: 8px 20px;
    background: var(--color-accent);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.showcase-retry:hover {
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    .showcase-slider {
        height: 300px;
    }

    .showcase-headline {
        font-size: 1.1rem;
    }

    .showcase-nav {
        width: 32px;
        height: 32px;
    }

    .showcase-nav svg {
        width: 16px;
        height: 16px;
    }

    .showcase-prev {
        left: 10px;
    }

    .showcase-next {
        right: 10px;
    }
}
