/* ── Fonts & Variables ─────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --accent: #c72886;
    --accent-light: #e84ba5;
    --accent-bg: #fdf2f8;
    --green: #10b981;
    --green-bg: #ecfdf5;
    --bg-dark: #1a0a2e;
    --surface: #ffffff;
    --border: #e8e0f0;
    --border-light: #f0eaf6;
    --text: #1e1e2e;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 2px 8px rgba(26, 10, 46, 0.08);
    --shadow-lg: 0 4px 24px rgba(26, 10, 46, 0.12);
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f6f4fa;
    color: var(--text);
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

/* ── Header ───────────────────────────────────────── */

.app-header {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #2d1452 100%);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 12px rgba(26, 10, 46, 0.3);
}

.app-header-icon {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    flex-shrink: 0;
    object-fit: contain;
}

.app-header-title {
    color: white;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.3px;
    margin: 0;
}

.app-header-powered {
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
    font-weight: 400;
    margin-left: auto;
    letter-spacing: 0.3px;
}

/* ── Home View ────────────────────────────────────── */

.home-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 24px 60px;
    min-height: calc(100vh - 56px);
}

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

.home-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 8px;
    letter-spacing: -0.5px;
}

.home-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    max-width: 520px;
    line-height: 1.6;
}

.home-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    width: 100%;
    max-width: 720px;
    box-shadow: var(--shadow-lg);
}

/* ── Wizard Indicator ────────────────────────────── */

.wiz-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.wiz-ind-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 70px;
}

.wiz-ind-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s;
}

.wiz-ind-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.2px;
    transition: color 0.2s;
}

.wiz-ind-done .wiz-ind-icon {
    background: var(--green);
    color: white;
}
.wiz-ind-done .wiz-ind-label { color: var(--green); }

.wiz-ind-active .wiz-ind-icon {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: white;
    box-shadow: 0 0 0 4px rgba(199, 40, 134, 0.15);
}
.wiz-ind-active .wiz-ind-label { color: var(--accent); font-weight: 600; }

.wiz-ind-future .wiz-ind-icon {
    background: var(--border-light);
    color: var(--text-muted);
}
.wiz-ind-future .wiz-ind-label { color: var(--text-muted); }

.wiz-ind-line {
    flex: 1;
    height: 2px;
    background: var(--border-light);
    margin: 0 6px;
    margin-bottom: 18px;
}

/* ── Wizard Navigation ───────────────────────────── */

.wiz-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

/* ── Summary ─────────────────────────────────────── */

.summary-group {
    margin-bottom: 14px;
}

.summary-group:last-child { margin-bottom: 0; }

.summary-heading {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.summary-heading .bi { color: var(--accent); }

.summary-none {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
}

/* ── How It Works ────────────────────────────────── */

.howto-card {
    width: 100%;
    max-width: 720px;
    margin-top: 32px;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.howto-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 20px;
    letter-spacing: -0.3px;
}

.howto-steps { display: flex; flex-direction: column; gap: 16px; }

.howto-step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.howto-step-number {
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    margin-top: 2px;
}

.howto-step-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 4px;
}

.howto-step-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.howto-tips {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.howto-tips-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 10px;
}

.howto-tips-list {
    margin: 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.howto-tips-list li {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.home-section {
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 16px;
}


.home-section-header {
    padding: 10px 14px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
    background: #faf8fc;
}

.home-section-body {
    padding: 14px;
}

.home-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.home-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(199, 40, 134, 0.1);
}

/* ── Results View ─────────────────────────────────── */

.results-view {
    display: flex;
    flex-direction: row;
    height: 100vh;
}

/* Left sidebar — Birdie brand tones */
.rs-sidebar {
    width: 190px;
    min-width: 190px;
    background: linear-gradient(180deg, #1e0e30 0%, #2a1245 50%, #3b1860 100%);
    display: flex;
    flex-direction: column;
    padding: 20px 14px;
    gap: 6px;
    box-shadow: 2px 0 20px rgba(199, 40, 142, 0.08);
    z-index: 10;
}

.rs-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-bottom: 4px;
}

.rs-logo-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: contain;
    margin-bottom: 6px;
}

.rs-logo-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.3px;
    line-height: 1.15;
}

.rs-logo-powered {
    color: rgba(255, 255, 255, 0.35);
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.3px;
    margin-top: 4px;
}

.rs-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 8px 0;
}

.rs-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 9px 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.rs-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    color: white;
}

.rs-btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-color: transparent;
    color: white;
    font-weight: 600;
}

.rs-btn-accent:hover {
    box-shadow: 0 2px 12px rgba(199, 40, 134, 0.4);
    border-color: transparent;
}

/* Stats in sidebar */
.rs-stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rs-stat {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 4px 12px;
}

.rs-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.rs-stat-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Main content area */
.rs-main {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ── Upload Zone ──────────────────────────────────── */

.upload-zone {
    border: 2px dashed var(--border) !important;
    border-radius: var(--radius-sm) !important;
    background: #faf8fc !important;
    text-align: center;
    padding: 24px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-zone:hover {
    border-color: var(--accent) !important;
    background: var(--accent-bg) !important;
}

.upload-icon { font-size: 28px; color: var(--accent); margin-bottom: 6px; }
.upload-text { font-size: 12px; color: var(--text-secondary); margin: 0; }
.upload-hint { font-size: 11px; color: var(--text-muted); margin: 2px 0 0; }

/* ── Chips ────────────────────────────────────────── */

.chip-container { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

.file-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #f0eaf6;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text);
    border: 1px solid var(--border);
}

.file-chip .bi { font-size: 11px; color: var(--accent); }

.url-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px 4px 10px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text);
    border: 1px solid #a7f3d0;
    transition: all 0.15s;
}

.url-chip .bi { font-size: 11px; color: #10b981; }

.label-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px 4px 10px;
    background: linear-gradient(135deg, #f0eaf6 0%, var(--accent-bg) 100%);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text);
    border: 1px solid var(--border);
    transition: all 0.15s;
}

.label-remove {
    cursor: pointer;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    padding: 0 2px;
    transition: color 0.15s;
}

.label-remove:hover { color: var(--accent); }

/* ── Input Group ──────────────────────────────────── */

.label-input-group { display: flex; gap: 6px; }

/* ── Example Labels ───────────────────────────────── */

.example-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.example-heading {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-muted);
    margin: 0 0 6px;
}

.example-chips { display: flex; flex-wrap: wrap; gap: 4px; }

.example-chip {
    padding: 3px 9px;
    border: 1px solid var(--border);
    border-radius: 14px;
    font-size: 10px;
    color: var(--text-muted);
    cursor: pointer;
    background: none;
    font-family: 'Inter', sans-serif;
    transition: all 0.15s;
    line-height: 1.4;
}

.example-chip:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-bg);
}

/* ── Buttons ──────────────────────────────────────── */

.btn-add {
    padding: 8px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.15s;
    white-space: nowrap;
}

.btn-add:hover {
    background: #f0eaf6;
    border-color: var(--accent);
    color: var(--accent);
}

.btn-analyze {
    width: 100%;
    padding: 14px;
    margin-top: 8px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.2px;
    box-shadow: 0 2px 8px rgba(199, 40, 134, 0.3);
}

.btn-analyze:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(199, 40, 134, 0.4);
}

.btn-analyze:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }

.btn-clear {
    background: none;
    border: none;
    font-size: 11px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px 0;
    font-family: 'Inter', sans-serif;
    margin-top: 4px;
}

.btn-clear:hover { color: var(--accent); }

/* ── Tabs ─────────────────────────────────────────── */

.rs-main .tab--selected {
    border-top: 2px solid var(--accent) !important;
    font-weight: 600 !important;
    color: var(--accent) !important;
}

.rs-main .tab {
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
    padding: 12px 24px !important;
    border: none !important;
    border-bottom: 1px solid var(--border) !important;
    background: var(--surface) !important;
    color: var(--text-secondary) !important;
    transition: color 0.15s !important;
}

.rs-main .tab:hover { color: var(--accent) !important; }

/* ── Roadmap ──────────────────────────────────────── */

.roadmap-card {
    background: white;
    border-radius: 16px;
    padding: 40px 48px;
    max-width: 440px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.roadmap-title { font-size: 18px; font-weight: 600; color: var(--text); margin: 0 0 4px; }
.roadmap-subtitle { font-size: 13px; color: var(--text-muted); margin: 0 0 28px; }
.roadmap-steps { text-align: left; margin-bottom: 28px; }

.step-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border-light);
}

.step-item:last-child { border-bottom: none; }

.step-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    position: relative;
}

.step-done { background: var(--green); color: white; font-weight: 700; }

.step-active-icon {
    background: var(--accent);
    animation: step-pulse 1.5s ease-in-out infinite;
}

.step-active-icon::after {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    position: absolute;
}

@keyframes step-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(199, 40, 134, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(199, 40, 134, 0); }
}

.step-future-icon { background: #e5e7eb; }
.step-future-icon::after {
    content: '';
    width: 6px;
    height: 6px;
    background: #d1d5db;
    border-radius: 50%;
    position: absolute;
}

.step-label { font-size: 13px; }
.step-completed .step-label { color: var(--green); font-weight: 500; }
.step-current .step-label { color: var(--text); font-weight: 600; }
.step-future .step-label { color: var(--text-muted); }

.progress-section { text-align: left; }
.progress-track { height: 4px; background: #e5e7eb; border-radius: 2px; overflow: hidden; margin-bottom: 8px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-light)); border-radius: 2px; transition: width 0.6s ease; }
.progress-text { font-size: 11px; color: var(--text-muted); }

/* ── Thinking Card ────────────────────────────────── */

.thinking-card {
    max-width: 440px;
    margin: 80px auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow);
}

.thinking-dots { display: flex; justify-content: center; gap: 6px; margin-bottom: 20px; }

.thinking-dot {
    width: 10px; height: 10px;
    background: var(--accent);
    border-radius: 50%;
    animation: thinking-pulse 1.4s ease-in-out infinite;
}

.thinking-dot:nth-child(2) { animation-delay: 0.2s; }
.thinking-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes thinking-pulse {
    0%, 80%, 100% { opacity: 0.25; transform: scale(0.8); }
    40% { opacity: 1; transform: scale(1); }
}

.thinking-title { font-size: 16px; font-weight: 600; color: var(--text); margin: 0 0 8px; }
.thinking-subtitle { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* ── Analysis Panel ───────────────────────────────── */

.analysis-panel {
    padding: 32px 40px;
    max-width: 880px;
    margin: 0 auto;
    overflow-y: auto;
    max-height: calc(100vh - 110px);
}

.analysis-panel h3 {
    font-size: 16px; font-weight: 600; color: var(--text);
    margin: 24px 0 12px; padding-bottom: 6px; border-bottom: 2px solid var(--accent-bg);
}

.analysis-panel h3:first-child { margin-top: 0; }

.analysis-panel p {
    font-size: 14px; line-height: 1.7; color: var(--text-secondary); margin: 0 0 12px;
}

.analysis-panel ul { padding-left: 0; list-style: none; margin: 0 0 16px; }

.analysis-panel li {
    font-size: 13px; line-height: 1.7; color: var(--text-secondary);
    padding: 6px 0 6px 20px; position: relative;
    border-bottom: 1px solid var(--border-light);
}

.analysis-panel li:last-child { border-bottom: none; }

.analysis-panel li::before {
    content: ''; position: absolute; left: 0; top: 13px;
    width: 6px; height: 6px; background: var(--accent); border-radius: 50%;
}

.analysis-panel strong { color: var(--text); font-weight: 600; }

.analysis-panel::-webkit-scrollbar { width: 6px; }
.analysis-panel::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* ── Empty State ──────────────────────────────────── */

.empty-state {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; height: 100%; min-height: 400px;
    color: var(--text-muted); gap: 12px; padding: 40px;
}

.empty-state-icon { font-size: 48px; opacity: 0.3; }
.empty-state-text { font-size: 14px; text-align: center; line-height: 1.6; }

/* ── Error Alert ──────────────────────────────────── */

.error-alert {
    padding: 10px 14px; margin-top: 8px;
    background: #fef2f2; border: 1px solid #fecaca;
    border-radius: var(--radius-sm); font-size: 12px; color: #dc2626;
}

/* ── Misc ─────────────────────────────────────────── */

.section-hint { font-size: 11px; color: var(--text-muted); margin: 0 0 8px; line-height: 1.5; }
._dash-loading { min-height: 200px; }

