/* ============================================================
   Professor Page Redesign — professor.css
   Loaded after template-used.css in professor.blade.php
   ============================================================ */

/* Fonts loaded via <link> in professor.blade.php @head */

/* ---- Base ---- */
.professor-page {
    font-family: 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ---- Card ---- */
.pr-card {
    background: #fff;
    border: 1px solid #e4eaf0;
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(28,50,79,.06), 0 1px 4px rgba(28,50,79,.05);
    margin-bottom: 16px;
    padding: 22px;
}
.pr-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #20303d;
    margin: 0 0 14px;
    letter-spacing: -.1px;
    font-family: 'Golos Text', system-ui, sans-serif;
}

/* ---- Mode bar (professor only) ---- */
.pr-mode-bar {
    background: #15233a;
    color: #cdd9ec;
    border-radius: 14px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    font-size: 13px;
}
.pr-mode-label { font-weight: 600; }
.pr-mode-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.12);
    color: #fff;
    border-radius: 8px;
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 600;
}
.pr-mode-hint {
    margin-left: auto;
    font-size: 12px;
    color: #8499b8;
}

/* ---- Hero ---- */
.pr-hero {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.pr-score-box {
    flex: 0 0 120px;
    text-align: center;
    background: #f7f9fb;
    border: 1px solid #e4eaf0;
    border-radius: 12px;
    padding: 16px 10px;
}
.pr-score-num {
    font-size: 46px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1.5px;
    display: block;
}
.pr-score-of {
    font-size: 13px;
    color: #7c8b98;
    font-weight: 500;
    margin-top: 4px;
    display: block;
}
.pr-score-stars {
    margin-top: 10px;
    font-size: 14px;
    color: #f3a712;
    display: block;
    letter-spacing: 2px;
}
.pr-hero-main { flex: 1; min-width: 0; }
.professor-page .pr-hero h1 {
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -.3px;
    margin-bottom: 8px;
    line-height: 1.2;
    font-family: 'Golos Text', system-ui, sans-serif;
}
.pr-hero-uni {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: #46596a;
    font-size: 14px;
    margin-bottom: 14px;
}
.pr-hero-uni a { color: #46596a; }
.pr-hero-uni a:hover { color: #2c6fd6; text-decoration: none; }

/* Stat chips */
.pr-stat-chips { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.pr-stat-chip {
    flex: 1;
    min-width: 90px;
    text-align: center;
    border: 1px solid #e4eaf0;
    border-radius: 10px;
    padding: 10px 8px;
    background: #fff;
}
.pr-stat-chip-v { font-size: 20px; font-weight: 800; line-height: 1; display: block; }
.pr-stat-chip-l { font-size: 11.5px; color: #7c8b98; margin-top: 4px; display: block; line-height: 1.3; }

/* Hero actions */
.pr-hero-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* Override .btn-review inside professor page */
.professor-page .btn-review,
.professor-page .rate_button.btn-review {
    background: #f4b21a;
    color: #43330a;
    border-color: #d99807;
    box-shadow: 0 2px 0 #d99807;
    border-radius: 10px;
    font-weight: 700;
    width: auto;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    font-size: 15px;
    font-family: 'Golos Text', system-ui, sans-serif;
    transition: background .15s, transform .05s, box-shadow .1s;
}
.professor-page .btn-review:hover,
.professor-page .rate_button.btn-review:hover { background: #f7bd33; border-color: #c8a200; }
.professor-page .btn-review:active { transform: translateY(1px); box-shadow: none; }

.pr-btn-ghost {
    background: #fff;
    color: #46596a;
    border: 1px solid #e4eaf0;
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    font-family: 'Golos Text', system-ui, sans-serif;
    transition: background .15s, color .15s;
}
.pr-btn-ghost:hover { background: #f7f9fb; color: #20303d; text-decoration: none; border-color: #d0d9e4; }

/* Contacts */
.pr-contacts {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e4eaf0;
    font-size: 13.5px;
    color: #46596a;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}
.pr-contacts a { color: #2c6fd6; }
.pr-contacts a:hover { text-decoration: underline; }

/* Disclaimer */
.pr-disclaimer {
    margin-top: 12px;
    background: #f7f9fb;
    border: 1px solid #e4eaf0;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 12.5px;
    color: #7c8b98;
}

/* ---- AI card ---- */
.pr-ai-card {
    background: linear-gradient(180deg, #f4f8fe 0%, #fff 100%);
    border: 1px solid #e4eaf0;
    border-radius: 18px;
    padding: 20px 22px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(28,50,79,.06);
}
.pr-ai-ico {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #eaf1fc;
    display: grid;
    place-items: center;
    font-size: 18px;
    color: #2c6fd6;
}
.pr-ai-title { font-size: 14px; font-weight: 700; color: #1f56ac; margin-bottom: 5px; }
.pr-ai-text { font-size: 14.5px; color: #46596a; line-height: 1.6; margin: 0; }
.pr-ai-text.pr-ai-generating { font-style: italic; color: #7c8b98; font-size: 13.5px; }

/* ---- Tab bar ---- */
.pr-tabs-wrap {
    background: #fff;
    border: 1px solid #e4eaf0;
    border-radius: 18px;
    margin-bottom: 16px;
    overflow: hidden;
}
.pr-tabs-bar {
    display: flex;
    border-bottom: 2px solid #e4eaf0;
    padding: 0 8px;
}
.pr-tab {
    border: 0;
    background: transparent;
    color: #46596a;
    padding: 14px 14px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    font-family: 'Golos Text', system-ui, sans-serif;
    transition: color .15s;
    white-space: nowrap;
}
.pr-tab:hover { color: #20303d; }
.pr-tab.active { color: #2c6fd6; border-bottom-color: #2c6fd6; }
.pr-tab-count {
    font-size: 11.5px;
    background: #f7f9fb;
    color: #7c8b98;
    padding: 2px 7px;
    border-radius: 999px;
    border: 1px solid #e4eaf0;
    font-weight: 500;
    line-height: 1.4;
}
.pr-tab.active .pr-tab-count { background: #eaf1fc; color: #1f56ac; border-color: transparent; }

/* Tab content spacing */
.professor-page .tab-content > .tab-pane { padding-top: 0; }

/* ---- Rating criteria ---- */
.pr-crit {
    display: grid;
    grid-template-columns: 175px 1fr 38px;
    gap: 12px;
    align-items: center;
    padding: 9px 0;
}
.pr-crit + .pr-crit { border-top: 1px solid #f0f4f8; }
.pr-crit-label { font-size: 12.5px; color: #46596a; text-align: right; line-height: 1.4; }
.pr-crit-bar { height: 8px; border-radius: 999px; background: #e4eaf0; overflow: hidden; }
.pr-crit-fill { height: 100%; border-radius: 999px; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.pr-crit-value { font-weight: 700; text-align: right; font-size: 13px; }

/* ---- Blog "coming soon" ---- */
.pr-blog-soon {
    text-align: center;
    padding: 52px 24px;
    color: #7c8b98;
}
.pr-blog-soon .pr-blog-icon {
    font-size: 44px;
    color: #2c6fd6;
    opacity: .35;
    margin-bottom: 16px;
    display: block;
}
.pr-blog-soon h3 {
    font-size: 20px;
    font-weight: 700;
    color: #46596a;
    margin-bottom: 10px;
    font-family: 'Golos Text', system-ui, sans-serif;
}
.pr-blog-soon p { font-size: 14.5px; max-width: 480px; margin: 0 auto; line-height: 1.6; }

/* Float btn: show on desktop inside professor page too */
.professor-page ~ .prof-float-btn { }

/* ---- Mobile ---- */
@media (max-width: 767px) {

    /* Hero stacks vertically */
    .pr-hero { flex-direction: column; gap: 14px; }

    /* Score box goes horizontal */
    .pr-score-box {
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        text-align: left;
        padding: 12px 16px;
        gap: 12px;
        border-radius: 10px;
        flex: none;
    }
    .pr-score-num { font-size: 38px; }
    .pr-score-of { margin-top: 0; }
    .pr-score-stars { margin-top: 0; margin-left: auto; }

    /* Stat chips */
    .pr-stat-chips { gap: 8px; }
    .pr-stat-chip { min-width: 0; padding: 8px 4px; }
    .pr-stat-chip-v { font-size: 17px; }
    .pr-stat-chip-l { font-size: 10.5px; }

    /* Sticky tabs */
    .pr-tabs-wrap {
        position: sticky;
        top: 56px;
        z-index: 20;
        border-radius: 0;
        border-left: none;
        border-right: none;
        margin-left: -5px;
        margin-right: -5px;
    }
    .pr-tab {
        flex: 1;
        justify-content: center;
        padding: 11px 4px;
        font-size: 12.5px;
        gap: 4px;
    }
    .pr-tab-count { padding: 1px 5px; font-size: 11px; }

    /* Card tweaks */
    .pr-card { border-radius: 12px; padding: 16px 14px; }
    .pr-ai-card { padding: 16px; border-radius: 14px; gap: 12px; }
    .pr-ai-ico { width: 32px; height: 32px; flex: 0 0 32px; font-size: 16px; }

    /* Rating criteria: 2-column */
    .pr-crit { grid-template-columns: 1fr 36px; gap: 8px; }
    .pr-crit-label { grid-column: 1 / -1; text-align: left; font-size: 12px; }
    .pr-crit-bar { grid-column: 1; }
}
