/* ============================================
   TICKER DE NOTICIAS - Front End
   Albares.net
   ============================================ */

.ticker-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45px;
    background: #1a1a2e;
    display: flex;
    align-items: center;
    z-index: 999999;
    box-shadow: 0 -3px 15px rgba(0, 0, 0, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    border-top: 2px solid #e94560;
    overflow: hidden;
    transition: transform 0.4s ease;
}

.ticker-container.ticker-oculto {
    transform: translateY(100%);
}

/* Etiqueta */
.ticker-label {
    background: #e94560;
    color: #ffffff;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap;
    position: relative;
    z-index: 2;
    min-width: fit-content;
}

.ticker-label::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 0;
    width: 0;
    height: 0;
    border-top: 22.5px solid transparent;
    border-bottom: 22.5px solid transparent;
    border-left: 15px solid inherit;
}

.ticker-icon {
    font-size: 18px;
    animation: tickerPulse 2s ease-in-out infinite;
}

@keyframes tickerPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.15); }
}

/* Wrapper */
.ticker-wrapper {
    flex: 1;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 25px;
}

/* Lista */
.ticker-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    height: 100%;
}

.ticker-item {
    color: #e0e0e0;
    font-size: 14px;
    white-space: nowrap;
    padding: 0 15px;
    line-height: 45px;
    display: none;
    animation: tickerFadeIn 0.5s ease;
}

.ticker-item.active {
    display: block;
}

.ticker-item::before {
    content: '▸';
    color: #e94560;
    margin-right: 10px;
    font-size: 12px;
}

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

/* Enlaces */
.ticker-link {
    color: #82b1ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ticker-link:hover {
    color: #e94560;
    text-decoration: underline;
}

/* Controles */
.ticker-controls {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 0 10px;
    height: 100%;
}

.ticker-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ccc;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: all 0.3s ease;
    padding: 0;
    line-height: 1;
}

.ticker-btn:hover {
    background: #e94560;
    border-color: #e94560;
    color: #fff;
    transform: scale(1.1);
}

.ticker-btn:active {
    transform: scale(0.95);
}

.ticker-pause.paused {
    background: #e94560;
    border-color: #e94560;
    color: #fff;
}

.ticker-close {
    font-size: 12px;
    margin-left: 4px;
}

.ticker-close:hover {
    background: #dc3545 !important;
    border-color: #dc3545 !important;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .ticker-container {
        height: 40px;
    }

    .ticker-label {
        padding: 0 12px;
        font-size: 11px;
    }

    .ticker-label-text {
        display: none;
    }

    .ticker-label::after {
        border-top-width: 20px;
        border-bottom-width: 20px;
        border-left-width: 12px;
        right: -12px;
    }

    .ticker-item {
        font-size: 12px;
        line-height: 40px;
    }

    .ticker-btn {
        width: 26px;
        height: 26px;
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    .ticker-prev,
    .ticker-next,
    .ticker-pause {
        display: none;
    }

    .ticker-container {
        height: 36px;
    }

    .ticker-item {
        font-size: 11px;
        line-height: 36px;
    }
}

/* Padding inferior para que el ticker no tape contenido */
body {
    padding-bottom: 50px !important;
}