/**
 * ═══════════════════════════════════════════════════════════════════════════
 * INTERVIEW PREPARATION - Styling
 * ═══════════════════════════════════════════════════════════════════════════
 */

/* Container */
.interview-prep-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 100px 20px 40px;
}

/* Header */
.interview-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 40px;
}

.header-title h1 {
    margin: 0 0 8px 0;
    font-size: 2rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-title h1 i {
    color: #6366f1;
}

.header-title p {
    margin: 0;
    color: #64748b;
}

/* Sections */
.interview-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.interview-section h2 {
    margin: 0 0 20px 0;
    font-size: 1.3rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.interview-section h2 i {
    color: #6366f1;
}

.section-description {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* Application Selector */
.application-selector {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.application-selector select {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    background: white;
}

.or-divider {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Manual Entry Form */
.manual-entry-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.manual-entry-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.manual-entry-form .form-group.full-width {
    grid-column: 1 / -1;
}

.manual-entry-form label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #475569;
}

.manual-entry-form input,
.manual-entry-form textarea {
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
}

/* Generate Button */
.btn-generate {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.loading-state .loading-animation {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.loading-state .loading-animation i {
    font-size: 2.5rem;
    color: white;
}

.loading-state h3 {
    margin: 0 0 8px 0;
    color: #1e293b;
}

.loading-state p {
    margin: 0;
    color: #64748b;
}

/* Questions List */
.questions-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.question-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #6366f1;
    transition: all 0.2s;
}

.question-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.question-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.question-number {
    width: 28px;
    height: 28px;
    background: #6366f1;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
}

.question-category {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.question-category.motivation { background: #dbeafe; color: #1e40af; }
.question-category.erfahrung { background: #dcfce7; color: #166534; }
.question-category.fachlich { background: #fef3c7; color: #92400e; }
.question-category.persönlich { background: #fce7f3; color: #9d174d; }
.question-category.situativ { background: #e0e7ff; color: #4338ca; }
.question-category.allgemein { background: #f1f5f9; color: #475569; }

.question-difficulty {
    font-size: 0.75rem;
    color: #64748b;
}

.question-difficulty.leicht::before { content: "🟢 "; }
.question-difficulty.mittel::before { content: "🟡 "; }
.question-difficulty.schwer::before { content: "🔴 "; }

.question-text {
    margin: 0 0 12px 0;
    font-size: 1.1rem;
    color: #1e293b;
    line-height: 1.5;
}

.question-hint {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 8px;
    margin-bottom: 12px;
}

.question-hint i {
    color: #f59e0b;
    margin-top: 2px;
}

.question-hint span {
    font-size: 0.9rem;
    color: #92400e;
}

.question-answer {
    margin-top: 12px;
}

.toggle-answer-btn {
    background: none;
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #6366f1;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.toggle-answer-btn:hover {
    background: #6366f1;
    color: white;
    border-color: #6366f1;
}

.answer-content {
    margin-top: 12px;
    padding: 14px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.answer-content p {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

/* STAR Answers */
.star-answers {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.star-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
}

.star-item {
    display: flex;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.star-item:last-child {
    border-bottom: none;
}

.star-label {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.star-content strong {
    display: block;
    font-size: 0.8rem;
    color: #6366f1;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.star-content p {
    margin: 0;
    color: #475569;
    line-height: 1.5;
}

/* Analysis Grid */
.analysis-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.analysis-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
}

.analysis-card h3 {
    margin: 0 0 16px 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.analysis-card.strengths h3 {
    color: #10b981;
}

.analysis-card.weaknesses h3 {
    color: #f59e0b;
}

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

.analysis-card li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    color: #475569;
}

.analysis-card.strengths li i {
    color: #10b981;
}

.analysis-card.weaknesses li i {
    color: #f59e0b;
}

/* Questions to Ask */
.questions-to-ask {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.ask-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 16px;
    border-left: 3px solid #10b981;
}

.ask-question {
    margin: 0 0 8px 0;
    font-weight: 500;
    color: #1e293b;
    font-style: italic;
}

.ask-reason {
    font-size: 0.8rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Salary Section */
.salary-card {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    color: white;
}

.salary-range {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 12px;
}

.salary-min, .salary-max {
    font-size: 2rem;
    font-weight: 700;
}

.salary-divider {
    font-size: 1.5rem;
    opacity: 0.7;
}

.salary-note {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 30px;
}

/* Practice Modal */
.practice-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.practice-modal.active {
    display: flex;
}

.practice-content {
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    overflow: hidden;
}

.practice-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
}

.practice-header h2 {
    margin: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.practice-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.practice-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.practice-body {
    padding: 30px;
}

.practice-question {
    text-align: center;
    margin-bottom: 30px;
}

.practice-question .question-number {
    display: inline-block;
    background: #e0e7ff;
    color: #4338ca;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.practice-question p {
    margin: 0;
    font-size: 1.3rem;
    color: #1e293b;
    line-height: 1.5;
}

.practice-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.practice-timer i {
    color: #6366f1;
    font-size: 1.2rem;
}

.practice-timer span {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    font-variant-numeric: tabular-nums;
}

.practice-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.practice-hint {
    text-align: center;
}

.practice-hint button {
    background: none;
    border: none;
    color: #6366f1;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
}

.practice-hint button:hover {
    text-decoration: underline;
}

.hint-text {
    margin-top: 16px;
    padding: 16px;
    background: #fef3c7;
    border-radius: 12px;
    color: #92400e;
    text-align: left;
}

/* Toast */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease-out;
}

.toast.success { border-left: 4px solid #10b981; }
.toast.error { border-left: 4px solid #ef4444; }
.toast.warning { border-left: 4px solid #f59e0b; }
.toast.info { border-left: 4px solid #6366f1; }

.toast i {
    font-size: 1.1rem;
}

.toast.success i { color: #10b981; }
.toast.error i { color: #ef4444; }
.toast.warning i { color: #f59e0b; }
.toast.info i { color: #6366f1; }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .interview-prep-container {
        padding: 80px 16px 30px;
    }
    
    .application-selector {
        flex-direction: column;
    }
    
    .application-selector select,
    .application-selector .btn-secondary {
        width: 100%;
    }
    
    .or-divider {
        display: none;
    }
    
    .manual-entry-form {
        grid-template-columns: 1fr;
    }
    
    .analysis-grid {
        grid-template-columns: 1fr;
    }
    
    .questions-to-ask {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons button {
        width: 100%;
    }
}

/* Print Styles */
@media print {
    .interview-header .btn-back,
    .btn-generate,
    .action-buttons,
    .toggle-answer-btn,
    .practice-modal {
        display: none !important;
    }
    
    .interview-section {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #e2e8f0;
    }
    
    .answer-content {
        display: block !important;
    }
}
