
/* Base Styles */
.search-results-container {
max-width: 1200px;
margin: 2rem auto;
padding: 0 1.5rem;
}

.search-header {
margin-bottom: 2rem;
}

.search-header h2 {
font-size: 1.8rem;
color: var(--dark);
margin-bottom: 0.5rem;
}

.results-count {
color: var(--gray);
font-size: 0.95rem;
}

/* Results Grid */
.results-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
gap: 1.5rem;
}

/* Teacher Card */
.teacher-card {
background: white;
border-radius: 0.8rem;
padding: 1.5rem;
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.teacher-card:hover {
transform: translateY(-3px);
box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.teacher-link {
text-decoration: none;
color: inherit;
display: flex;
gap: 1.5rem;
}

.teacher-main {
flex: 1;
}

.teacher-name {
font-weight: 600;
font-size: 1.1rem;
color: var(--dark);
margin-bottom: 0.25rem;
}

.teacher-department {
font-size: 0.9rem;
color: var(--primary);
margin-bottom: 0.25rem;
}

.teacher-university {
font-size: 0.85rem;
color: var(--gray);
}

.teacher-ratings {
display: flex;
flex-direction: column;
align-items: flex-end;
min-width: 120px;
}


.rating-badge.quality {
background-color: hsla(225, 86%, 60%, 0.1);
}

.rating-label {
font-size: 0.7rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--gray);
}


.rating-count {
font-size: 0.7rem;
color: var(--gray);
}

.teacher-stats {
display: flex;
gap: 1rem;
}

.stat-item {
text-align: center;
}

.stat-percent, .stat-value {
font-weight: 600;
color: var(--dark);
display: block;
line-height: 1.2;
}

.stat-label {
font-size: 0.7rem;
color: var(--gray);
white-space: nowrap;
}

.no-ratings {
font-size: 0.85rem;
color: var(--gray);
padding: 0.5rem;
text-align: center;
}

/* Course Card */
.course-card {
background: white;
border-radius: 0.8rem;
padding: 1.5rem;
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-card:hover {
transform: translateY(-3px);
box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.course-link {
text-decoration: none;
color: inherit;
}

.course-name {
font-weight: 600;
font-size: 1.1rem;
color: var(--dark);
margin-bottom: 0.75rem;
}

.course-teachers {
font-size: 0.9rem;
color: var(--gray);
margin-bottom: 0.25rem;
}

.more-teachers {
font-size: 0.8rem;
color: var(--primary);
}

/* University Card */
.university-card {
background: white;
border-radius: 0.8rem;
padding: 1.5rem;
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.university-card:hover {
transform: translateY(-3px);
box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.university-link {
text-decoration: none;
color: inherit;
display: flex;
flex-direction: column;
height: 100%;
}

.university-logo {
max-height: 60px;
max-width: 100%;
margin-bottom: 1rem;
object-fit: contain;
}

.university-name {
font-weight: 600;
font-size: 1.1rem;
color: var(--dark);
margin-bottom: 1rem;
flex-grow: 1;
}

.university-stats {
display: flex;
gap: 1.5rem;
}

/* No Results */
.no-results {
text-align: center;
padding: 3rem 0;
}

.no-results-icon {
font-size: 3rem;
margin-bottom: 1rem;
opacity: 0.5;
}

.no-results h3 {
font-size: 1.5rem;
color: var(--dark);
margin-bottom: 0.5rem;
}

.no-results p {
color: var(--gray);
}


.no-reviews-box {
background-color: var(--light) !important;
padding: 0.8rem 1.2rem; /* More padding */
border-radius: 0.8rem; /* Smoother corners */
text-align: center;
min-width: 100px; /* Wider boxes */
flex: 1; /* Equal width */
max-width: 120px;
}


.no-reviews-box .score-value {
color: var(--gray);
}

/* Responsive */
@media (max-width: 768px) {
.results-grid {
    grid-template-columns: 1fr;
}

.teacher-link {
    flex-direction: column;
    gap: 1rem;
}

.teacher-ratings {
    align-items: flex-start;
}

.teacher-stats {
    justify-content: space-between;
}
}
