/* ============================================================
   Tutor Academic Advisor — Frontend Styles
   ============================================================ */

/* ── Badge Button ─────────────────────────────────────────── */
.taa-badge-wrap {
    display: inline-flex;
    align-items: center;
    margin-left: 12px;
}

.taa-view-recommendation {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease;
    position: relative;
}

.taa-view-recommendation:hover {
    background: #1d4ed8;
}

.taa-badge-new .taa-badge-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    position: absolute;
    top: 4px;
    right: 4px;
    animation: taa-pulse 1.4s infinite;
}

@keyframes taa-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.6; transform: scale(1.3); }
}

/* ── Modal ────────────────────────────────────────────────── */
.taa-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.taa-modal[hidden] {
    display: none;
}

.taa-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(2px);
}

.taa-modal-inner {
    position: relative;
    background: #fff;
    border-radius: 12px;
    width: min(680px, 95vw);
    max-height: 85vh;
    overflow-y: auto;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.taa-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: background 0.15s;
}

.taa-modal-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* ── Recommendation Card ──────────────────────────────────── */
.taa-recommendation-card {
    font-family: inherit;
    color: #1e293b;
}

.taa-card-header {
    text-align: center;
    margin-bottom: 28px;
}

.taa-card-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 8px;
}

.taa-card-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #0f172a;
}

.taa-card-subtitle {
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

/* ── Best Match ───────────────────────────────────────────── */
.taa-best-match {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 5px solid #2563eb;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.taa-match-badge {
    background: #2563eb;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    margin-top: 2px;
}

.taa-match-icon {
    font-size: 36px;
    line-height: 1;
    flex-shrink: 0;
}

.taa-match-name {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #0f172a;
}

.taa-match-label {
    color: #2563eb;
    font-weight: 600;
    font-size: 13px;
    margin: 0 0 8px;
}

.taa-match-description {
    color: #64748b;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

/* ── Also Consider ────────────────────────────────────────── */
.taa-other-matches {
    margin-bottom: 20px;
}

.taa-other-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin: 0 0 10px;
}

.taa-other-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.taa-other-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #64748b;
    border-radius: 8px;
    padding: 12px 16px;
}

.taa-other-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.taa-other-name {
    font-weight: 600;
    font-size: 15px;
}

.taa-other-label {
    color: #94a3b8;
    font-size: 13px;
    margin-left: 6px;
}

/* ── Score Breakdown ──────────────────────────────────────── */
.taa-scores-breakdown {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    background: #f8fafc;
}

.taa-scores-breakdown summary {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    user-select: none;
}

.taa-score-list {
    list-style: none;
    margin: 16px 0 4px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.taa-score-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.taa-score-group {
    font-size: 13px;
    font-weight: 500;
    width: 160px;
    flex-shrink: 0;
    color: #374151;
}

.taa-score-bar-wrap {
    flex: 1;
    background: #e2e8f0;
    border-radius: 20px;
    height: 18px;
    overflow: hidden;
}

.taa-score-bar {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    border-radius: 20px;
    min-width: 24px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 6px;
    transition: width 0.6s ease;
}

.taa-score-value {
    font-size: 10px;
    font-weight: 700;
    color: #fff;
}

/* ── Footer ───────────────────────────────────────────────── */
.taa-card-footer {
    text-align: center;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
}

.taa-generated-at {
    color: #94a3b8;
    font-size: 12px;
}

/* ── Misc ─────────────────────────────────────────────────── */
.taa-notice,
.taa-empty {
    color: #64748b;
    font-size: 14px;
    text-align: center;
    padding: 24px;
}

.taa-loading {
    text-align: center;
    color: #94a3b8;
    padding: 32px;
    font-size: 15px;
}
