/* ===== Mock Interview Page Styles ===== */

/* Main Section */
.interview-section {
    padding: 100px 0 80px;
    min-height: 100vh;
    background: var(--light-bg);
}

.interview-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.interview-main {
    flex: 1;
    min-width: 0;
}

.interview-container {
    max-width: 800px;
    margin: 0 auto;
}

.interview-header-text {
    text-align: center;
    margin-bottom: 2.5rem;
}

.interview-header-text h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-bg);
    margin-bottom: 0.5rem;
}

.interview-subtitle {
    font-size: 1.15rem;
    color: #64748b;
}

/* ===== Step 1: Setup Section ===== */
.setup-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.setup-card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark-bg);
}

.setup-card h2 i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.setup-card > p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.visa-select-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.visa-select-card {
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 15px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    background: white;
}

.visa-select-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 128, 23, 0.1);
}

.visa-select-card.active {
    border-color: var(--primary-color);
    background: #FEF3E6;
}

.visa-select-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: block;
}

.visa-select-card h3 {
    font-size: 1.1rem;
    color: var(--dark-bg);
    margin-bottom: 0.25rem;
}

.visa-select-card p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

.start-btn {
    width: 100%;
    max-width: 300px;
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

.start-btn i {
    margin-right: 0.5rem;
}

/* ===== Step 2: Interview Area ===== */

/* Progress Bar */
.progress-wrapper {
    margin-bottom: 1.5rem;
}

.progress-wrapper span {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-bg);
    margin-bottom: 0.5rem;
}

.progress-track {
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* Chat Area */
.chat-area {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.interviewer-bubble {
    background: var(--light-bg);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.interviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--dark-bg);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.interviewer-text {
    flex: 1;
}

.interviewer-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 0.35rem;
}

.interviewer-text p {
    font-size: 1.1rem;
    color: var(--dark-bg);
    font-weight: 500;
    margin: 0;
    line-height: 1.5;
}

/* Answer Area */
.answer-area {
    margin-bottom: 1rem;
}

#userAnswer {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

#userAnswer:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(245, 128, 23, 0.1);
}

#submitAnswerBtn {
    width: 100%;
    font-size: 1rem;
    padding: 0.85rem 1.5rem;
}

#submitAnswerBtn i {
    margin-right: 0.5rem;
}

/* Feedback Panel */
.feedback-panel {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.feedback-panel h3 {
    font-size: 1.1rem;
    color: var(--dark-bg);
    margin-bottom: 1rem;
}

.feedback-panel h3 i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.score-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.score-badge.excellent {
    background: #d1fae5;
    color: #059669;
}

.score-badge.good {
    background: #fef3c7;
    color: #d97706;
}

.score-badge.needs-work {
    background: #fee2e2;
    color: #dc2626;
}

.feedback-tip,
.feedback-flags,
.feedback-avoid {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.feedback-tip {
    background: #FEF3E6;
    color: #D86A0A;
}

.feedback-flags {
    background: #fef3c7;
    color: #92400e;
}

.feedback-avoid {
    background: #fee2e2;
    color: #991b1b;
}

.feedback-tip i,
.feedback-flags i,
.feedback-avoid i {
    margin-right: 0.4rem;
}

.feedback-flags ul,
.feedback-avoid ul {
    margin: 0.5rem 0 0 1.25rem;
    padding: 0;
}

.feedback-flags li,
.feedback-avoid li {
    margin-bottom: 0.25rem;
}

/* Next Button */
.next-btn {
    width: 100%;
    margin-top: 1rem;
    font-size: 1rem;
    padding: 0.85rem 1.5rem;
}

/* ===== Step 3: Results Section ===== */
.results-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.results-wrapper h2 {
    text-align: center;
    font-size: 1.75rem;
    color: var(--dark-bg);
    margin-bottom: 2rem;
}

.results-wrapper h2 i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* Overall Score */
.overall-score-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
}

.overall-score {
    font-size: 5rem;
    font-weight: 800;
    text-align: center;
    line-height: 1;
}

.overall-score.excellent {
    color: #059669;
}

.overall-score.good {
    color: #d97706;
}

.overall-score.needs-work {
    color: #dc2626;
}

.score-label {
    font-size: 1rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.overall-text {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--dark-bg);
}

/* Category Breakdown */
.category-breakdown {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
}

.category-breakdown h3 {
    font-size: 1.25rem;
    color: var(--dark-bg);
    margin-bottom: 1.25rem;
}

.cat-score-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.cat-label {
    min-width: 140px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-bg);
}

.cat-bar {
    flex: 1;
    height: 10px;
    background: var(--border-color);
    border-radius: 5px;
    overflow: hidden;
}

.cat-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 1s ease;
}

.cat-fill.excellent {
    background: #10b981;
}

.cat-fill.good {
    background: #f59e0b;
}

.cat-fill.needs-work {
    background: #ef4444;
}

.cat-value {
    min-width: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dark-bg);
    text-align: right;
}

/* Detailed Answer Review */
.answer-details-section {
    margin-bottom: 2rem;
}

.answer-details-section h3 {
    font-size: 1.25rem;
    color: var(--dark-bg);
    margin-bottom: 1rem;
}

.answer-review {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

.review-q {
    font-weight: 600;
    color: var(--dark-bg);
    font-size: 0.95rem;
    flex: 1;
}

.review-score {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    flex-shrink: 0;
}

.review-score.excellent {
    background: #d1fae5;
    color: #059669;
}

.review-score.good {
    background: #fef3c7;
    color: #d97706;
}

.review-score.needs-work {
    background: #fee2e2;
    color: #dc2626;
}

.review-answer {
    font-size: 0.9rem;
    color: #64748b;
    font-style: italic;
    line-height: 1.5;
}

/* Improvement Tips */
.improvement-tips {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
}

.improvement-tips h3 {
    font-size: 1.25rem;
    color: var(--dark-bg);
    margin-bottom: 1rem;
}

.improvement-tips h3 i {
    color: #f59e0b;
    margin-right: 0.5rem;
}

.improvement-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.improvement-tips li {
    padding: 0.6rem 0 0.6rem 1.75rem;
    position: relative;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.5;
}

.improvement-tips li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 0.8rem;
}

/* Results Actions */
.results-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.results-actions .btn-large {
    flex: 1;
    max-width: 250px;
    text-align: center;
}

.results-actions .btn-large i {
    margin-right: 0.5rem;
}

/* ===== Tips Sidebar ===== */
.tips-sidebar {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
}

.tip-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tip-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: #FEF3E6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.tip-icon i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.tip-card h4 {
    font-size: 1rem;
    color: var(--dark-bg);
    margin-bottom: 0.5rem;
}

.tip-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tip-card li {
    font-size: 0.85rem;
    color: #64748b;
    padding: 0.3rem 0 0.3rem 1.25rem;
    position: relative;
    line-height: 1.4;
}

.tip-card li::before {
    content: '\f111';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    font-size: 0.35rem;
    top: 0.65rem;
    color: var(--primary-color);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .interview-layout {
        flex-direction: column;
    }

    .tips-sidebar {
        width: 100%;
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .tip-card {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .interview-section {
        padding: 80px 0 60px;
    }

    .interview-header-text h1 {
        font-size: 1.75rem;
    }

    .visa-select-grid {
        grid-template-columns: 1fr;
    }

    .setup-card {
        padding: 1.5rem;
    }

    .chat-area {
        padding: 1.5rem;
        border-radius: 15px;
    }

    .interviewer-bubble {
        flex-direction: column;
        gap: 0.75rem;
    }

    .overall-score {
        font-size: 3.5rem;
    }

    .cat-score-item {
        flex-wrap: wrap;
    }

    .cat-label {
        min-width: 100%;
        margin-bottom: -0.25rem;
    }

    .review-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .results-actions {
        flex-direction: column;
    }

    .results-actions .btn-large {
        max-width: 100%;
    }

    .tips-sidebar {
        grid-template-columns: 1fr;
    }
}
