/**
 * 🎬 RedOne Vision Content Detail Modal Styles
 * Version: 1.0.0
 * Modular modal styling system
 */

/* Content Detail Modal */
.content-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content-inner {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 20px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
    0% {
        transform: scale(0.9) translateY(30px);
        opacity: 0;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Modal Close Button */
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1001;
    backdrop-filter: blur(10px);
}

.modal-close:hover {
    background: rgba(255, 30, 40, 0.8);
    transform: scale(1.1) rotate(90deg);
}

/* Modal Header */
.modal-header {
    display: flex;
    gap: 30px;
    padding: 40px;
    align-items: flex-start;
}

.modal-poster {
    width: 220px;
    height: 330px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.modal-poster:hover {
    transform: scale(1.05);
}

.modal-info {
    flex: 1;
    color: white;
}

.modal-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #f50505, #f005b9, #f50505);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.modal-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.meta-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.meta-item i {
    color: #ff1e28;
    font-size: 0.9rem;
}

.modal-description {
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    text-align: justify;
}

/* Modal Body */
.modal-body {
    padding: 0 40px 40px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.modal-btn {
    padding: 14px 28px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.modal-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.modal-btn:hover::before {
    left: 100%;
}

.modal-btn-primary {
    background: linear-gradient(135deg, #f50505, #f005b9, #f50505);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 5, 5, 0.3);
}

.modal-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.modal-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.modal-btn-primary:hover {
    box-shadow: 0 8px 25px rgba(245, 5, 5, 0.4);
}

.modal-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.modal-btn i {
    font-size: 1rem;
}

/* Extra Details */
.modal-extra-details {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.detail-row:hover {
    background: rgba(255, 255, 255, 0.05);
    margin: 0 -15px 15px;
    padding: 12px 15px;
    border-radius: 8px;
}

.detail-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.detail-label {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    font-size: 0.95rem;
}

.detail-value {
    color: white;
    font-weight: 600;
    text-align: right;
    max-width: 60%;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .modal-content-inner {
        margin: 20px;
        width: calc(100% - 40px);
        max-height: calc(100vh - 40px);
    }
    
    .modal-header {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        gap: 20px;
    }
    
    .modal-poster {
        width: 180px;
        height: 270px;
        align-self: center;
    }
    
    .modal-title {
        font-size: 2rem;
    }
    
    .modal-meta {
        justify-content: center;
        gap: 10px;
    }
    
    .meta-item {
        font-size: 0.85rem;
        padding: 6px 10px;
    }
    
    .modal-body {
        padding: 0 20px 30px;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-btn {
        width: 100%;
        justify-content: center;
        padding: 16px 20px;
        font-size: 1rem;
    }
    
    .modal-extra-details {
        padding: 20px;
    }
    
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .detail-value {
        text-align: left;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .modal-content-inner {
        margin: 10px;
        width: calc(100% - 20px);
        max-height: calc(100vh - 20px);
        border-radius: 15px;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .modal-poster {
        width: 150px;
        height: 225px;
    }
}

/* Loading State */
.modal-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    flex-direction: column;
    gap: 15px;
}

.modal-loading .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ff1e28;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Smooth scrollbar for modal */
.modal-content-inner::-webkit-scrollbar {
    width: 8px;
}

.modal-content-inner::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.modal-content-inner::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #f50505, #f005b9);
    border-radius: 4px;
}

.modal-content-inner::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #f005b9, #f50505);
}
