/* modal.css - Premium Glassmorphism Review & Graph Modal - Light Theme */

.modal-backdrop {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(15, 23, 42, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#graph-modal {
    background-color: rgba(120, 120, 120, 0.5);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.modal-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    width: 90%;
    max-width: 500px;
    padding: 30px;
    position: relative;
    animation: modalFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    color: #0f172a;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0f172a 40%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

.close-button {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s ease;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.close-button:hover {
    color: #0f172a;
    background-color: rgba(0, 0, 0, 0.05);
    transform: scale(1.05);
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

#modal-program-info {
    font-size: 1rem;
    color: #475569;
    background: rgba(99, 102, 241, 0.05);
    padding: 14px 18px;
    border-radius: 12px;
    border-left: 4px solid #6366f1;
    margin: 0 0 10px 0;
    line-height: 1.5;
}

#modal-university-name {
    color: #0f172a;
    font-weight: 700;
}

.review-criterion {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.review-criterion label {
    font-weight: 600;
    font-size: 0.95rem;
    color: #334155;
}

.star-rating {
    display: flex;
    gap: 8px;
    font-size: 1.6rem;
    color: rgba(0, 0, 0, 0.08); /* Empty star color */
    cursor: pointer;
}

.star {
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.star:hover {
    transform: scale(1.25);
    color: #facc15;
}

.star.rated {
    color: #ffb703; /* Vibrant warm gold rating color */
    text-shadow: 0 0 8px rgba(255, 183, 3, 0.3);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
    padding-top: 20px;
}

#submit-review {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.2);
    transition: all 0.2s ease;
    font-family: 'Outfit', sans-serif;
}

#submit-review:hover {
    background: linear-gradient(135deg, #4338ca, #4f46e5);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
}

#submit-review:active {
    transform: translateY(0);
}

.card-rating-summary {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #b45309; /* Warm gold-brown for visibility */
    background: rgba(250, 204, 21, 0.12);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(250, 204, 21, 0.25);
}

.card-rating-summary .rating-stars {
    text-shadow: 0 0 4px rgba(250, 204, 21, 0.2);
}

.card-rating-summary .rating-count {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 500;
}
