/* ============================================
   YARARADIO TOP OCHO - ESTILOS PÚBLICOS
   ============================================ */

/* --- Fuentes --- */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Share+Tech+Mono&display=swap');

/* ============================================
   1. CONTENEDOR PRINCIPAL
   ============================================ */
.yararadio-top-ocho-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(135deg, #000000 0%, #1a0033 50%, #000000 100%);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

/* ============================================
   2. HEADER (TÍTULO Y SUBTÍTULO)
   ============================================ */
.header-section {
    text-align: center;
    margin-bottom: 25px;
}

.top-title {
    font-family: 'Orbitron', monospace;
    font-size: 28px;
    margin: 0;
    text-transform: uppercase;
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.title-top {
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    display: inline-block;
}

.title-yara {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 28px;
    display: inline-block;
}

.subtitle {
    color: #FFD700;
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    letter-spacing: 2px;
    margin-top: 5px;
}

/* ============================================
   3. LISTA DEL TOP
   ============================================ */
.top-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.top-item {
    display: grid;
    grid-template-columns: 70px 1fr 120px;
    align-items: center;
    padding: 10px 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.top-item:hover {
    transform: translateX(5px);
}

/* Estados de las filas */
.top-item.even {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.08) 0%, #000000 100%);
    border-right: 3px solid #FFD700;
}

.top-item.odd {
    background: linear-gradient(90deg, rgba(0, 102, 204, 0.08) 0%, #000000 100%);
    border-right: 3px solid #0066CC;
}

.top-item.empty-slot-item {
    background: linear-gradient(90deg, rgba(40, 167, 69, 0.1) 0%, #000000 100%);
    border-right: 3px solid #28a745;
}

/* ============================================
   4. NÚMERO DE POSICIÓN E INDICADOR DE TENDENCIA
   ============================================ */
.position-number {
    text-align: center;
}

.position-value {
    font-family: 'Orbitron', monospace;
    font-size: 24px;
    font-weight: 900;
    color: #FFD700;
    display: block;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

.top-item:hover .position-value {
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
    animation: pulse 0.5s ease;
}

.trend-indicator {
    font-size: 10px;
    margin-top: 3px;
    display: inline-block;
}

.trend-indicator.up {
    color: #00ff00;
    animation: bounce 1s ease infinite;
}

.trend-indicator.down {
    color: #ff0000;
}

.trend-indicator.same {
    color: #FFD700;
}

.trend-indicator.new {
    color: #ff00ff;
    animation: spin 2s linear infinite;
}

.trend-indicator.featured {
    color: #FFA500;
    animation: pulse 1.5s ease infinite;
}

.trend-indicator.empty {
    color: #888;
}

/* ============================================
   5. INFORMACIÓN DE LA CANCIÓN
   ============================================ */
.song-info {
    padding: 0 15px;
    min-width: 0; /* Permite que text-overflow funcione en grid */
}

.song-name {
    font-family: 'Orbitron', monospace;
    font-size: 14px;
    color: #fff;
    margin: 0 0 3px 0;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.artist-name {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    color: #FFD700;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-name.empty-slot,
.artist-name.empty-slot {
    color: #28a745;
    font-style: italic;
    opacity: 0.9;
}

/* ============================================
   6. INFORMACIÓN DE LA SEMANA ANTERIOR (CENTRADO)
   ============================================ */
.previous-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 10px;
}

.previous-label {
    color: #888;
    display: block;
    font-family: 'Share Tech Mono', monospace;
    font-size: 9px;
    margin-bottom: 4px;
    line-height: 1;
}

.previous-position {
    color: #FFD700;
    font-family: 'Orbitron', monospace;
    font-size: 12px;
    font-weight: bold;
    display: block;
    text-align: center;
    margin-top: 2px;
    line-height: 1.2;
}

/* ============================================
   7. PRONÓSTICO DE LA SEMANA
   ============================================ */
.pronostico-semana {
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(0, 102, 204, 0.1));
    border-radius: 12px;
    border: 2px solid #FFD700;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pronostico-semana:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.3);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(0, 102, 204, 0.15));
}

.pronostico-semana::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

.pronostico-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.pronostico-emoji {
    font-size: 28px;
    animation: pulse 2s infinite;
}

.pronostico-titulo {
    font-family: 'Orbitron', monospace;
    font-size: 22px; /* 🔺 Aumentado de 16px a 22px */
    font-weight: bold;
    color: #FFD700;
    letter-spacing: 2px;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
    text-transform: uppercase;
}

.pronostico-contenido {
    font-family: 'Share Tech Mono', monospace;
    font-size: 17px; /* 🔺 Aumentado de 14px a 17px */
    color: #fff;
    line-height: 1.6;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    position: relative;
    z-index: 1;
}

/* ============================================
   8. FOOTER
   ============================================ */
.footer-note {
    text-align: center;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.footer-note p {
    color: #666;
    font-family: 'Share Tech Mono', monospace;
    font-size: 9px;
    letter-spacing: 2px;
}

/* ============================================
   9. ANIMACIONES
   ============================================ */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================
   10. RESPONSIVE - TABLET (max 768px)
   ============================================ */
@media (max-width: 768px) {
    .yararadio-top-ocho-container {
        padding: 15px;
    }

    .top-title {
        font-size: 22px;
        gap: 8px;
        flex-direction: column;
        align-items: center;
    }

    .title-top,
    .title-yara {
        font-size: 24px;
    }

    .subtitle {
        font-size: 10px;
    }

    .top-item {
        grid-template-columns: 55px 1fr 100px;
        padding: 10px 12px;
        gap: 8px;
    }

    .position-value {
        font-size: 20px;
    }

    .song-name {
        font-size: 12px;
    }

    .artist-name {
        font-size: 10px;
    }

    .previous-label {
        font-size: 9px;
    }

    .previous-position {
        font-size: 11px;
    }

    .pronostico-titulo {
        font-size: 18px;
        letter-spacing: 1px;
    }

    .pronostico-contenido {
        font-size: 14px;
    }

    .pronostico-emoji {
        font-size: 22px;
    }

    .pronostico-header {
        gap: 10px;
    }
}

/* ============================================
   11. RESPONSIVE - MÓVIL (max 480px)
   ============================================ */
@media (max-width: 480px) {
    .yararadio-top-ocho-container {
        padding: 12px;
        border-radius: 10px;
    }

    .top-title {
        font-size: 18px;
        gap: 5px;
    }

    .title-top,
    .title-yara {
        font-size: 20px;
    }

    .subtitle {
        font-size: 9px;
        letter-spacing: 1px;
    }

    .top-list {
        gap: 6px;
    }

    .top-item {
        grid-template-columns: 45px 1fr 85px;
        padding: 8px 10px;
        border-radius: 8px;
    }

    .top-item:hover {
        transform: translateX(2px);
    }

    .position-value {
        font-size: 18px;
    }

    .trend-indicator {
        font-size: 9px;
    }

    .song-info {
        padding: 0 8px;
    }

    .song-name {
        font-size: 11px;
    }

    .artist-name {
        font-size: 9px;
    }

    .previous-info {
        font-size: 9px;
    }

    .previous-label {
        font-size: 8px;
        margin-bottom: 2px;
    }

    .previous-position {
        font-size: 10px;
    }

    .pronostico-semana {
        padding: 15px 10px;
        margin-top: 18px;
    }

    .pronostico-titulo {
        font-size: 15px;
        letter-spacing: 1px;
    }

    .pronostico-contenido {
        font-size: 13px;
        padding: 10px 8px;
    }

    .pronostico-emoji {
        font-size: 20px;
    }

    .pronostico-header {
        gap: 8px;
        margin-bottom: 10px;
    }
}

/* ============================================
   12. RESPONSIVE - MÓVIL PEQUEÑO (max 360px)
   ============================================ */
@media (max-width: 360px) {
    .top-item {
        grid-template-columns: 40px 1fr 75px;
        padding: 7px 8px;
    }

    .position-value {
        font-size: 16px;
    }

    .song-name {
        font-size: 10px;
    }

    .artist-name {
        font-size: 8px;
    }

    .previous-position {
        font-size: 9px;
    }

    .pronostico-titulo {
        font-size: 13px;
    }

    .pronostico-contenido {
        font-size: 12px;
    }
}