/* ============================================
   MOCK INTERVIEW STYLES
   ============================================ */

/* Interview Container */
.interview-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 10000;
    padding: 20px;
    overflow-y: auto;
}

.interview-container.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 40px;
}

/* Interview Modal */
.interview-modal {
    background: var(--card-bg);
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
    animation: interviewFadeIn 0.3s ease;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

@keyframes interviewFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Close Button */
.interview-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    color: var(--card-text);
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    padding: 5px 10px;
    line-height: 1;
    z-index: 10;
}

.interview-close:hover {
    opacity: 1;
}

/* Interview Header */
.interview-header {
    text-align: center;
    margin-bottom: 25px;
}

.interview-title {
    color: var(--header-color);
    font-size: 1.8em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.interview-subtitle {
    color: var(--card-text);
    opacity: 0.7;
    font-size: 0.95em;
}

.interview-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    color: var(--card-text);
    font-size: 0.9em;
}

.interview-progress-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Interviewer Avatar */
.interviewer-section {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.interviewer-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--badge-bg), var(--header-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    flex-shrink: 0;
}

.interviewer-bubble {
    flex: 1;
    background: var(--section-bg);
    border-radius: 15px;
    padding: 20px;
    position: relative;
}

.interviewer-bubble::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 20px;
    border-width: 10px;
    border-style: solid;
    border-color: transparent var(--section-bg) transparent transparent;
}

.interviewer-name {
    font-weight: 700;
    color: var(--header-color);
    margin-bottom: 8px;
    font-size: 0.9em;
}

.interview-question {
    color: var(--card-text);
    font-size: 1.1em;
    line-height: 1.6;
}

/* User Response Area */
.response-section {
    margin-bottom: 25px;
}

.response-label {
    font-weight: 600;
    color: var(--card-text);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.response-textarea {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    border: 2px solid var(--section-bg);
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--card-text);
    font-size: 1em;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.response-textarea:focus {
    outline: none;
    border-color: var(--badge-bg);
}

.response-textarea::placeholder {
    color: var(--card-text);
    opacity: 0.5;
}

.response-hint {
    margin-top: 8px;
    font-size: 0.85em;
    color: var(--card-text);
    opacity: 0.6;
}

.char-count {
    text-align: right;
    font-size: 0.85em;
    color: var(--card-text);
    opacity: 0.6;
    margin-top: 5px;
}

/* Interview Controls */
.interview-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.interview-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 25px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.interview-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.interview-btn-primary {
    background: var(--badge-bg);
    color: var(--badge-text);
}

.interview-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.interview-btn-secondary {
    background: var(--section-bg);
    color: var(--section-text);
}

.interview-btn-secondary:hover:not(:disabled) {
    background: var(--card-text);
    color: var(--card-bg);
}

/* Feedback Section */
.feedback-section {
    display: none;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid var(--section-bg);
}

.feedback-section.visible {
    display: block;
    animation: feedbackSlideIn 0.4s ease;
}

@keyframes feedbackSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feedback-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.feedback-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
}

.feedback-title {
    font-weight: 700;
    color: var(--header-color);
    font-size: 1.1em;
}

.feedback-subtitle {
    font-size: 0.85em;
    color: var(--card-text);
    opacity: 0.7;
}

/* Score Display */
.feedback-score {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.score-item {
    flex: 1;
    min-width: 120px;
    background: var(--section-bg);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
}

.score-value {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--header-color);
}

.score-value.excellent { color: #10b981; }
.score-value.good { color: #f59e0b; }
.score-value.needs-work { color: #ef4444; }

.score-label {
    font-size: 0.85em;
    color: var(--card-text);
    opacity: 0.8;
    margin-top: 5px;
}

/* Feedback Content */
.feedback-content {
    background: var(--section-bg);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
}

.feedback-category {
    margin-bottom: 15px;
}

.feedback-category:last-child {
    margin-bottom: 0;
}

.feedback-category-title {
    font-weight: 600;
    color: var(--header-color);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feedback-category-title.positive { color: #10b981; }
.feedback-category-title.negative { color: #ef4444; }
.feedback-category-title.suggestion { color: #f59e0b; }

.feedback-text {
    color: var(--card-text);
    line-height: 1.6;
    font-size: 0.95em;
}

/* Sample Answer */
.sample-answer {
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid #10b981;
    border-radius: 12px;
    padding: 20px;
    margin-top: 15px;
}

.sample-answer-title {
    font-weight: 700;
    color: #10b981;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sample-answer-text {
    color: var(--card-text);
    line-height: 1.6;
    font-size: 0.95em;
}

/* Settings Section */
.interview-settings {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--section-bg);
}

.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.settings-label {
    font-size: 0.9em;
    color: var(--card-text);
    font-weight: 600;
}

.difficulty-buttons {
    display: flex;
    gap: 8px;
}

.difficulty-btn {
    padding: 8px 16px;
    border: 2px solid var(--section-bg);
    border-radius: 20px;
    background: var(--card-bg);
    color: var(--card-text);
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.difficulty-btn:hover {
    border-color: var(--badge-bg);
}

.difficulty-btn.active {
    background: var(--badge-bg);
    color: var(--badge-text);
    border-color: var(--badge-bg);
}

/* Loading State */
.interview-loading {
    display: none;
    text-align: center;
    padding: 40px;
}

.interview-loading.visible {
    display: block;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--section-bg);
    border-top-color: var(--badge-bg);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    color: var(--card-text);
    font-size: 1em;
}

/* Interview Complete */
.interview-complete {
    display: none;
    text-align: center;
    padding: 30px;
}

.interview-complete.visible {
    display: block;
}

.complete-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.complete-title {
    font-size: 1.5em;
    color: var(--header-color);
    margin-bottom: 10px;
}

.complete-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
}

.complete-stat {
    text-align: center;
}

.complete-stat-value {
    font-size: 2em;
    font-weight: 700;
    color: var(--badge-bg);
}

.complete-stat-label {
    font-size: 0.85em;
    color: var(--card-text);
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .interview-modal {
        padding: 20px;
        margin: 10px;
    }

    .interview-title {
        font-size: 1.4em;
    }

    .interviewer-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .interviewer-bubble::before {
        display: none;
    }

    .interviewer-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.5em;
    }

    .feedback-score {
        flex-direction: column;
    }

    .score-item {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .interview-container {
        padding: 10px;
    }

    .interview-modal {
        padding: 15px;
    }

    .response-textarea {
        min-height: 120px;
    }

    .interview-btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .difficulty-buttons {
        width: 100%;
        justify-content: center;
    }
}
