/* ── Interview Prep Page ────────────────────────────────────────── */
/* Supplements landing-page.css with interview-prep-specific styles */

/* ── Form Card ──────────────────────────────────────────────────── */

.ip-form-card {
    background: var(--nf-surface, #fff);
    border: 1px solid var(--nf-border, #e5e7eb);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    max-width: 800px;
    margin: 0 auto;
}

.ip-input-group {
    margin-bottom: 2rem;
}

.ip-input-group:last-child {
    margin-bottom: 0;
}

.ip-label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--nf-text, #1f2937);
    margin-bottom: 0.25rem;
}

.ip-required {
    color: var(--nf-error, #ef4444);
}

.ip-optional {
    color: var(--nf-text-muted, #9ca3af);
    font-weight: 400;
    font-size: 0.85rem;
}

.ip-hint {
    font-size: 0.85rem;
    color: var(--nf-text-muted, #6b7280);
    margin: 0 0 0.5rem;
}

.ip-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--nf-border, #d1d5db);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.15s;
    box-sizing: border-box;
}

.ip-textarea:focus {
    outline: none;
    border-color: var(--nf-accent-pink, #FF0F6F);
    box-shadow: 0 0 0 3px rgba(255,15,111,0.1);
}

.ip-or-divider {
    text-align: center;
    margin: 1rem 0;
    position: relative;
}

.ip-or-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: var(--nf-border, #e5e7eb);
}

.ip-or-divider span {
    position: relative;
    background: var(--nf-surface, #fff);
    padding: 0 1rem;
    color: var(--nf-text-muted, #9ca3af);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ip-url-row {
    display: flex;
    gap: 0.5rem;
}

.ip-url-input {
    flex: 1;
    padding: 0.6rem 1rem;
    border: 1px solid var(--nf-border, #d1d5db);
    border-radius: 8px;
    font-size: 0.9rem;
}

.ip-url-input:focus {
    outline: none;
    border-color: var(--nf-accent-pink, #FF0F6F);
    box-shadow: 0 0 0 3px rgba(255,15,111,0.1);
}

.ip-file-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ip-file-name {
    font-size: 0.85rem;
    color: var(--nf-text-muted, #6b7280);
}

.ip-saved-notice {
    margin: 0 0 0.5rem;
    padding: 0.4rem 0.65rem;
    background: rgba(255, 15, 111, 0.05);
    border: 1px solid rgba(255, 15, 111, 0.18);
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--nf-text-muted, #6b7280);
}

.ip-saved-notice a {
    color: var(--nf-accent-pink, #FF0F6F);
    font-weight: 600;
    text-decoration: none;
}

.ip-saved-notice a:hover {
    text-decoration: underline;
}

.ip-warning {
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #fef3c7;
    border: 1px solid var(--nf-warning, #fbbf24);
    border-radius: 6px;
    font-size: 0.85rem;
    color: #92400e;
}

/* ── Progress Checklist ────────────────────────────────────────── */

.ip-progress-checklist {
    list-style: none;
    padding: 0;
    margin: 1.5rem auto 0;
    max-width: 320px;
    text-align: left;
}

.ip-check-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--nf-text-muted, #9ca3af);
    transition: color 0.3s;
}

.ip-check-item.ip-check-active {
    color: var(--nf-text, #1f2937);
    font-weight: 500;
}

.ip-check-item.ip-check-done {
    color: var(--nf-success, #10b981);
}

.ip-check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--nf-border, #d1d5db);
    flex-shrink: 0;
    font-size: 0.7rem;
    transition: all 0.3s;
}

.ip-check-active .ip-check-icon {
    border-color: var(--nf-accent-pink, #FF0F6F);
    background: rgba(255, 15, 111, 0.08);
    animation: ip-pulse 1.5s ease-in-out infinite;
}

.ip-check-done .ip-check-icon {
    border-color: var(--nf-success, #10b981);
    background: var(--nf-success, #10b981);
    color: #fff;
}

.ip-check-done .ip-check-icon::after {
    content: '\2713';
}

@keyframes ip-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 15, 111, 0.2); }
    50% { box-shadow: 0 0 0 6px rgba(255, 15, 111, 0); }
}

/* ── Generating / Learning Module ──────────────────────────────── */

.ip-generating-card {
    background: var(--nf-surface, #fff);
    border: 1px solid var(--nf-border, #e5e7eb);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    max-width: 800px;
    margin: 0 auto;
}

.ip-spinner-container {
    text-align: center;
    padding: 3rem 0;
}

.ip-spinner-container h3 {
    margin: 1rem 0 0.5rem;
    color: var(--nf-text, #1f2937);
}

.ip-spinner-container p {
    color: var(--nf-text-muted, #6b7280);
}

/* Learning Module */

.ip-learning-header {
    margin-bottom: 1.5rem;
}

.ip-learning-header h2 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--nf-text, #1f2937);
}

.ip-learning-company {
    margin: 0.25rem 0 0;
    font-size: 1rem;
    color: var(--nf-text-muted, #6b7280);
}

.ip-learning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ip-learning-card {
    background: var(--nf-bg, #f9fafb);
    border: 1px solid var(--nf-border, #e5e7eb);
    border-radius: 8px;
    padding: 1.25rem;
}

.ip-learning-card h4 {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    color: var(--nf-text, #374151);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ip-learning-card ul {
    margin: 0;
    padding-left: 1.25rem;
    list-style: disc;
}

.ip-learning-card li {
    font-size: 0.9rem;
    color: var(--nf-text-muted, #4b5563);
    line-height: 1.6;
}

.ip-learning-advice {
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(255,15,111,0.04), rgba(255,122,48,0.04));
    border: 1px solid rgba(255,15,111,0.12);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--nf-text, #374151);
    line-height: 1.6;
}

/* ── Mode Selection ─────────────────────────────────────────────── */

.ip-mode-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
}

.ip-mode-card {
    background: var(--nf-surface, #fff);
    border: 2px solid var(--nf-border, #e5e7eb);
    border-radius: 16px;
    padding: 1.5rem;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    position: relative;
}

.ip-mode-card:hover {
    border-color: var(--nf-accent-pink, #FF0F6F);
    box-shadow: 0 4px 12px rgba(255,15,111,0.1);
    transform: translateY(-2px);
}

.ip-mode-card-selected {
    border-color: var(--nf-accent-pink, #FF0F6F);
    box-shadow: 0 0 0 3px rgba(255,15,111,0.15);
}

.ip-mode-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: linear-gradient(135deg, var(--nf-accent-pink, #FF0F6F), var(--nf-accent-orange, #FF7A30));
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.75rem;
}

.ip-mode-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    color: var(--nf-text, #1f2937);
}

.ip-mode-card p {
    font-size: 0.9rem;
    color: var(--nf-text-muted, #6b7280);
    line-height: 1.5;
}

.ip-mode-details {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.ip-mode-details li {
    font-size: 0.85rem;
    color: var(--nf-text-muted, #4b5563);
    padding: 0.25rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.ip-mode-details li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--nf-success, #10b981);
    font-weight: 600;
}

/* ── Recent interviews list ────────────────────────────────────── */

.ip-recent-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 800px;
    margin: 0 auto;
}

.ip-recent-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.875rem 1.125rem;
    background: var(--nf-surface, #fff);
    border: 1px solid var(--nf-border, #e5e7eb);
    border-radius: 12px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ip-recent-item:hover {
    border-color: var(--nf-primary, #4f46e5);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.ip-recent-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    flex: 1;
}

.ip-recent-item-title {
    font-weight: 600;
    color: var(--nf-text, #0f172a);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ip-recent-item-meta {
    font-size: 0.875rem;
    color: var(--nf-text-muted, #64748b);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ip-recent-item-resume {
    flex-shrink: 0;
}

.ip-recent-item-mode {
    display: inline-block;
    margin-top: 0.25rem;
    padding: 0.15rem 0.5rem;
    background: linear-gradient(135deg, var(--nf-accent-pink, #FF0F6F), var(--nf-accent-orange, #FF7A30));
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    align-self: flex-start;
}

.ip-recent-empty {
    padding: 1.25rem 1.125rem;
    background: var(--nf-surface, #fff);
    border: 1px dashed var(--nf-border, #e5e7eb);
    border-radius: 12px;
    text-align: center;
    color: var(--nf-text-muted, #64748b);
    font-size: 0.9rem;
}

/* ── Responsive ─────────────────────────────────────────────────── */

@media (max-width: 640px) {
    .ip-mode-grid {
        grid-template-columns: 1fr;
    }

    .ip-url-row {
        flex-direction: column;
    }

    .ip-learning-grid {
        grid-template-columns: 1fr;
    }

    .ip-form-card,
    .ip-generating-card {
        padding: 1.25rem;
    }

    .ip-recent-item {
        flex-direction: column;
        align-items: stretch;
    }

    .ip-recent-item-resume {
        width: 100%;
    }
}
