/* Schedule Section Base Styles */
.schedule-section {
    position: relative;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    padding: var(--section-padding);
    overflow: hidden;
    color: white;
}

/* Container Styles */
.schedule-section .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    box-sizing: border-box;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding: 0 var(--container-padding);
}

.section-header h2 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    line-height: 1.2;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
}

.section-header p {
    font-size: clamp(0.875rem, 2vw, 1.125rem);
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Schedule Tabs */
.schedule-tabs-wrapper {
    margin: 0 calc(-1 * var(--container-padding)) 2rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
    padding: 0 var(--container-padding);
}

.schedule-tabs-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.schedule-tabs-wrapper::-webkit-scrollbar {
    display: none;
}

.schedule-tabs {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: min-content;
    position: relative;
}

.schedule-tabs .nav-item {
    flex: 0 0 auto;
    position: relative;
}

.schedule-tabs .nav-link {
    color: rgba(255, 255, 255, 0.8);
    background: transparent;
    border: none;
    padding: clamp(0.5rem, 2vw, 0.75rem) clamp(1rem, 3vw, 1.5rem);
    border-radius: 8px;
    font-weight: 500;
    font-size: clamp(0.875rem, 2vw, 1rem);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    touch-action: manipulation;
}

.schedule-tabs .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.schedule-tabs .nav-link:hover {
    color: #fff;
}

.schedule-tabs .nav-link:hover::before {
    transform: translateY(0);
}

.schedule-tabs .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Time Slots */
.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 1.5rem;
    padding: 1rem;
    margin: 0 calc(-1 * var(--container-padding));
}

.time-slot {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: clamp(1rem, 3vw, 1.5rem);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.time-slot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.time-slot:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.time-slot:hover::before {
    opacity: 1;
}

.time-slot.current-show {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transform: scale(1.02);
}

.time-slot.current-show::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    opacity: 1;
}

.time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    width: fit-content;
}

.live-badge {
    background: #ff4444;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.time span {
    font-weight: 600;
    font-size: 1rem;
}

.time .duration {
    font-size: 0.875rem;
    opacity: 0.8;
}

.show-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: clamp(0.75rem, 2vw, 1rem);
}

.show-main {
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 2vw, 1rem);
}

.dj-profile {
    width: clamp(48px, 8vw, 64px);
    height: clamp(48px, 8vw, 64px);
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.time-slot:hover .dj-profile {
    transform: scale(1.1);
}

.dj-profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.time-slot:hover .dj-profile img {
    transform: scale(1.1);
}

.show-info-text {
    flex: 1;
    min-width: 0;
}

.show-name {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #fff;
    line-height: 1.2;
    word-wrap: break-word;
}

.dj-name {
    font-size: clamp(0.875rem, 2vw, 1rem);
    opacity: 0.9;
    display: block;
    line-height: 1.4;
}

.show-details {
    display: flex;
    flex-direction: column;
    gap: clamp(0.5rem, 1.5vw, 0.75rem);
}

.genre {
    display: inline-block;
    padding: clamp(0.25rem, 1vw, 0.375rem) clamp(0.5rem, 1.5vw, 0.75rem);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.time-slot:hover .genre {
    background: rgba(255, 255, 255, 0.2);
}

.description {
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    opacity: 0.8;
    margin: 0;
    line-height: 1.5;
    word-wrap: break-word;
}

.show-actions {
    display: flex;
    align-items: center;
    margin-top: clamp(0.75rem, 2vw, 1rem);
    padding-top: clamp(0.75rem, 2vw, 1rem);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-reminder {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: clamp(0.375rem, 1vw, 0.5rem) clamp(0.75rem, 2vw, 1rem);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: #fff;
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    width: 100%;
    justify-content: center;
    touch-action: manipulation;
}

.btn-reminder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-reminder:hover {
    transform: translateY(-2px);
}

.btn-reminder:hover::before {
    transform: translateY(0);
}

.btn-reminder.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-reminder i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.btn-reminder:hover i {
    transform: scale(1.1);
}

/* Schedule Legend */
.schedule-legend {
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 3vw, 2rem);
    margin-top: 3rem;
    flex-wrap: wrap;
    padding: clamp(0.75rem, 2vw, 1rem);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: clamp(0.75rem, 1.5vw, 0.875rem);
    opacity: 0.8;
    padding: clamp(0.375rem, 1vw, 0.5rem) clamp(0.75rem, 2vw, 1rem);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.legend-item:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.legend-item i {
    font-size: 0.75rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .schedule-section {
        padding: 5rem 0;
    }

    .section-header h2 {
        font-size: 2.25rem;
    }

    .time-slots {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 992px) {
    .schedule-section {
        padding: 4rem 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .time-slots {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 1rem;
    }

    .time-slot {
        padding: 1.25rem;
    }
}

@media (max-width: 768px) {
    .schedule-section {
        padding: 3rem 0;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    .time-slots {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0.5rem;
    }

    .time-slot {
        padding: 1rem;
    }

    .dj-profile {
        width: 56px;
        height: 56px;
    }

    .show-name {
        font-size: 1.125rem;
    }

    .schedule-legend {
        gap: 1rem;
        padding: 0.75rem;
    }
}

@media (max-width: 576px) {
    .schedule-section {
        padding: 2.5rem 0;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .section-header p {
        font-size: 0.875rem;
    }

    .schedule-tabs .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .time-slots {
        padding: 0.25rem;
    }

    .time {
        font-size: 0.875rem;
    }

    .genre {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    .description {
        font-size: 0.75rem;
    }

    .btn-reminder {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }

    .btn-reminder i {
        font-size: 0.875rem;
    }

    .schedule-legend {
        gap: 0.75rem;
        padding: 0.5rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .schedule-section {
        background: linear-gradient(-45deg, #1a1a1a, #2d2d2d, #3d3d3d, #2d2d2d);
    }

    .schedule-tabs,
    .time-slot,
    .btn-reminder,
    .schedule-legend {
        background: rgba(255, 255, 255, 0.05);
    }

    .schedule-tabs .nav-link:hover,
    .btn-reminder:hover,
    .legend-item:hover {
        background: rgba(255, 255, 255, 0.1);
    }
}

/* Print Styles */
@media print {
    .schedule-section {
        background: none;
        padding: 0;
    }

    .schedule-tabs-wrapper,
    .btn-reminder,
    .schedule-legend {
        display: none;
    }

    .time-slots {
        display: block;
        margin: 0;
        padding: 0;
    }

    .time-slot {
        break-inside: avoid;
        background: none;
        border: 1px solid #000;
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .time {
        background: none;
    }

    .genre {
        background: none;
        border: 1px solid #000;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .time-slot:hover {
        transform: none;
        box-shadow: none;
    }

    .time-slot:active {
        transform: scale(0.98);
    }

    .btn-reminder:hover {
        transform: none;
    }

    .btn-reminder:active {
        transform: scale(0.98);
    }
}

/* Safe Area Insets for Modern Mobile Devices */
@supports (padding: max(0px)) {
    .schedule-tabs-wrapper {
        padding-left: max(var(--container-padding), env(safe-area-inset-left));
        padding-right: max(var(--container-padding), env(safe-area-inset-right));
    }

    .time-slots {
        margin-left: max(calc(-1 * var(--container-padding)), calc(-1 * env(safe-area-inset-left)));
        margin-right: max(calc(-1 * var(--container-padding)), calc(-1 * env(safe-area-inset-right)));
    }
}

/* Animations */
@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
} 