/* Job Pipeline - Dark Theme SaaS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg: #0f0f1a;
    --bg-card: #1a1a2e;
    --bg-card-hover: #22223a;
    --purple: #7c5cff;
    --purple-dim: rgba(124, 92, 255, 0.15);
    --teal: #2fe6c5;
    --teal-dim: rgba(47, 230, 197, 0.15);
    --text: #e0e0e0;
    --text-muted: #888;
    --text-bright: #fff;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --danger: #ff4d6a;
    --warning: #ffb74d;
    --success: #2fe6c5;
    --radius: 14px;
    --radius-sm: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
}

a { color: var(--purple); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--teal); }

/* Top Nav */
.topnav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    background: rgba(26, 26, 46, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.topnav .logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-bright);
    display: flex;
    align-items: center;
    gap: 10px;
}

.topnav .logo span {
    background: linear-gradient(135deg, var(--purple), var(--teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.topnav nav {
    display: flex;
    gap: 8px;
}

.topnav nav a {
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.topnav nav a:hover,
.topnav nav a.active {
    background: var(--purple-dim);
    color: var(--purple);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.engine-toggle { margin: 0; }

.engine-btn {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.04);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.engine-btn:hover { border-color: var(--purple); color: var(--text-bright); }

.engine-gemini {
    border-color: rgba(66, 133, 244, 0.3);
    color: #4285f4;
    background: rgba(66, 133, 244, 0.08);
}

.engine-claude {
    border-color: rgba(204, 120, 50, 0.3);
    color: #cc7832;
    background: rgba(204, 120, 50, 0.08);
}

/* Plan Badge */
.plan-badge {
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.plan-free {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.plan-pro {
    background: var(--purple-dim);
    color: var(--purple);
    border: 1px solid rgba(124, 92, 255, 0.3);
}

/* Usage Badge */
.usage-badge {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(255, 183, 77, 0.12);
    color: var(--warning);
    border: 1px solid rgba(255, 183, 77, 0.2);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 32px;
}

/* Page Header */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.page-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-bright);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: var(--purple);
    color: #fff;
}
.btn-primary:hover {
    background: #6a4aee;
    color: #fff;
    box-shadow: 0 4px 20px rgba(124, 92, 255, 0.3);
}

.btn-teal {
    background: var(--teal);
    color: #0f0f1a;
}
.btn-teal:hover {
    background: #28d4b5;
    color: #0f0f1a;
    box-shadow: 0 4px 20px rgba(47, 230, 197, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}
.btn-outline:hover {
    border-color: var(--purple);
    color: var(--purple);
}

.btn-danger {
    background: rgba(255, 77, 106, 0.15);
    color: var(--danger);
    border: 1px solid rgba(255, 77, 106, 0.2);
}
.btn-danger:hover {
    background: rgba(255, 77, 106, 0.25);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 14px 36px;
    font-size: 1.1rem;
}

.btn-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Kanban Board */
.kanban {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 16px;
}

@media (max-width: 1200px) {
    .kanban { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .kanban { grid-template-columns: 1fr; }
}

.kanban-col {
    background: rgba(26, 26, 46, 0.5);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    min-height: 200px;
}

.kanban-col-header {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.kanban-col-header .count {
    background: var(--purple-dim);
    color: var(--purple);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.kanban-col-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 60px;
    transition: background 0.2s;
}

.kanban-col-body.drag-over {
    background: rgba(124, 92, 255, 0.08);
    border-radius: 0 0 var(--radius) var(--radius);
}

.job-card.dragging {
    opacity: 0.4;
}

.job-card[draggable] {
    cursor: grab;
}

.job-card[draggable]:active {
    cursor: grabbing;
}

.delete-zone {
    position: fixed;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 77, 106, 0.15);
    border: 2px dashed rgba(255, 77, 106, 0.4);
    border-radius: 12px;
    padding: 16px 40px;
    color: #ff4d6a;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
}

.delete-zone.visible {
    bottom: 24px;
    opacity: 1;
    pointer-events: auto;
}

.delete-zone.drag-over {
    background: rgba(255, 77, 106, 0.3);
    border-color: #ff4d6a;
    transform: translateX(-50%) scale(1.05);
}

/* Job Card */
.job-card {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.job-card:hover {
    border-color: var(--purple);
    box-shadow: 0 4px 24px rgba(124, 92, 255, 0.12);
    transform: translateY(-2px);
    color: inherit;
}

.job-card .company {
    font-size: 0.78rem;
    color: var(--teal);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

.job-card .title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 8px;
    line-height: 1.3;
}

.job-card .meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.match-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}
.match-high { background: rgba(47, 230, 197, 0.15); color: var(--teal); }
.match-med { background: rgba(255, 183, 77, 0.15); color: var(--warning); }
.match-low { background: rgba(255, 77, 106, 0.15); color: var(--danger); }

.card-salary {
    font-size: 0.82rem;
    font-weight: 600;
    color: #2fe6c5;
    margin-bottom: 6px;
}

.card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.loc-badge {
    padding: 1px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.loc-remote { background: rgba(47, 230, 197, 0.15); color: #2fe6c5; }
.loc-hybrid { background: rgba(255, 183, 77, 0.15); color: #ffb74d; }
.loc-onsite { background: rgba(255, 255, 255, 0.06); color: var(--text-muted); }

/* Card */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 28px;
    margin-bottom: 20px;
}

.card h2, .card h3 {
    color: var(--text-bright);
    margin-bottom: 16px;
}

/* Form */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--purple);
}

/* Upload zone */
.upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}
.upload-zone:hover, .upload-zone.drag-active {
    border-color: var(--purple);
    background: rgba(124, 92, 255, 0.04);
}
.upload-icon { font-size: 2.5rem; margin-bottom: 8px; }
.upload-link { color: var(--purple); cursor: pointer; font-weight: 600; }
.upload-link:hover { text-decoration: underline; }
.file-list { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.file-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 14px; background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius-sm); font-size: 0.88rem;
    box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.15);
}

.form-group textarea {
    min-height: 200px;
    resize: vertical;
}

.form-group .hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.divider {
    text-align: center;
    color: var(--text-muted);
    margin: 16px 0;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Job Detail */
.job-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.job-detail-header h1 {
    font-size: 1.6rem;
    color: var(--text-bright);
}

.job-detail-header .company-name {
    font-size: 1.1rem;
    color: var(--teal);
    font-weight: 600;
}

.job-detail-header .location {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

@media (max-width: 900px) {
    .detail-grid { grid-template-columns: 1fr; }
}

.detail-sidebar .card {
    position: sticky;
    top: 80px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.tag-match {
    background: var(--teal-dim);
    color: var(--teal);
}

.tag-gap {
    background: rgba(255, 77, 106, 0.1);
    color: var(--danger);
}

/* Status Buttons */
.status-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.status-btn {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.status-btn:hover {
    border-color: var(--purple);
    color: var(--purple);
}

.status-btn.active {
    background: var(--purple);
    color: #fff;
    border-color: var(--purple);
}

/* Notes */
.notes-area {
    width: 100%;
    min-height: 100px;
    padding: 12px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
}

.notes-area:focus {
    outline: none;
    border-color: var(--purple);
}

/* Generated Content */
.generated-content {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-top: 12px;
    white-space: pre-wrap;
    font-size: 0.9rem;
    line-height: 1.7;
    max-height: 600px;
    overflow-y: auto;
}

.generated-content h1,
.generated-content h2,
.generated-content h3 {
    color: var(--text-bright);
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

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

.stat-card .stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--purple), var(--teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-top-color: var(--purple);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 26, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    flex-direction: column;
    gap: 16px;
}

.loading-overlay .spinner {
    width: 40px;
    height: 40px;
    border-width: 3px;
}

.loading-overlay p {
    color: var(--text);
    font-weight: 500;
}

/* Score Circle */
.score-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 12px;
}

.score-high {
    background: rgba(47, 230, 197, 0.12);
    color: var(--teal);
    border: 3px solid var(--teal);
}

.score-med {
    background: rgba(255, 183, 77, 0.12);
    color: var(--warning);
    border: 3px solid var(--warning);
}

.score-low {
    background: rgba(255, 77, 106, 0.12);
    color: var(--danger);
    border: 3px solid var(--danger);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state h2 {
    color: var(--text);
    margin-bottom: 12px;
}

.empty-state p {
    margin-bottom: 24px;
}

/* Toast / Flash Messages */
.flash {
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-weight: 500;
    font-size: 0.9rem;
}

.flash-success {
    background: rgba(47, 230, 197, 0.12);
    border: 1px solid rgba(47, 230, 197, 0.2);
    color: var(--teal);
}

.flash-error {
    background: rgba(255, 77, 106, 0.12);
    border: 1px solid rgba(255, 77, 106, 0.2);
    color: var(--danger);
}

/* Auth Card */
.auth-card {
    max-width: 440px;
    margin: 60px auto;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 40px;
}

.auth-card h1 {
    color: var(--text-bright);
    margin-bottom: 8px;
    font-size: 1.6rem;
}

/* Pro Feature Gate */
.pro-gate {
    text-align: center;
    padding: 24px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px dashed rgba(124, 92, 255, 0.3);
    color: var(--text-muted);
}

.pro-gate p {
    margin-bottom: 12px;
}

/* Upgrade CTA */
.upgrade-cta {
    background: var(--bg-card);
    border: 1px solid rgba(124, 92, 255, 0.3);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    margin-top: 28px;
}

.upgrade-cta h3 {
    color: var(--text-bright);
    margin-bottom: 8px;
}

.upgrade-cta p {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 0.9rem;
}

/* Landing Page */
.landing-hero {
    text-align: center;
    padding: 80px 32px 60px;
    max-width: 800px;
    margin: 0 auto;
}

.landing-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-bright);
    line-height: 1.1;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--purple), var(--teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

@media (max-width: 900px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .features-grid { grid-template-columns: 1fr; }
    .landing-hero h1 { font-size: 2.2rem; }
}

.feature-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 28px;
    transition: all 0.25s;
}

.feature-card:hover {
    border-color: rgba(124, 92, 255, 0.3);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.feature-card h3 {
    color: var(--text-bright);
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Pricing */
.pricing-section {
    margin-bottom: 60px;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 32px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .pricing-grid { grid-template-columns: 1fr; }
}

.pricing-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 32px;
}

.pricing-featured {
    border-color: rgba(124, 92, 255, 0.4);
    box-shadow: 0 4px 24px rgba(124, 92, 255, 0.12);
}

.pricing-tier {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--purple);
    margin-bottom: 8px;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 20px;
}

.pricing-price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    margin-bottom: 24px;
}

.pricing-features li {
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li::before {
    content: "\2713 ";
    color: var(--teal);
    font-weight: 700;
    margin-right: 8px;
}

/* Footer */
.site-footer {
    margin-top: 60px;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--purple);
}

.footer-sep {
    color: var(--border-hover);
}

/* Legal Pages */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0 40px;
    line-height: 1.7;
}

.legal-page h1 {
    font-size: 2rem;
    color: var(--text-bright);
    margin-bottom: 8px;
}

.legal-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 32px;
}

.legal-page h2 {
    font-size: 1.25rem;
    color: var(--text-bright);
    margin-top: 32px;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}

.legal-page h3 {
    font-size: 1.05rem;
    color: var(--teal);
    margin-top: 20px;
    margin-bottom: 8px;
}

.legal-page p {
    margin-bottom: 12px;
    color: var(--text);
}

.legal-page ul {
    margin: 8px 0 16px 24px;
    color: var(--text);
}

.legal-page li {
    margin-bottom: 6px;
}

.legal-page a {
    color: var(--purple);
    text-decoration: none;
}

.legal-page a:hover {
    text-decoration: underline;
}

/* Print Styles */
@media print {
    body { background: #fff; color: #000; }
    .topnav, .btn, .status-btns, .detail-sidebar, .site-footer { display: none !important; }
    .card { border: none; padding: 0; }
    .generated-content { max-height: none; border: none; padding: 0; }
}
