/* Resume Reviewer AI — Dark Theme Styles */

:root {
    --bg: #0f1117;
    --bg-card: #1a1d28;
    --bg-input: #232738;
    --text: #e1e4ed;
    --text-muted: #8b8fa3;
    --accent: #6c63ff;
    --accent-hover: #5a52e0;
    --green: #34d399;
    --red: #f87171;
    --orange: #fbbf24;
    --border: #2a2d3a;
    --border-radius: 12px;
}

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

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

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Hero */
.hero {
    text-align: center;
    padding: 4rem 0 3rem;
}

.badge {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6c63ff, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(108, 99, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--accent);
}

.btn-secondary:hover {
    background: var(--accent);
    color: white;
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 3rem 0;
}

.feature-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
}

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

.feature-card h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

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

/* Pricing */
.pricing {
    text-align: center;
    margin: 3rem 0;
}

.pricing h2 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.pricing-card {
    background: var(--bg-card);
    border: 2px solid var(--accent);
    border-radius: var(--border-radius);
    padding: 2rem;
    max-width: 350px;
    margin: 0 auto;
}

.price {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.price-note {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: normal;
}

.pricing-card .btn {
    margin-top: 1.5rem;
}

/* Upload Form */
.upload-form {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
    margin: 2rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.file-input {
    width: 100%;
    padding: 1rem;
    background: var(--bg-input);
    border: 2px dashed var(--border);
    border-radius: var(--border-radius);
    color: var(--text);
    cursor: pointer;
}

.file-input:hover {
    border-color: var(--accent);
}

textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
}

textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.divider {
    text-align: center;
    margin: 1.5rem 0;
    border-top: 1px solid var(--border);
    position: relative;
}

.divider span {
    background: var(--bg-card);
    padding: 0 1rem;
    position: relative;
    top: -0.7rem;
    color: var(--text-muted);
}

.error-banner {
    background: rgba(248, 113, 113, 0.15);
    border: 1px solid var(--red);
    color: var(--red);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
}

.back-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.back-link:hover {
    color: var(--accent);
}

/* Report Page */
.score-hero {
    text-align: center;
    margin: 2rem 0;
}

.big-score {
    display: inline-block;
    padding: 2rem 3rem;
    border-radius: 50%;
    border: 4px solid;
}

.big-score.score-good { border-color: var(--green); }
.big-score.score-ok { border-color: var(--orange); }
.big-score.score-bad { border-color: var(--red); }

.score-number {
    font-size: 4rem;
    font-weight: 800;
}

.score-label {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.score-text {
    margin-top: 0.5rem;
    font-size: 1rem;
    color: var(--text-muted);
}

/* Score Grid */
.scores-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 2rem 0;
}

.score-card {
    background: var(--bg-card);
    padding: 1.2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
}

.score-card h4 {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.score-bar {
    height: 8px;
    background: var(--bg-input);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.score-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--green));
    border-radius: 4px;
    transition: width 1s ease;
}

.score-value {
    font-weight: 700;
    font-size: 0.9rem;
}

/* Section Cards */
.section-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
    margin: 1.5rem 0;
}

.section-card h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.green-border { border-left: 4px solid var(--green); }
.red-border { border-left: 4px solid var(--red); }

.section-card ul, .section-card ol {
    padding-left: 1.2rem;
}

.section-card li {
    margin-bottom: 0.5rem;
    color: var(--text);
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.cta-section {
    text-align: center;
    margin: 2rem 0;
}

footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 600px) {
    h1 { font-size: 2rem; }
    .features { grid-template-columns: 1fr; }
    .scores-grid { grid-template-columns: 1fr; }
    .two-col { grid-template-columns: 1fr; }
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 17, 23, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-card {
    background: var(--bg-card);
    border: 1px solid var(--accent);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    max-width: 420px;
    width: 90%;
    text-align: center;
}

.spinner {
    width: 48px; height: 48px;
    border: 4px solid var(--border);
    border-top: 4px solid var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1.5rem;
}

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

.loading-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.progress-steps {
    text-align: left;
    margin-bottom: 1rem;
}

.step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
}

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

.step-icon { font-size: 1.1rem; }
.step-text { flex: 1; font-size: 0.95rem; }
.step-status { font-size: 1rem; min-width: 24px; text-align: center; }
.step-status.pending { color: var(--text-muted); }
.step-status.processing { color: var(--accent); animation: pulse 1s infinite; }
.step-status.done { color: var(--green); }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading-hint {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 1rem;
}

/* Email Input */
.email-form .form-group-inline {
    display: flex;
    gap: 0.5rem;
}

.email-input {
    flex: 1;
    padding: 0.8rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    color: var(--text);
    font-size: 1rem;
}

.email-input:focus {
    outline: none;
    border-color: var(--accent);
}

/* Usage Banner */
.usage-banner {
    background: rgba(108, 99, 255, 0.12);
    border: 1px solid var(--accent);
    color: var(--text);
    padding: 0.8rem 1.2rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
    font-size: 0.95rem;
    text-align: center;
}

/* Premium Upsell */
.premium-upsell {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.15), rgba(52, 211, 153, 0.1));
    border: 2px solid var(--accent);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.premium-upsell h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, #6c63ff, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.premium-upsell p {
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    font-size: 1rem;
}

.premium-upsell .btn {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
}

/* Improved Resume Text Box */
.improved-text-box {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    max-height: 600px;
    overflow-y: auto;
}

.improved-text-box pre {
    white-space: pre-wrap;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text);
    margin: 0;
}

