/**
 * practice.html — free no-login interview warmup wedge (KEH-5508)
 */

.practice-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 32px 20px 80px;
}

.practice-hero {
    text-align: center;
    margin-bottom: 32px;
}

.practice-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    line-height: 1.15;
    margin-bottom: 12px;
}

.practice-hero p {
    color: var(--cr-color-text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 540px;
    margin: 0 auto;
}

.practice-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(212, 43, 32, 0.1);
    color: var(--cr-color-accent);
    border: 1px solid rgba(212, 43, 32, 0.25);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.practice-card {
    background: var(--cr-color-background-card);
    border: 1px solid var(--cr-color-border);
    border-radius: 16px;
    padding: 28px 24px;
}

.practice-stage {
    display: none;
}

.practice-stage.active {
    display: block;
}

.practice-question-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--cr-color-text-muted);
    margin-bottom: 10px;
}

.practice-question-text {
    font-size: 1.15rem;
    line-height: 1.55;
    margin-bottom: 24px;
}

.practice-camera-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #111;
    aspect-ratio: 16 / 10;
    margin-bottom: 20px;
}

.practice-camera-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.practice-camera-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cr-color-text-muted);
    font-size: 0.9rem;
}

.practice-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.practice-mic-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid var(--cr-color-border-strong);
    background: var(--cr-color-background-section);
    color: var(--cr-color-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.practice-mic-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.practice-mic-btn.ready {
    border-color: var(--cr-color-accent);
}

.practice-mic-btn.recording {
    border-color: var(--cr-color-accent);
    background: rgba(212, 43, 32, 0.12);
    animation: practice-pulse 1.2s ease-in-out infinite;
}

@keyframes practice-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

.practice-mic-label {
    font-size: 0.9rem;
    color: var(--cr-color-text-secondary);
    text-align: center;
}

.practice-rec-timer {
    font-variant-numeric: tabular-nums;
    font-size: 0.85rem;
    color: var(--cr-color-accent);
}

.practice-type-panel {
    margin-top: 16px;
    display: none;
}

.practice-type-panel.visible {
    display: block;
}

.practice-type-field {
    width: 100%;
    min-height: 88px;
    resize: vertical;
    border-radius: 10px;
    border: 1px solid var(--cr-color-border);
    background: var(--cr-color-background-section);
    color: var(--cr-color-text);
    padding: 12px 14px;
    font-size: 1rem;
    line-height: 1.45;
    box-sizing: border-box;
}

.practice-type-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.practice-processing {
    text-align: center;
    padding: 48px 20px;
}

.practice-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--cr-color-border);
    border-top-color: var(--cr-color-accent);
    border-radius: 50%;
    animation: practice-spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

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

.practice-error {
    color: var(--cr-color-accent);
    font-size: 0.9rem;
    margin-top: 12px;
    text-align: center;
}

.practice-tips {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--cr-color-border);
}

.practice-tips h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--cr-color-text-muted);
    margin-bottom: 10px;
}

.practice-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.practice-tips li {
    font-size: 0.9rem;
    color: var(--cr-color-text-secondary);
    padding: 4px 0;
}

.practice-tips li::before {
    content: "•";
    color: var(--cr-color-accent);
    margin-right: 8px;
}
