/**
 * Estilos Frontend para Radio Abibe Programming
 * Creado por: Emprende con Jovanny
 * Web: emprendeconjovanny.com
 */

/* Estilos base del container principal */
.rap-container {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

.rap-container * {
    box-sizing: border-box;
}

/* Header */
.rap-header {
    background: linear-gradient(135deg, #FF6B6B, #4ECDC4);
    color: white;
    padding: 30px;
    text-align: center;
    position: relative;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}

.rap-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: rap-float 6s ease-in-out infinite;
}

@keyframes rap-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.rap-header h1 {
    font-size: 2.8rem;
    font-weight: bold;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.rap-current-time {
    font-size: 1.2rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    margin: 0;
}

/* Indicador en vivo */
.rap-live-indicator {
    background: linear-gradient(45deg, #ff4757, #ff6b7a);
    color: white;
    padding: 15px 25px;
    margin: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(255, 71, 87, 0.3);
    animation: rap-pulse 2s infinite;
    position: relative;
    overflow: hidden;
}

.rap-live-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: rap-shine 3s infinite;
}

@keyframes rap-pulse {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 10px 25px rgba(255, 71, 87, 0.3); 
    }
    50% { 
        transform: scale(1.02); 
        box-shadow: 0 15px 35px rgba(255, 71, 87, 0.5); 
    }
}

@keyframes rap-shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.rap-live-indicator h3 {
    font-size: 1.3rem;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.rap-live-dot {
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    animation: rap-blink 1s infinite;
}

@keyframes rap-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.rap-live-indicator p {
    margin: 0;
    font-size: 1rem;
}

/* Pestañas */
.rap-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 3px solid #e9ecef;
    overflow-x: auto;
    flex-wrap: wrap;
}

.rap-tab {
    flex: 1;
    padding: 10px !important;
    text-align: center;
    cursor: pointer;
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
    transition: all 0.3s ease;
    position: relative;
    min-width: 120px;
}

.rap-tab:hover {
    background: linear-gradient(145deg, #e9ecef, #dee2e6);
    transform: translateY(-2px);
}

.rap-tab.active {
    background: linear-gradient(145deg, #4ECDC4, #44A08D);
    color: white;
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.3);
}

.rap-tab.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: #FF6B6B;
}

/* Contenido de programación */
.rap-programming-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0 0 20px 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.rap-day-content {
    display: none;
}

.rap-day-content.active {
    display: block;
}

/* Items de programa */
.rap-program-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.rap-program-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #4ECDC4, #44A08D);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.rap-program-item:hover {
    background: linear-gradient(135deg, #f8f9ff, #f0f8ff);
    transform: translateX(5px);
}

.rap-program-item:hover::before {
    transform: scaleY(1);
}

.rap-program-item.live {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(78, 205, 196, 0.1));
    border-left: 5px solid #ff4757;
    animation: rap-glow 2s ease-in-out infinite alternate;
}

@keyframes rap-glow {
    from { box-shadow: 0 0 10px rgba(255, 71, 87, 0.3); }
    to { box-shadow: 0 0 20px rgba(255, 71, 87, 0.6); }
}

.rap-time-block {
    min-width: 120px;
    text-align: center;
    margin-right: 25px;
    flex-shrink: 0;
}

.rap-start-time {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2c3e50;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.rap-duration {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 5px;
}

.rap-program-image-container {
    width: 80px;
    height: 80px;
    margin-right: 20px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.rap-program-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rap-program-item:hover .rap-program-thumb {
    transform: scale(1.05);
}

.rap-program-info {
    flex: 1;
}

.rap-program-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 8px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

.rap-program-description {
    color: #5a6c7d;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.rap-program-hosts {
    color: #6c757d;
    font-size: 0.9rem;
    font-style: italic;
}

.rap-live-tag {
    background: linear-gradient(45deg, #ff4757, #ff6b7a);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: 15px;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
    animation: rap-bounce 2s infinite;
    white-space: nowrap;
}

@keyframes rap-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

.rap-no-program {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
    font-style: italic;
    font-size: 1.1rem;
}

/* Widget En Vivo */
.rap-live-widget {
    font-family: 'Arial', sans-serif;
    max-width: 600px;
    margin: 0 auto;
}

.rap-live-program-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(248,249,250,0.95));
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-left: 5px solid #FF6B6B;
    position: relative;
    overflow: hidden;
}

.rap-live-program-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255,107,107,0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30px, -30px);
}

.rap-live-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    z-index: 1;
    position: relative;
}

.rap-live-indicator-dot {
    width: 12px;
    height: 12px;
    background: #FF6B6B;
    border-radius: 50%;
    animation: rap-blink 1s infinite;
}

.rap-live-text {
    font-weight: bold;
    font-size: 1.1em;
    color: #FF6B6B;
}

.rap-live-image {
    width: 120px;
    height: 120px;
    float: left;
    margin: 0 20px 20px 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.rap-program-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rap-live-content {
    position: relative;
    z-index: 1;
}

.rap-live-title {
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #2c3e50;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

.rap-live-schedule {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.rap-live-time {
    font-weight: bold;
    color: #4ECDC4;
}

.rap-live-duration {
    color: #7f8c8d;
    margin-left: 10px;
}

.rap-live-description {
    color: #5a6c7d;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 1rem;
}

.rap-live-hosts,
.rap-live-contact {
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #6c757d;
}

.rap-live-date {
    font-size: 0.9rem;
    color: #8e9297;
    font-style: italic;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.rap-live-links {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    clear: both;
}

.rap-live-link {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 120px;
}

.rap-stream-link {
    background: linear-gradient(45deg, #4ECDC4, #44A08D);
    color: white;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.rap-facebook-link {
    background: linear-gradient(45deg, #1877f2, #42a5f5);
    color: white;
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3);
}

.rap-youtube-link {
    background: linear-gradient(45deg, #ff0000, #ff4444);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.rap-live-link:hover {
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

.rap-stream-link:hover {
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.5);
}

.rap-facebook-link:hover {
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.5);
}

.rap-youtube-link:hover {
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.5);
}

/* Widget sin programa */
.rap-no-live-program {
    background: linear-gradient(135deg, rgba(248,249,250,0.95), rgba(233,236,239,0.95));
    border-radius: 15px;
    padding: 40px 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-left: 5px solid #6c757d;
}

.rap-offline-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.rap-offline-dot {
    width: 12px;
    height: 12px;
    background: #6c757d;
    border-radius: 50%;
    opacity: 0.6;
}

.rap-offline-text {
    font-weight: bold;
    font-size: 1.1em;
    color: #6c757d;
}

.rap-no-live-program p {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin: 15px 0;
}

.rap-offline-date {
    font-size: 0.9rem;
    color: #8e9297;
    font-style: italic;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

/* Tema oscuro */
.rap-container[data-theme="oscuro"] {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
}

.rap-container[data-theme="oscuro"] .rap-programming-content {
    background: rgba(52, 73, 94, 0.95);
}

.rap-container[data-theme="oscuro"] .rap-program-item {
    border-bottom-color: #34495e;
}

.rap-container[data-theme="oscuro"] .rap-program-item:hover {
    background: linear-gradient(135deg, rgba(52, 73, 94, 0.7), rgba(44, 62, 80, 0.7));
}

.rap-container[data-theme="oscuro"] .rap-program-title,
.rap-container[data-theme="oscuro"] .rap-start-time {
    color: #ecf0f1;
}

.rap-live-widget[data-theme="oscuro"] .rap-live-program-card {
    background: linear-gradient(135deg, rgba(52, 73, 94, 0.95), rgba(44, 62, 80, 0.95));
    color: #ecf0f1;
}

.rap-live-widget[data-theme="oscuro"] .rap-live-title {
    color: #ecf0f1;
}

.rap-live-widget[data-theme="oscuro"] .rap-no-live-program {
    background: linear-gradient(135deg, rgba(52, 73, 94, 0.95), rgba(44, 62, 80, 0.95));
    color: #ecf0f1;
}

/* Responsive */
@media (max-width: 768px) {
    .rap-container {
        padding: 10px;
        min-height: auto;
    }
    
    .rap-header h1 {
        font-size: 2rem;
    }
    
    .rap-program-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: 15px;
    }
    
    .rap-time-block {
        min-width: auto;
        margin-right: 0;
        margin-bottom: 15px;
        text-align: left;
    }
    
    .rap-program-image-container {
        margin-right: 0;
        margin-bottom: 15px;
        align-self: center;
    }
    
    .rap-live-tag {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .rap-tabs {
        flex-wrap: wrap;
    }
    
    .rap-tab {
        min-width: 100px;
        font-size: 0.9rem;
        padding: 15px 10px;
    }
    
    .rap-live-image {
        float: none;
        margin: 0 auto 20px auto;
        display: block;
    }
    
    .rap-live-links {
        justify-content: center;
    }
    
    .rap-live-link {
        min-width: auto;
        flex: 1;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .rap-header {
        padding: 20px;
    }
    
    .rap-header h1 {
        font-size: 1.5rem;
    }
    
    .rap-live-indicator {
        margin: 10px;
        padding: 12px 15px;
    }
    
    .rap-live-program-card,
    .rap-no-live-program {
        padding: 20px;
    }
    
    .rap-live-title {
        font-size: 1.4em;
    }
    
    .rap-live-links {
        flex-direction: column;
    }
}

/* Estilos para diferenciar Eventos Especiales */
.rap-program-item.evento-especial {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 193, 7, 0.1));
    border-left: 5px solid #FFD700;
}

.rap-event-badge {
    background: linear-gradient(45deg, #FFD700, #FFA000);
    color: #333;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-left: 10px;
}

.rap-event-date {
    color: #FF6B6B;
    font-weight: 600;
    font-size: 0.9rem;
}
/* Estilos para equipo y badges */
.rap-adjusted-badge {
    background: linear-gradient(45deg, #17a2b8, #20c997);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-left: 10px;
}

.rap-program-team {
    margin-top: 10px;
    font-size: 0.9rem;
}

.rap-team-member {
    display: inline-block;
    margin-right: 15px;
    color: #6c757d;
}

.rap-regular-badge {
    background: linear-gradient(45deg, #6c757d, #495057);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-left: 10px;
}

/* Reproductor de Audio Fijo */
.rap-player-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    z-index: 9999;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.3);
}

.rap-player-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.rap-player-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.rap-player-artwork img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.rap-current-song {
    font-weight: bold;
    font-size: 1rem;
}

.rap-current-program {
    font-size: 0.9rem;
    opacity: 0.8;
}

.rap-player-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.rap-btn-play, .rap-btn-stop {
    background: #4ECDC4;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
}

.rap-volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rap-volume-slider {
    width: 80px;
}

@media (max-width: 768px) {
    .rap-player-content {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }
    
    .rap-player-info {
        width: 100%;
    }
}