/* University Recommendations - Shared Styles */

/* Smooth scrolling */
html { scroll-behavior: smooth; }

/* Common card transitions */
.ur-card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ur-card-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* Pulse animation for loading states */
@keyframes urPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.ur-pulse { animation: urPulse 2s ease-in-out infinite; }

/* Fade-in animation */
@keyframes urFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.ur-fade-in {
    animation: urFadeIn 0.5s ease forwards;
}

/* Score color utility classes */
.ur-color-excellent { color: #198754; }
.ur-color-good { color: #0d6efd; }
.ur-color-fair { color: #ffc107; }
.ur-color-low { color: #dc3545; }

/* Fix modal z-index to appear above navbar (z-index: 9999) */
.modal-backdrop { z-index: 10000 !important; }
.modal { z-index: 10001 !important; }

/* Fix heading color inside dark gradient headers - overrides global h1-h6 { color: #00306e } */
.ur-admin-header h1,
.ur-admin-header h2,
.ur-admin-header h3,
.ur-admin-header h4,
.ur-admin-header h5,
.ur-admin-header h6,
.ur-admin-header p,
.ur-admin-header i { color: #fff; }

/* Print styles for results */
@media print {
    .ur-results-header,
    .ur-nav-buttons,
    .ur-saving-indicator,
    .btn { display: none !important; }
    .ur-rec-card { break-inside: avoid; box-shadow: none; border: 1px solid #ddd; }
    .ur-summary-card { box-shadow: none; border: 1px solid #ddd; }
}

/* Responsive text */
@media (max-width: 768px) {
    .ur-hero-title { font-size: 2rem !important; }
    .ur-hero-description { font-size: 1rem !important; }
    .ur-section-title { font-size: 1.5rem !important; }
    .ur-rec-card-header { flex-direction: column; gap: 15px; text-align: center; }
    .ur-match-circle { margin: 0 auto; }
    .ur-info-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 576px) {
    .ur-info-grid { grid-template-columns: 1fr; }
}
