/**
 * Episode Date Picker Modal Styles
 */

/* Ensure this modal appears on top of all other modals */
#episodeDatePickerModal {
    z-index: 1070;
}

/* Option buttons grid */
.edp-option-btn {
    padding: 1rem 0.5rem;
    text-align: center;
    transition: all 0.2s ease;
}

/* Smaller option buttons - 3 column layout */
.edp-option-btn-sm {
    padding: 0.5rem 0.25rem;
    font-size: 0.85rem;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.edp-option-btn-sm i {
    font-size: 1rem;
    margin-right: 0.25rem;
}

.edp-option-btn i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.edp-option-btn-sm i {
    margin-bottom: 0;
}

.edp-option-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.edp-option-btn.active {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.edp-option-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* More button styling */
.edp-more-btn {
    font-size: 0.75rem !important;
    padding: 0.3rem 0.5rem !important;
    line-height: 1;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Method/Partner button styling */
.edp-method-btn,
.edp-partner-btn {
    font-size: 0.8rem;
    padding: 0.35rem 0.5rem;
}

.edp-method-btn img {
    height: 20px;
    max-width: 40px;
    object-fit: contain;
}

/* Action buttons in footer */
.edp-action-btns .btn {
    padding: 0.35rem 0.5rem;
}

.edp-action-btns .btn:hover {
    color: #0d6efd;
    border-color: #0d6efd;
}

/* Review button active state */
#edpReviewBtn.has-review {
    color: #fff;
    border-color: orange;
    background-color: orange;
}

/* RIYL button active state */
#edpRiylBtn.has-riyl {
    color: #fff;
    border-color: #6f42c1;
    background-color: #6f42c1;
}

/* Note button active state */
#edpNoteBtn.has-note {
    color: #0d6efd;
    border-color: #0d6efd;
    background-color: #e7f1ff;
}

/* Selected display */
#edpSelectedDisplay {
    font-size: 0.9rem;
}

#edpSelectedDisplay i {
    color: #0d6efd;
}

/* Time link in selected display */
#edpTimeLink {
    color: #0d6efd;
    border-bottom: 1px dashed #0d6efd;
    cursor: pointer;
}

#edpTimeLink:hover {
    opacity: 0.8;
}

#edpTimeInput {
    font-size: 0.85rem;
    padding: 0.15rem 0.35rem;
    vertical-align: middle;
}

/* Modal header */
#episodeDatePickerModal .modal-header {
    background: linear-gradient(135deg, #198754, #20c997);
}

/* Episode title display */
#edpEpisodeTitle {
    font-size: 1.1rem;
    color: #333;
}

#edpReleaseInfo {
    font-size: 0.85rem;
}

/* Date/Year picker sections */
#edpDatePickerSection,
#edpYearPickerSection {
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 0.375rem;
}

#edpDatePickerSection .form-label,
#edpYearPickerSection .form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .edp-option-btn {
        padding: 0.75rem 0.25rem;
        font-size: 0.85rem;
    }

    .edp-option-btn i {
        font-size: 1.25rem;
    }
}

/* ========================================
   DARK MODE OVERRIDES
   ======================================== */

[data-bs-theme="dark"] #edpEpisodeTitle {
    color: var(--mv-text-primary);
}
[data-bs-theme="dark"] #edpDatePickerSection,
[data-bs-theme="dark"] #edpYearPickerSection {
    background-color: var(--mv-bg-surface);
}
[data-bs-theme="dark"] #edpNoteBtn.has-note {
    background-color: rgba(13, 110, 253, 0.15);
}
[data-bs-theme="dark"] #edpTimeLink {
    color: #6ea8fe;
    border-bottom-color: #6ea8fe;
}
