/* ============================================
   Interview Prep Page - Styles
   ============================================ */

/* ============================================
   STAR Method Side Panel
   ============================================ */
/* STAR Method Card */
.star-side-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 32px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.star-side-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--accent-light);
    line-height: 1.2;
}

.star-side-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.star-side-desc strong {
    color: var(--green);
}

.star-side-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.star-side-step {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    width: 100%;
}

.star-side-letter {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.5px;
    flex-shrink: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.star-side-step:hover .star-side-letter {
    transform: scale(1.08);
}

.star-side-s .star-side-letter {
    background: var(--accent-glow);
    color: var(--accent-light);
    box-shadow: 0 0 14px rgba(26, 58, 143, 0.3);
}

.star-side-t .star-side-letter {
    background: var(--blue-bg);
    color: var(--blue);
    box-shadow: 0 0 14px rgba(56, 103, 214, 0.3);
}

.star-side-a .star-side-letter {
    background: var(--green-bg);
    color: var(--green);
    box-shadow: 0 0 14px rgba(0, 184, 148, 0.3);
}

.star-side-r .star-side-letter {
    background: var(--orange-bg);
    color: var(--orange);
    box-shadow: 0 0 14px rgba(253, 203, 110, 0.3);
}

.star-side-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.star-side-label {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.2px;
}

.star-side-hint {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

.star-side-connector {
    width: 2px;
    height: 6px;
    margin-left: 23px;
    background: linear-gradient(to bottom, rgba(26, 58, 143, 0.25), rgba(26, 58, 143, 0.08));
    border-radius: 1px;
}

/* Sliders + STAR side-by-side row */
.sliders-star-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 28px;
    align-items: start;
    justify-content: center;
    margin-bottom: 8px;
}

.sliders-col {
    display: flex;
    flex-direction: column;
}

.sliders-col .slider-card {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.sliders-star-row .star-side-panel {
    align-self: stretch;
}

@media (max-width: 900px) {
    .sliders-star-row {
        grid-template-columns: 1fr;
    }
}

/* Interview Hero */
.interview-hero {
    padding: 140px 24px 30px;
    text-align: center;
    position: relative;
    background:
        radial-gradient(ellipse 60% 40% at 50% 0%, rgba(26, 58, 143, 0.12), transparent);
}

.interview-hero h1 {
    font-family: 'Space Grotesk', var(--font-display);
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.interview-hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Interview Section */
.interview-section {
    padding: 30px 0 100px;
}

.interview-section > .container {
    max-width: 1600px;
}

/* Interview Filter Bar */
.interview-filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.interview-filter-bar .category-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Results */
.interview-results {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Role Summary */
.role-summary-content {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.role-summary-content p {
    margin-bottom: 12px;
}

.role-summary-content strong {
    color: var(--text-primary);
}

/* Question Card */
.question-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    animation: fadeInUp 0.5s ease;
}

.question-card.hidden {
    display: none;
}

.question-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 28px;
    cursor: pointer;
    transition: background var(--transition);
}

.question-header:hover {
    background: var(--bg-card-hover);
}

.question-number {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
}

.question-number.technical {
    background: var(--accent-glow);
    color: var(--accent-light);
}

.question-number.behavioral {
    background: var(--green-bg);
    color: var(--green);
}

.question-info {
    flex: 1;
}

.question-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.question-type-badge.technical {
    background: var(--accent-glow);
    color: var(--accent-light);
}

.question-type-badge.behavioral {
    background: var(--green-bg);
    color: var(--green);
}

.question-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
}

.question-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    flex-shrink: 0;
    margin-top: 4px;
    transition: all var(--transition);
}

.question-toggle svg {
    transition: transform 0.3s ease;
}

.question-card.open .question-toggle svg {
    transform: rotate(180deg);
}

.question-card.open .question-toggle {
    background: var(--accent-glow);
    border-color: var(--accent);
    color: var(--accent-light);
}

/* Answer Panel */
.answer-panel {
    display: none;
    padding: 0 28px 28px;
    border-top: 1px solid var(--border);
}

.question-card.open .answer-panel {
    display: block;
}

.star-answer {
    margin-top: 20px;
}

.star-section {
    margin-bottom: 16px;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    border-left: 3px solid;
}

.star-section:last-child {
    margin-bottom: 0;
}

.star-section.situation {
    background: var(--accent-glow);
    border-color: var(--accent-light);
}

.star-section.task {
    background: var(--blue-bg);
    border-color: var(--blue);
}

.star-section.action {
    background: var(--green-bg);
    border-color: var(--green);
}

.star-section.result {
    background: var(--orange-bg);
    border-color: var(--orange);
}

.star-section-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.star-section.situation .star-section-label { color: var(--accent-light); }
.star-section.task .star-section-label { color: var(--blue); }
.star-section.action .star-section-label { color: var(--green); }
.star-section.result .star-section-label { color: var(--orange); }

.star-section p {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.7;
}

/* Interviewer Tip */
.interviewer-tip {
    margin-top: 16px;
    padding: 14px 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.interviewer-tip-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--yellow);
    margin-top: 1px;
}

.interviewer-tip p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.interviewer-tip strong {
    color: var(--yellow);
}

/* Outline Badge */
.star-outline-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(26, 58, 143, 0.08);
    border: 1px solid rgba(26, 58, 143, 0.2);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-light);
    margin-bottom: 16px;
    line-height: 1.5;
}

.star-outline-badge svg {
    flex-shrink: 0;
    color: var(--accent-light);
}

/* Action Buttons */
.copy-all-wrapper {
    text-align: center;
    padding-top: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.copy-all-wrapper .analyze-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.copy-all-btn {
    padding: 14px 28px;
    font-size: 14px;
}

/* Generate Button */
.interview-section .analyze-btn-wrapper {
    margin-top: 36px;
}

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

/* ============================================
   Slider Cards (Difficulty & Question Count)
   ============================================ */
.slider-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin-bottom: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.slider-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.slider-header svg {
    color: var(--accent-light);
    flex-shrink: 0;
}

.slider-header h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.slider-wrapper {
    padding: 0 4px;
    margin-bottom: 16px;
}

/* Base styled slider */
.styled-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    margin-bottom: 10px;
}

.styled-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--accent);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.styled-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
}

.styled-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--accent);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Difficulty gradient: light cyan -> dark teal */
.difficulty-gradient {
    background: linear-gradient(to right, #2450b8, #2450b8, #1a3a8f);
}

/* Count gradient: indigo spectrum */
.count-gradient {
    background: linear-gradient(to right, #2450b8, #1a3a8f, #152e73);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    padding: 0 2px;
}

/* Slider Badge */
.slider-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
    transition: all 0.3s ease;
}

.slider-badge-level {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.slider-badge-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Difficulty badge color states */
.slider-badge[data-level="1"] .slider-badge-level { color: #2450b8; }
.slider-badge[data-level="2"] .slider-badge-level { color: #2450b8; }
.slider-badge[data-level="3"] .slider-badge-level { color: #1a3a8f; }

/* Count badge color */
.count-badge .slider-badge-level {
    color: var(--accent-light);
}

/* Responsive */
@media (max-width: 900px) {
    .interview-filter-bar { justify-content: center; }
}

@media (max-width: 768px) {
    .star-side-panel {
        display: none;
    }
    .interview-hero { padding: 120px 24px 40px; }
    .question-header { padding: 20px; }
    .answer-panel { padding: 0 20px 20px; }
    .star-section { padding: 14px 16px; }
    .slider-card { padding: 24px 20px; }
    .slider-labels { font-size: 12px; }
}

@media (max-width: 480px) {
    .interview-hero { padding-top: 100px; }
    .question-header { padding: 16px; }
    .answer-panel { padding: 0 16px 16px; }
    .star-section { padding: 12px 14px; }
}

/* ============================================
   Light Mode Overrides
   ============================================ */
[data-theme="light"] .interview-hero {
    background: none;
}

[data-theme="light"] .star-side-s .star-side-letter,
[data-theme="light"] .star-side-t .star-side-letter,
[data-theme="light"] .star-side-a .star-side-letter,
[data-theme="light"] .star-side-r .star-side-letter {
    box-shadow: none;
}

[data-theme="light"] .slider-badge[data-level="1"] .slider-badge-level {
    color: #2563eb;
}

[data-theme="light"] .slider-badge[data-level="2"] .slider-badge-level {
    color: #2563eb;
}

[data-theme="light"] .slider-badge[data-level="3"] .slider-badge-level {
    color: #1e40af;
}

[data-theme="light"] .difficulty-gradient {
    background: linear-gradient(to right, #3b82f6, #2563eb, #1d4ed8);
}

[data-theme="light"] .count-gradient {
    background: linear-gradient(to right, #3b82f6, #2563eb, #1e40af);
}

[data-theme="light"] .styled-slider::-webkit-slider-thumb {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .star-outline-badge {
    background: rgba(37, 99, 235, 0.05);
    border-color: rgba(37, 99, 235, 0.15);
}
