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

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

.interview-hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--accent-glow);
    border: 1px solid rgba(108, 92, 231, 0.3);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-light);
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.interview-hero h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.interview-hero-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.7;
}

/* STAR Method Explainer */
.star-explainer-section {
    padding: 0 0 60px;
}

.star-explainer-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    text-align: center;
}

.star-explainer-card h2 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.star-explainer-desc {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.star-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.star-step-card {
    padding: 24px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.star-step-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.star-letter {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 900;
    margin: 0 auto 12px;
}

.star-step-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

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

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

/* 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);
}

/* Copy All */
.copy-all-wrapper {
    text-align: center;
    padding-top: 8px;
}

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

/* 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: 600px;
    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: green -> yellow */
.difficulty-gradient {
    background: linear-gradient(to right, #00d2a0, #f9ca24);
}

/* Count gradient: indigo spectrum */
.count-gradient {
    background: linear-gradient(to right, #a29bfe, #6c5ce7, #4834d4);
}

.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: #00d2a0; }
.slider-badge[data-level="2"] .slider-badge-level { color: #f9ca24; }

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

/* Responsive */
@media (max-width: 900px) {
    .star-grid { grid-template-columns: repeat(2, 1fr); }
    .interview-filter-bar { justify-content: center; }
}

@media (max-width: 600px) {
    .interview-hero { padding: 120px 24px 40px; }
    .interview-hero h1 { font-size: 28px; }
    .star-grid { grid-template-columns: 1fr; }
    .star-explainer-card { padding: 32px 20px; }
    .question-header { padding: 20px; }
    .answer-panel { padding: 0 20px 20px; }
    .star-section { padding: 14px 16px; }
    .slider-card { padding: 24px 20px; }
    .slider-labels { font-size: 10px; }
}
