/* Smart Resume Builder Stylesheet */

:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --bg: #0f172a;
    --bg-panel: #1e293b;
    --border: rgba(255, 255, 255, 0.08);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --radius-lg: 16px;
    --radius-md: 12px;
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
    --transition: all 0.2s ease;
}

[data-theme="light"] {
    --bg: #f8fafc;
    --bg-panel: #ffffff;
    --border: rgba(15, 23, 42, 0.08);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.05);
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding-top: 70px;
    min-height: 100vh;
}

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

.tool-header {
    text-align: center;
    margin-bottom: 2rem;
}

.tool-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.75rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    background: linear-gradient(135deg, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tool-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Two-column Layout */
.workspace {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

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

/* Editor Panel (Left) */
.editor-panel {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    max-height: 85vh;
    overflow-y: auto;
}

.editor-section {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.5rem;
}

.editor-section h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    margin: 0 0 1.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
}

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

.form-group.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

input, textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.9rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text-main);
    box-sizing: border-box;
    transition: var(--transition);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

textarea {
    resize: vertical;
    min-height: 80px;
}

.repeater-item {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    position: relative;
    background: rgba(0, 0, 0, 0.05);
}

.btn-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
}

.btn-remove:hover {
    transform: scale(1.1);
}

.btn-add {
    width: 100%;
    padding: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px dashed var(--primary);
    border-radius: 8px;
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-add:hover {
    background: rgba(99, 102, 241, 0.05);
}

/* Preview Panel (Right) */
.preview-panel {
    position: sticky;
    top: 90px;
}

.preview-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.btn-builder {
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-panel);
    color: var(--text-main);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-builder:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.btn-builder.primary {
    background: var(--primary);
    color: white;
    border: none;
}

.btn-builder.primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

/* Resume Paper Sheet Layout (ATS Compliant Format) */
.resume-paper {
    background: #ffffff;
    color: #111111;
    width: 100%;
    aspect-ratio: 1 / 1.414;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    box-sizing: border-box;
    padding: 2.5rem;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    font-size: 9.5pt;
    line-height: 1.4;
}

/* Resume typography styling (Standard Professional Style) */
.resume-paper h2.name {
    font-family: 'Outfit', sans-serif;
    font-size: 20pt;
    font-weight: 700;
    margin: 0 0 5px;
    text-align: center;
    letter-spacing: -0.5px;
    color: #111111;
}

.resume-paper .contact-info {
    text-align: center;
    font-size: 8.5pt;
    color: #555555;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.resume-paper .contact-info span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.resume-paper .section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 11pt;
    font-weight: 700;
    text-transform: uppercase;
    color: #333333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 3px;
    margin: 1.25rem 0 0.5rem;
    letter-spacing: 0.5px;
}

.resume-paper .item-header {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 9.5pt;
    color: #222;
}

.resume-paper .item-sub {
    display: flex;
    justify-content: space-between;
    font-style: italic;
    font-size: 9pt;
    color: #555;
    margin-bottom: 4px;
}

.resume-paper ul.bullets {
    margin: 0 0 0.75rem;
    padding-left: 1.25rem;
    font-size: 9pt;
    color: #333;
}

.resume-paper ul.bullets li {
    margin-bottom: 2px;
}

.resume-paper .skills-grid {
    font-size: 9pt;
    color: #333;
    line-height: 1.5;
}

/* Hide print specifics on screen */
@media print {
    body {
        background: white !important;
        color: black !important;
        padding-top: 0 !important;
    }
    .tool-header, .editor-panel, .preview-controls, #global-navbar-container, .bg-blob, .app-footer {
        display: none !important;
    }
    .workspace {
        display: block !important;
    }
    .preview-panel {
        position: static !important;
        width: 100% !important;
    }
    .resume-paper {
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        aspect-ratio: auto !important;
    }
}
