/**
 * Album Report Modal Styles
 * Adapted from main feed report modal with album-specific naming
 */

/* ============================================
   Album Report Modal Container
   ============================================ */
.album-report-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}

.album-report-modal[aria-hidden="true"] {
    display: none !important;
}

.album-report-modal[aria-hidden="false"] {
    display: flex !important;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Modal Overlay (background) */
.album-report-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

/* Modal Content Box */
.album-report-modal-content {
    position: relative;
    z-index: 2001;
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.95) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Modal Header */
.album-report-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
}

.album-report-modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.album-report-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.album-report-close:hover {
    color: #333;
    background: #f0f0f0;
    border-radius: 4px;
}

/* Form Container */
.album-report-form {
    padding: 20px;
}

/* Form Sections */
.album-report-section {
    margin-bottom: 20px;
}

.album-report-section:last-of-type {
    margin-bottom: 24px;
}

/* Section Label */
.album-report-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    font-size: 14px;
}

/* Reasons Container */
.album-report-reasons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 350px;
    overflow-y: auto;
    padding: 4px;
}

/* Individual Reason Option */
.album-report-reason {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.album-report-reason:hover {
    background: #f8f8f8;
}

.album-report-reason input[type="radio"] {
    margin-right: 12px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #4a90d9;
    flex-shrink: 0;
}

.album-report-reason input[type="radio"]:checked + .reason-text {
    color: #4a90d9;
    font-weight: 500;
}

.album-report-reason:has(input[type="radio"]:checked) {
    background: #e8f2ff;
    border-color: #4a90d9;
}

/* Reason Text */
.album-report-reason .reason-text {
    font-size: 14px;
    color: #333;
    transition: color 0.2s ease;
    line-height: 1.4;
}

/* Description Section */
#albumDescriptionSection {
    background: #f9f9f9;
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid #ff9800;
}

/* Textarea Styles */
.album-report-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 13px;
    color: #333;
    resize: vertical;
    min-height: 100px;
    transition: all 0.2s ease;
    margin-bottom: 8px;
}

.album-report-textarea:focus {
    outline: none;
    border-color: #4a90d9;
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.1);
}

.album-report-textarea::placeholder {
    color: #999;
}

/* Character Count */
.album-report-char-count {
    font-size: 12px;
    color: #999;
    text-align: right;
    margin-top: -8px;
    margin-bottom: 0;
}

/* Modal Actions (Buttons) */
.album-report-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 20px;
    border-top: 1px solid #eee;
    background: #f9f9f9;
    border-radius: 0 0 12px 12px;
}

/* Cancel Button */
.album-report-btn-cancel {
    padding: 10px 24px;
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.album-report-btn-cancel:hover {
    background: #e0e0e0;
    border-color: #999;
}

.album-report-btn-cancel:active {
    transform: translateY(1px);
}

/* Submit Button */
.album-report-btn-submit {
    padding: 10px 24px;
    background: #d32f2f;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.album-report-btn-submit:hover:not(:disabled) {
    background: #c62828;
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.album-report-btn-submit:active:not(:disabled) {
    transform: translateY(1px);
}

.album-report-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Reported Button State */
.btn-album-report.reported {
    opacity: 0.5;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 600px) {
    .album-report-modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .album-report-modal-header {
        padding: 16px;
    }

    .album-report-modal-header h2 {
        font-size: 18px;
    }

    .album-report-form {
        padding: 16px;
    }

    .album-report-actions {
        flex-direction: column-reverse;
    }

    .album-report-btn-cancel,
    .album-report-btn-submit {
        width: 100%;
    }

    .album-report-reasons {
        max-height: 300px;
    }
}

/* Scrollbar Styling */
.album-report-modal-content::-webkit-scrollbar,
.album-report-reasons::-webkit-scrollbar {
    width: 8px;
}

.album-report-modal-content::-webkit-scrollbar-track,
.album-report-reasons::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.album-report-modal-content::-webkit-scrollbar-thumb,
.album-report-reasons::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.album-report-modal-content::-webkit-scrollbar-thumb:hover,
.album-report-reasons::-webkit-scrollbar-thumb:hover {
    background: #555;
}
