/* Schedule page specific styles */
.schedule-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-current {
    padding: 8px 12px;
    background-color: var(--accent-blue);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-current:hover {
    background-color: #2980b9;
}

.time-zone-select {
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #2c3e50;
    background-color: rgba(0, 0, 0, 0.2);
    color: #fff;
    cursor: pointer;
}

/* Schedule grid and cells */
.schedule-grid-container {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0;
    margin-top: 20px;
    overflow-x: auto;
}

.schedule-time-labels {
    display: grid;
    grid-template-rows: auto repeat(24, 50px); /* Increased from 40px to 50px */
}

.schedule-grid {
    display: grid;
    grid-template-rows: auto repeat(24, 50px); /* Increased from 40px to 50px */
    min-width: 700px;
}

.time-label {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: bold;
    display: flex;
    align-items: center;
}

.header-row {
    height: 50px;
    background-color: rgba(0, 0, 0, 0.3);
    font-weight: bold;
}

.schedule-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.schedule-cell {
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.75rem; /* Smaller font size */
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 100%;
    word-break: break-word;
    hyphens: auto;
}

.schedule-cell:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Show type classes */
.anime-show {
    background-color: rgba(52, 152, 219, 0.4); /* Slightly more opaque */
    color: white;
    font-weight: 500;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

.instrumental {
    background-color: rgba(155, 89, 182, 0.4); /* Slightly more opaque */
    color: white;
    font-weight: 500;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

.music-mix {
    background-color: rgba(46, 204, 113, 0.4); /* Slightly more opaque */
    color: white;
    font-weight: 500;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

.jpop-show {
    background-color: rgba(241, 196, 15, 0.5); /* More opaque */
    color: black; /* Better contrast on yellow */
    font-weight: 500;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.3);
}

.flashback {
    background-color: rgba(230, 126, 34, 0.5); /* More opaque */
    color: white;
    font-weight: 500;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

.specialty {
    background-color: rgba(231, 76, 60, 0.5); /* More opaque */
    color: white;
    font-weight: 500;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

/* Current show highlight */
.schedule-cell.current-show {
    border: 2px solid var(--accent-yellow);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 2;
}

/* Show modal styling */
.show-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1002;
}

.show-modal .modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--secondary-bg);
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
}

.show-modal .close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
}

/* Description cards */
.show-description {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.descriptions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

/* Legend styling */
.schedule-legend {
    margin-bottom: 20px;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 8px;
}

.legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-right: 15px;
    margin-bottom: 10px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    margin-right: 5px;
}

.schedule-legend h4 {
    margin-bottom: 10px;
}

/* Timezone notice */
.timezone-notice {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--medium-text);
}

/* Now Playing Widget styling */
.now-playing-widget {
    background-color: var(--secondary-bg);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.current-show {
    margin-bottom: 15px;
}

.show-time {
    color: var(--medium-text);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.show-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.show-details p {
    line-height: 1.5;
    color: var(--light-text);
}

.next-show {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.next-show h4 {
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--accent-blue);
}

.next-show-time {
    color: var(--medium-text);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.next-show-title {
    font-weight: bold;
}

/* Modal content styling */
.modal-header {
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.modal-header h2 {
    margin-bottom: 5px;
    color: var(--accent-blue);
}

.modal-show-time {
    color: var(--medium-text);
    font-size: 0.9rem;
}

.modal-body {
    margin-bottom: 20px;
}

.modal-show-description {
    line-height: 1.6;
    margin-bottom: 15px;
}

.modal-show-host {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 8px;
    margin-top: 15px;
}

.modal-show-host h4 {
    margin-bottom: 5px;
    color: var(--accent-yellow);
}

.modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

.modal-footer button {
    padding: 8px 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.btn-set-reminder {
    background-color: var(--accent-green);
    color: white;
}

.btn-share-show {
    background-color: var(--accent-blue);
    color: white;
}

.btn-set-reminder:hover, .btn-share-show:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .schedule-grid-container {
        overflow-x: auto;
    }

    .schedule-cell {
        font-size: 0.7rem; /* Even smaller on mobile */
        padding: 3px;
    }

    .modal-footer {
        flex-direction: column;
    }

    .modal-footer button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .schedule-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .time-zone-select {
        margin-top: 10px;
    }
}

/* Add to schedule.css media queries section */
@media (max-width: 576px) {
    .show-modal .modal-content {
        width: 95%;
        max-height: 80vh;
        overflow-y: auto;
    }

    /* Ensure modal close button is easily tappable */
    .show-modal .close-modal {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Add to schedule.css media queries section */
@media (max-width: 768px) {
    /* Add padding-top to account for hamburger menu */
    .main-content {
        padding-top: 60px;
    }

    /* Improve schedule control positioning */
    .content-header {
        flex-wrap: wrap;
    }

    /* Better touch scrolling on schedule */
    .schedule-grid-container {
        -webkit-overflow-scrolling: touch;
        padding-bottom: 15px;
    }

    /* Make cells more tappable */
    .schedule-cell {
        min-height: 40px;
    }
}