/* История интервью (AI Hunt + ментор) */

.interview-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.interview-card--compact {
    padding: 20px 22px;
}

.interview-card--compact h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.interview-card--compact p {
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.6;
}

.interview-card--compact .interview-features {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.interview-card--compact .feature-item {
    font-size: 13px;
}

.interview-card--compact .btn-interview {
    padding: 12px 20px;
    font-size: 14px;
}

.interview-card--compact .info-box-interview {
    padding: 12px;
    margin-top: 12px;
}

.interview-card--compact .info-box-interview p {
    font-size: 13px;
    margin: 0;
}

.interview-history-block {
    background: var(--bg-secondary, #fff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.interview-history-block h4 {
    font-size: 15px;
    margin: 0 0 12px;
    color: var(--text-primary, #2d3748);
    display: flex;
    align-items: center;
    gap: 8px;
}

.interview-history-empty {
    color: var(--text-muted, #a0aec0);
    font-size: 13px;
    margin: 0;
}

.interview-history-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-x: hidden;
    max-width: 100%;
}

.interview-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--bg-tertiary, #edf2f7);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.15s ease;
    border: 1px solid transparent;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.interview-history-item:hover {
    background: var(--bg-hover, #e2e8f0);
    border-color: var(--color-primary, #667eea);
}

.interview-history-item-main {
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.interview-history-item-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary, #2d3748);
    margin-bottom: 2px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.interview-history-item-meta {
    font-size: 12px;
    color: var(--text-secondary, #4a5568);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.interview-history-badge {
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
    max-width: 42%;
    text-align: right;
    overflow-wrap: anywhere;
    word-break: break-word;
    padding: 4px 8px;
    border-radius: 999px;
}

.interview-history-badge.passed {
    background: rgba(72, 187, 120, 0.15);
    color: #276749;
}

.interview-history-badge.failed {
    background: rgba(229, 62, 62, 0.12);
    color: #c53030;
}

.interview-history-loading {
    font-size: 13px;
    color: var(--text-muted, #a0aec0);
}

/* Модалка деталей */
.ih-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ih-modal {
    background: #fff;
    border-radius: 20px;
    max-width: 820px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 60px rgba(79, 70, 229, 0.25);
    border: 1px solid rgba(99, 102, 241, 0.12);
}

.ih-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.06) 0%, rgba(168, 85, 247, 0.04) 100%);
}

.ih-modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.ih-modal-close {
    border: none;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
    color: #718096;
    line-height: 1;
}

.ih-modal-body {
    padding: 20px 22px;
    overflow-y: auto;
}

.ih-detail-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.ih-detail-card {
    background: #f7fafc;
    border-radius: 10px;
    padding: 12px;
}

.ih-detail-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #718096;
    margin-bottom: 4px;
}

.ih-detail-value {
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
}

.ih-feedback {
    background: rgba(66, 153, 225, 0.08);
    border-left: 4px solid #4299e1;
    padding: 14px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.7;
    white-space: pre-wrap;
}

.ih-questions-title {
    font-size: 15px;
    margin: 0 0 12px;
}

.ih-question-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 10px;
}

.ih-question-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}

.ih-question-score {
    color: #667eea;
    white-space: nowrap;
}

.ih-question-answer,
.ih-question-feedback {
    font-size: 13px;
    color: #4a5568;
    line-height: 1.6;
    margin-top: 6px;
}

.ih-question-feedback {
    color: #718096;
    font-style: italic;
}

/* Главная: секция истории */
.home-interview-history-section {
    margin-top: 32px;
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

.home-interview-history-section h2 {
    font-size: 22px;
    margin: 0 0 8px;
}

.home-interview-history-hint {
    color: #718096;
    font-size: 14px;
    margin: 0 0 20px;
}

.home-interview-history-subsections {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.home-interview-history-subsection h3 {
    font-size: 16px;
    margin: 0 0 12px;
}

@media (max-width: 768px) {
    .interview-history-item {
        flex-direction: column;
        align-items: flex-start;
    }
}
