/* ============================================
   Bulletproof.ai - Interview Practice Styles
   ============================================ */

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

.practice-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;
}

.practice-hero h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.1;
}

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

/* How It Works Mini */
.practice-how-section {
    padding: 0 0 60px;
}

.practice-how-card {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    text-align: center;
}

.practice-how-card h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.practice-how-desc {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 32px;
}

.practice-how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.practice-how-step {
    padding: 24px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.practice-how-step:hover {
    border-color: var(--border-light, #3a3a4a);
    transform: translateY(-2px);
}

.practice-how-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
}

.practice-how-step h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.practice-how-step p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Browser Warning */
.browser-warning {
    padding: 0 24px 24px;
}

.browser-warning-card {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    background: rgba(255, 169, 77, 0.08);
    border: 1px solid rgba(255, 169, 77, 0.3);
    border-radius: var(--radius);
    color: var(--orange);
    font-size: 14px;
    line-height: 1.5;
}

.browser-warning-card strong {
    display: block;
    margin-bottom: 2px;
}

/* Practice Section */
.practice-section {
    padding: 60px 0 100px;
}

/* Question Setup */
.practice-question-setup {
    max-width: 700px;
    margin: 0 auto 32px;
}

.practice-samples-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.practice-samples-card .input-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--accent-light);
}

.practice-samples-card .input-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.practice-samples-card label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.practice-samples-card select {
    width: 100%;
    padding: 12px 40px 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236a6a80' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
    transition: border-color var(--transition);
}

.practice-samples-card select:focus {
    outline: none;
    border-color: var(--accent);
}

.practice-samples-card select option,
.practice-samples-card select optgroup {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.practice-or-label {
    margin-top: 16px;
}

.practice-samples-card textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    transition: border-color var(--transition);
    box-sizing: border-box;
}

.practice-samples-card textarea:focus {
    outline: none;
    border-color: var(--accent);
}

/* Difficulty Slider */
.practice-slider-wrapper {
    padding: 0 4px;
    margin-bottom: 16px;
}

.practice-styled-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    margin-bottom: 10px;
}

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

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

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

.practice-difficulty-gradient {
    background: linear-gradient(to right, #00d2a0, #f9ca24, #e17055);
}

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

.practice-difficulty-badge {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
}

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

.practice-difficulty-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.practice-difficulty-badge[data-level="1"] .practice-difficulty-level { color: #00d2a0; }
.practice-difficulty-badge[data-level="2"] .practice-difficulty-level { color: #f9ca24; }
.practice-difficulty-badge[data-level="3"] .practice-difficulty-level { color: #e17055; }

/* Recording Area */
.practice-recording-area {
    max-width: 700px;
    margin: 0 auto 32px;
    text-align: center;
}

/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0d0d14;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 20px;
}

.webcam-preview,
.video-playback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-lg);
    background: #000;
}

.webcam-preview {
    transform: scaleX(-1);
}

.camera-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-muted);
}

.camera-placeholder svg {
    opacity: 0.4;
}

.camera-placeholder p {
    font-size: 14px;
    margin: 0;
    opacity: 0.6;
}

/* REC Indicator Overlay */
.video-rec-indicator {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    color: var(--red);
    letter-spacing: 1px;
    z-index: 5;
}

.rec-dot {
    width: 10px;
    height: 10px;
    background: var(--red);
    border-radius: 50%;
    animation: rec-blink 1.2s ease-in-out infinite;
}

@keyframes rec-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

/* Timer Overlay on Video */
.video-timer-overlay {
    position: absolute;
    bottom: 16px;
    right: 16px;
    padding: 6px 16px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    border-radius: 100px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    z-index: 5;
}

.video-timer-overlay span {
    color: var(--text-primary);
}

/* Recording Controls */
.recording-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.record-button {
    padding: 16px 40px;
    background: linear-gradient(135deg, #00d2a0, #00b894);
    color: white;
    border: none;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 4px 20px rgba(0, 210, 160, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
}

.record-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 210, 160, 0.4);
}

.record-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.record-button.recording {
    background: linear-gradient(135deg, var(--red), #e74c3c);
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3);
    animation: pulse-recording 2s ease-in-out infinite;
}

@keyframes pulse-recording {
    0%, 100% { box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3); }
    50% { box-shadow: 0 4px 30px rgba(255, 107, 107, 0.6); }
}

.recording-pulse {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.record-btn-idle,
.record-btn-active {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.stop-button {
    padding: 16px 32px;
    background: var(--bg-card);
    border: 2px solid var(--red);
    color: var(--red);
    border-radius: 100px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition);
    font-family: 'Inter', sans-serif;
}

.stop-button:hover {
    background: rgba(255, 107, 107, 0.1);
}

/* Live Transcript */
.transcript-area {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: left;
    margin-bottom: 24px;
}

.transcript-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.transcript-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.transcript-tips {
    font-size: 12px;
    color: var(--text-muted);
    margin: -8px 0 12px 0;
    padding: 8px 12px;
    background: rgba(108, 92, 231, 0.06);
    border-radius: 6px;
    line-height: 1.5;
}

.transcript-content {
    min-height: 80px;
    max-height: 200px;
    overflow-y: auto;
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.8;
}

.transcript-placeholder {
    color: var(--text-muted);
    font-style: italic;
}

.transcript-interim {
    color: var(--text-muted);
}

.low-confidence {
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-color: var(--text-muted);
    text-underline-offset: 3px;
}

.filler-word {
    background: rgba(255, 169, 77, 0.15);
    color: var(--orange);
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: 600;
}

/* Post-Recording Summary Stats */
.recording-summary {
    margin-bottom: 24px;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 700px;
    margin: 0 auto;
}

.summary-stat {
    padding: 20px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
}

.summary-stat-num {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--accent-light);
    margin-bottom: 4px;
    font-family: 'JetBrains Mono', monospace;
}

.summary-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* ============================================
   Interview Feedback Dashboard
   ============================================ */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}

.dashboard-gauge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    transition: all var(--transition);
}

.dashboard-gauge:hover {
    border-color: var(--border-light, #3a3a4a);
    transform: translateY(-2px);
}

.gauge-ring-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 12px;
}

.gauge-ring {
    width: 80px;
    height: 80px;
    transform: rotate(-90deg);
}

.gauge-ring-bg {
    fill: none;
    stroke: var(--border);
    stroke-width: 6;
}

.gauge-ring-fill {
    fill: none;
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dashoffset 1.5s ease, stroke 0.3s ease;
}

.gauge-score {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 22px;
    font-weight: 900;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-primary);
}

.gauge-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    line-height: 1.3;
}

/* Radar Chart */
.dashboard-radar-wrapper {
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

.radar-chart {
    width: 100%;
    max-width: 320px;
    height: auto;
}

.radar-grid-line {
    fill: none;
    stroke: var(--border);
    stroke-width: 0.5;
}

.radar-axis {
    stroke: var(--border);
    stroke-width: 0.5;
}

.radar-shape {
    fill: rgba(108, 92, 231, 0.15);
    stroke: var(--accent);
    stroke-width: 2;
    transition: d 1s ease;
}

.radar-dot {
    fill: var(--accent);
    transition: cx 1s ease, cy 1s ease;
}

.radar-label {
    font-size: 11px;
    font-weight: 700;
    fill: var(--text-secondary);
    text-anchor: middle;
    dominant-baseline: middle;
}

.radar-score-label {
    font-size: 10px;
    font-weight: 600;
    fill: var(--accent-light);
    text-anchor: middle;
    dominant-baseline: middle;
    font-family: 'JetBrains Mono', monospace;
}

/* Results */
.practice-results {
    display: flex;
    flex-direction: column;
    gap: 24px;
    animation: fadeInUp 0.5s ease;
}

/* Delivery Metrics Grid */
.delivery-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.delivery-metric-card {
    padding: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.delivery-metric-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.delivery-metric-value {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 6px;
    font-family: 'JetBrains Mono', monospace;
}

.delivery-metric-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Quality Bars */
.quality-bars {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quality-bar-container {
    /* Container for each bar */
}

.quality-bar-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 13px;
}

.quality-bar {
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.quality-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease;
}

/* Feedback Lists */
.feedback-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feedback-item {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.feedback-item.strength {
    background: rgba(0, 210, 160, 0.06);
    border-left: 3px solid var(--green);
}

.feedback-item.improvement {
    background: rgba(255, 169, 77, 0.06);
    border-left: 3px solid var(--orange);
}

/* Overall Score Display */
.score-display {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.score-ring-container {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.practice-results .score-ring {
    width: 120px;
    height: 120px;
    transform: rotate(-90deg);
}

.practice-results .score-ring-bg {
    fill: none;
    stroke: var(--border);
    stroke-width: 8;
}

.practice-results .score-ring-fill {
    fill: none;
    stroke: var(--green);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 326.73;
    stroke-dashoffset: 326.73;
    transition: stroke-dashoffset 1.5s ease, stroke 0.3s ease;
}

.score-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    font-weight: 900;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
}

.score-details {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.score-details ul {
    padding: 0;
    list-style: none;
}

.score-details li {
    margin-bottom: 4px;
}

/* Improved Answer */
.improved-answer {
    padding: 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-top: 20px;
}

.improved-answer-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--green);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.improved-answer p {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.8;
    margin: 0;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
    .practice-how-grid {
        grid-template-columns: 1fr;
    }

    .summary-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .delivery-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .score-display {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .dashboard-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .practice-hero {
        padding: 120px 24px 40px;
    }

    .practice-hero h1 {
        font-size: 28px;
    }

    .practice-hero-subtitle {
        font-size: 15px;
    }

    .practice-how-card {
        padding: 32px 20px;
    }

    .practice-how-card h2 {
        font-size: 22px;
    }

    .recording-controls {
        flex-direction: column;
        align-items: center;
    }

    .record-button,
    .stop-button {
        width: 100%;
        justify-content: center;
    }

    .summary-stats {
        grid-template-columns: 1fr 1fr;
    }

    .practice-samples-card {
        padding: 20px;
    }

    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-gauge {
        padding: 16px 8px 12px;
    }

    .gauge-ring-container {
        width: 64px;
        height: 64px;
    }

    .gauge-ring {
        width: 64px;
        height: 64px;
    }

    .gauge-score {
        font-size: 18px;
    }

    .gauge-label {
        font-size: 10px;
    }

    .radar-chart {
        max-width: 260px;
    }

    .video-rec-indicator {
        top: 10px;
        left: 10px;
        padding: 4px 10px;
        font-size: 11px;
    }

    .rec-dot {
        width: 8px;
        height: 8px;
    }

    .video-timer-overlay {
        bottom: 10px;
        right: 10px;
        padding: 4px 12px;
        font-size: 13px;
    }
}
