/* Professor Page Styles */
.professor-page {
    min-height: 100vh;
    background-color: #f8fafc;
}

/* Rating Badge */
.rating-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    font-size: 1.25rem;
    font-weight: bold;
    color: white;
    transition: all 0.3s ease;
}

.rating-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    color: white;
}

/* Category Tags */
.category-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 9999px;
    font-size: 0.875rem;
    color: #64748b;
    transition: all 0.3s ease;
}

.category-tag:hover {
    background: rgba(76, 175, 80, 0.1);
    color: var(--primary-color);
}

/* Factor Tags */
.factor-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 9999px;
    font-size: 0.75rem;
    color: #64748b;
}

/* Rating Colors */
.rating-excellent {
    background: linear-gradient(135deg, #4CAF50 0%, #81C784 100%);
}
.rating-no {
    background: linear-gradient(135deg, #ccc 0%, #ddd 100%);
}

.rating-good {
    background: linear-gradient(135deg, #66BB6A 0%, #A5D6A7 100%);
}

.rating-average {
    background: linear-gradient(135deg, #FFA726 0%, #FFB74D 100%);
}

.rating-poor {
    background: linear-gradient(135deg, #EF5350 0%, #E57373 100%);
}

/* Rating Distribution */
.rating-distribution .rating-excellent {
    background: #4CAF50;
}

.rating-distribution .rating-good {
    background: #66BB6A;
}

.rating-distribution .rating-average {
    background: #FFA726;
}

.rating-distribution .rating-poor {
    background: #EF5350;
}

/* Factor Card */
.factor-card {
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.factor-card:hover {
    background: rgba(76, 175, 80, 0.05);
}

/* Review Card */
.review-card {
    padding: 1.5rem;
    border-radius: 1.25rem;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: rgba(76, 175, 80, 0.2);
}

/* Rating Header */
.review-header {
    position: relative;
}

.review-header .rating-badge {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: #333;
}

/* Rating Factors */
.rating-factors {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.factor-item {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    background: white;
    border: 1px solid;
}

.factor-item.rating-excellent {
    color: #4CAF50;
    border-color: #4CAF50;
}

.factor-item.rating-good {
    color: #66BB6A;
    border-color: #66BB6A;
}

.factor-item.rating-average {
    color: #9a600a;
    border-color: #FFA726;
    background: #fff6e8;
}

.factor-item.rating-poor {
    color: #EF5350;
    border-color: #EF5350;
}

.factor-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Rating Tags */
.rating-tags {
    margin: 1rem 0;
}

.tag-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: #f8fafc;
    border-radius: 9999px;
    font-size: 0.75rem;
    color: #64748b;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.tag-button:hover {
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tag-circle {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: var(--tag-color);
}

/* Rating Comment */
.rating-comment {
    padding: 1rem;
    /* background: rgba(0, 0, 0, 0.02); */
    /* border-radius: 0.75rem; */
    margin-top: 1rem;
    border-top: 1px dashed #eee;
}

.rating-comment p {
    margin: 0;
    line-height: 1.6;
    font-size: 1.25rem;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.review-card {
    animation: slideIn 0.3s ease-out forwards;
}

/* Progress Bar Animation */
@keyframes progressFill {
    from {
        width: 0;
    }
}

.factor-item .progress-bar div {
    animation: progressFill 1s ease-out forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    .review-card {
        padding: 1rem;
    }

    .factor-item {
        padding: 0.375rem 0.625rem;
        font-size: 0.875rem;
        border-width: 1.5px;
    }

    .tag-button {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
    }
}

/* Print Styles */
@media print {
    .professor-page {
        background: white;
    }

    .rating-badge,
    .rating-pill {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .review-card,
    .factor-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
} 