/* HRN Schedule Widget Styles */

.hrn-schedule-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}

.hrn-schedule-carousel {
    position: relative;
    padding: 20px 50px 60px 50px; /* Added 60px bottom padding for pagination */
}

.hrn-day-schedule {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 20px;
    min-height: 500px;
    max-height: 800px;
    overflow-y: auto;
}

/* Custom scrollbar for day schedule */
.hrn-day-schedule::-webkit-scrollbar {
    width: 8px;
}

.hrn-day-schedule::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.hrn-day-schedule::-webkit-scrollbar-thumb {
    background: #ffd700;
    border-radius: 4px;
}

.hrn-day-schedule::-webkit-scrollbar-thumb:hover {
    background: #ffed4e;
}

.hrn-day-title {
    text-align: center;
    color: #ffd700;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hrn-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hrn-show-block {
    position: relative;
    padding: 15px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border-left: 4px solid transparent;
    text-decoration: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

.show-image-container {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
}

.show-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.show-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.hrn-show-block:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

/* Show type styling */
.hrn-show-block.featured-show {
    background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
    border-left-color: #ffd700;
    color: white;
}

.hrn-show-block.replay {
    background: linear-gradient(135deg, #2c5f2d 0%, #1a3d1a 100%);
    border-left-color: #90ee90;
    color: white;
    opacity: 0.9;
}

.hrn-show-block.overnight {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%);
    border-left-color: #4a4a6a;
    color: #a0a0c0;
    cursor: default;
}

.hrn-show-block.overnight:hover {
    transform: none;
    box-shadow: none;
}

.hrn-show-block.open-programming {
    background: linear-gradient(135deg, #4a4a4a 0%, #2a2a2a 100%);
    border-left-color: #808080;
    color: #d0d0d0;
}

/* Currently playing highlight */
.hrn-show-block.now-playing {
    animation: pulse 2s infinite;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    border-left-color: #ffd700;
    border-left-width: 6px;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.9);
    }
}

.show-time {
    font-size: 14px;
    font-weight: bold;
    opacity: 0.8;
    margin-bottom: 5px;
    font-family: monospace;
}

.show-name {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

/* Swiper navigation */
.swiper-button-prev,
.swiper-button-next {
    color: #ffd700 !important;
    width: 40px !important;
    height: 40px !important;
}

.swiper-button-prev:after,
.swiper-button-next:after {
    font-size: 24px !important;
}

/* Swiper Pagination - Day Indicators */
.swiper-pagination {
    position: relative !important;
    bottom: 0 !important;
    margin-top: 30px !important;
    display: flex !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 15px 0 !important;
}

.swiper-pagination-bullet {
    background: #808080 !important;
    opacity: 0.7 !important;
    width: auto !important;
    height: auto !important;
    border-radius: 6px !important;
    padding: 8px 16px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    transition: all 0.3s ease !important;
}

.swiper-pagination-bullet:hover {
    background: #a0a0a0 !important;
    opacity: 0.9 !important;
}

.swiper-pagination-bullet-active {
    background: #ffd700 !important;
    opacity: 1 !important;
    color: #000000 !important;
    transform: scale(1.1) !important;
}

/* Now & Next Widget */
.hrn-now-next-widget {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.hrn-now-playing-show,
.hrn-up-next-show {
    padding: 15px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
}

.hrn-now-playing-show {
    border-left: 4px solid #ffd700;
}

.hrn-up-next-show {
    border-left: 4px solid #90ee90;
}

.hrn-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #808080;
    margin-bottom: 8px;
    font-weight: 600;
}

.hrn-current-show,
.hrn-next-show {
    font-size: 18px;
    font-weight: bold;
    color: white;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hrn-current-show .hrn-show-thumb,
.hrn-next-show .hrn-show-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    flex-shrink: 0;
}

.hrn-current-show .hrn-show-name,
.hrn-next-show .hrn-show-name {
    flex: 1;
    min-width: 0;
}


/* Responsive Design */
@media (max-width: 768px) {
    .hrn-schedule-container {
        padding: 15px;
    }
    
    .hrn-schedule-carousel {
        padding: 10px 30px 50px 30px;
    }
    
    .hrn-day-title {
        font-size: 22px;
    }
    
    .show-name {
        font-size: 16px;
    }
    
    .hrn-now-next-widget {
        grid-template-columns: 1fr;
    }
    
    .hrn-current-show,
    .hrn-next-show {
        font-size: 16px;
    }
    
    .hrn-current-show .hrn-show-thumb,
    .hrn-next-show .hrn-show-thumb {
        width: 45px;
        height: 45px;
    }
    
    .swiper-button-prev,
    .swiper-button-next {
        width: 30px !important;
        height: 30px !important;
    }
    
    .swiper-pagination {
        gap: 6px !important;
        flex-wrap: wrap !important;
    }
    
    .swiper-pagination-bullet {
        padding: 6px 12px !important;
        font-size: 12px !important;
    }
}

@media (max-width: 480px) {
    .hrn-schedule-container {
        padding: 10px;
    }
    
    .hrn-schedule-carousel {
        padding: 5px 20px 45px 20px;
    }
    
    .hrn-day-schedule {
        padding: 15px;
        min-height: 400px;
        max-height: 600px;
    }
    
    .hrn-day-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .hrn-show-block {
        padding: 12px 15px;
        gap: 10px;
    }
    
    .show-image-container {
        width: 50px;
        height: 50px;
    }
    
    .show-name {
        font-size: 14px;
    }
    
    .show-time {
        font-size: 12px;
    }
    
    .hrn-current-show,
    .hrn-next-show {
        font-size: 14px;
        gap: 10px;
    }
    
    .hrn-current-show .hrn-show-thumb,
    .hrn-next-show .hrn-show-thumb {
        width: 40px;
        height: 40px;
    }
    
    .swiper-button-prev,
    .swiper-button-next {
        width: 25px !important;
        height: 25px !important;
    }
    
    .swiper-pagination {
        gap: 4px !important;
        padding: 10px 0 !important;
    }
    
    .swiper-pagination-bullet {
        padding: 5px 10px !important;
        font-size: 11px !important;
    }
}

/* For very small screens - stack pagination vertically if needed */
@media (max-width: 360px) {
    .swiper-pagination {
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .swiper-pagination-bullet {
        width: 80px !important;
    }
}
