/* Contenedor principal con Glassmorphism */
.featured-news-aside {
    background: var(--background-secondary-color-alpha-25);
    border-radius: var(--default-border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(5px);
    height: 100%; /* Para llenar el rowspan */
}

/* Área de scroll infinito */
.news-scroller-area {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    /* Máscara para que entren y salgan con suavidad (fade) */
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}

.featured-news-track {
    display: flex;
    flex-direction: column;
    /* Forzamos el uso de la GPU */
    will-change: transform; 
    transform: translateZ(0); 
    backface-visibility: hidden;
    perspective: 1000px;
    
    animation: newsCrawlVertical 25s linear infinite;
}

.featured-news-track:hover {
    animation-play-state: paused;
}

@keyframes newsCrawlVertical {
    /* Usamos translate3d para asegurar aceleración por hardware */
    0% {
        transform: translate3d(0, 100%, 0);
    }
    100% {
        transform: translate3d(0, -100%, 0);
    }
}

/* Items individuales */
.featured-news-item {
    padding: 20px 15px;
    text-align: center; /* Opcional, para centrar el ticker */
    border-bottom: none; /* En un crawl vertical los bordes suelen sobrar */
    cursor: pointer;
}

.featured-news-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.f-news-meta { 
    font-size: 10px; 
    color: #888; 
    text-transform: uppercase; 
    letter-spacing: 0.5px;
}

.f-news-title { 
    font-size: 13px; 
    font-weight: 600; 
    color: var(--foreground-tertiary-color); 
    margin: 2px 0; 
    line-height: 1.3;
}

.f-news-subtitle { 
    font-size: 11px; 
    color: var(--foreground-primary-color); 
    opacity: 0.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Pie con botón */
.featured-news-footer {
    padding: 12px;
    text-align: center;
    background: var(--background-secondary-color-alpha-75);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-all-news {
    font-size: 11px;
    color: var(--foreground-tertiary-color);
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
}