/* Modal Styles for Reviews Page */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #1a1a1a;
    margin: 2% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
}

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

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.close:hover {
    background-color: #318f10;
    transform: scale(1.1);
}

.modal-header {
    display: flex;
    gap: 20px;
    padding: 30px;
    border-bottom: 1px solid #333;
}

.modal-header img {
    width: 200px;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.modal-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.modal-meta h2 {
    color: #fff;
    font-size: 2rem;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.modal-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-info .category {
    background: linear-gradient(135deg, #318f10, #4CAF50);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    align-self: flex-start;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-info .date {
    color: #ccc;
    font-size: 1rem;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rating-value {
    background: linear-gradient(135deg, #318f10, #4CAF50);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
}

.rating-display .stars {
    display: flex;
    gap: 2px;
}

.rating-display .stars i {
    color: #FFD700;
    font-size: 1.2rem;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.modal-body {
    padding: 30px;
}

.review-text {
    color: #e0e0e0;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
}

.review-text p {
    margin-bottom: 20px;
}

.review-text p:last-child {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .modal-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }
    
    .modal-header img {
        width: 150px;
        height: 225px;
    }
    
    .modal-meta h2 {
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .review-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .modal-header img {
        width: 120px;
        height: 180px;
    }
    
    .modal-meta h2 {
        font-size: 1.3rem;
    }
    
    .close {
        top: 10px;
        right: 15px;
        font-size: 24px;
        width: 35px;
        height: 35px;
    }
}