/* ============================================================
   CV Generator - Main Application Stylesheet
   Matches all Twig template class names
   ============================================================ */

/* ---------- CSS Custom Properties (Theme) ---------- */
:root {
    /* Brand colors */
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    --secondary: #7c3aed;
    --secondary-light: #8b5cf6;
    --secondary-dark: #6d28d9;
    --accent: #06b6d4;
    --accent-light: #22d3ee;
    --accent-dark: #0891b2;

    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Semantic */
    --success: #16a34a;
    --success-light: #dcfce7;
    --error: #dc2626;
    --error-light: #fee2e2;
    --warning: #d97706;
    --warning-light: #fef3c7;
    --info: #2563eb;
    --info-light: #dbeafe;

    /* Surfaces */
    --bg-body: #f0f2f5;
    --bg-card: var(--white);
    --bg-navbar: rgba(255, 255, 255, 0.72);

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

    /* Borders */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;

    /* Layout */
    --navbar-height: 64px;
    --container-max: 1200px;
    --container-narrow: 720px;
}

/* ---------- Reset / Normalize ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    line-height: 1.5;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--gray-800);
    background-color: var(--bg-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img,
svg,
video,
canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

ul,
ol {
    list-style: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

table {
    border-collapse: collapse;
    width: 100%;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--gray-900);
    margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

small {
    font-size: 0.875rem;
}

.text-muted {
    color: var(--gray-500);
}

/* ---------- Main content (fixed navbar + footer) ---------- */
.main-content {
    flex: 1;
    padding-top: calc(var(--navbar-height) + 1.5rem);
    padding-bottom: 2rem;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--navbar-height);
    display: flex;
    align-items: center;
    background: var(--bg-navbar);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-xs);
    transition: background var(--transition-base), box-shadow var(--transition-base);
}

.navbar-container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gray-900);
    text-decoration: none;
}

.navbar-brand:hover {
    color: var(--primary);
}

.navbar-toggle {
    display: none;
    padding: 0.5rem;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--gray-700);
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.navbar-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: color var(--transition-fast), background var(--transition-fast);
    text-decoration: none;
}

.navbar-link:hover {
    color: var(--primary);
    background: var(--info-light);
}

.navbar-auth {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar-username {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    text-decoration: none;
    line-height: 1.5;
}

.btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--error);
    color: var(--white);
    border-color: var(--error);
}

.btn-danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
    color: var(--white);
}

.btn-sm {
    padding: 0.375rem 0.875rem;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1.0625rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn:disabled,
.btn.disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    background: linear-gradient(160deg, var(--white) 0%, var(--info-light) 50%, #ede9fe 100%);
    border-bottom: 1px solid var(--gray-200);
    padding: 4rem 1rem 3rem;
}

.hero-content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.hero-text {
    flex: 1;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--gray-600);
    max-width: 550px;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-illustration {
    flex: 0 0 auto;
}

.hero-cv-mockup {
    width: 220px;
    height: 310px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border: 1px solid var(--gray-200);
    transform: rotate(2deg);
}

.mockup-header {
    width: 60%;
    height: 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-sm);
}

.mockup-line {
    width: 100%;
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-sm);
}

.mockup-line--short {
    width: 40%;
}

.mockup-line--medium {
    width: 70%;
}

/* ============================================================
   FEATURES SECTION
   ============================================================ */
.features {
    padding: 5rem 1rem;
    background: var(--white);
}

.section-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1rem;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.section-subtitle {
    text-align: center;
    color: var(--gray-500);
    max-width: 560px;
    margin: 0 auto 2.5rem;
    font-size: 1.05rem;
}

.section-cta {
    text-align: center;
    margin-top: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
}

.feature-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--info-light), #ede9fe);
    border-radius: var(--radius-lg);
    font-size: 1.5rem;
    color: var(--primary);
}

.feature-title {
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.feature-description {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 0;
}

/* ============================================================
   TEMPLATES PREVIEW & GALLERY SECTIONS
   ============================================================ */
.templates-preview {
    padding: 5rem 1rem;
    background: var(--gray-50);
}

.templates-section {
    padding: 2rem 0;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.template-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
    cursor: pointer;
    position: relative;
}

.template-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.template-thumbnail {
    position: relative;
    aspect-ratio: 210 / 297;
    overflow: hidden;
    background: var(--gray-100);
}

.template-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.template-card:hover .template-thumbnail img {
    transform: scale(1.05);
}

.template-overlay {
    position: absolute;
    inset: 0;
    background: rgba(37, 99, 235, 0.0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background var(--transition-base);
}

.template-card:hover .template-overlay {
    background: rgba(37, 99, 235, 0.12);
}

.template-overlay .btn {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity var(--transition-base), transform var(--transition-base);
}

.template-card:hover .template-overlay .btn {
    opacity: 1;
    transform: translateY(0);
}

.template-info {
    padding: 1rem 1.25rem;
}

.template-name {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.template-description {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
}

.template-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.template-category {
    font-size: 0.75rem;
    color: var(--gray-400);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.template-preview-large {
    width: 100%;
    min-height: 400px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================================
   FILTER BAR
   ============================================================ */
.filter-bar {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding: 0.75rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-xs);
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    color: var(--primary);
    background: var(--info-light);
}

.filter-btn--active {
    color: var(--primary);
    background: var(--info-light);
    border-color: var(--primary-light);
    font-weight: 600;
}

/* ============================================================
   HOW IT WORKS SECTION
   ============================================================ */
.how-it-works {
    padding: 5rem 1rem;
    background: var(--white);
}

.steps-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
}

.step-card {
    flex: 0 1 280px;
    text-align: center;
    padding: 2rem 1.5rem;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    font-weight: 700;
    font-size: 1.125rem;
    border-radius: var(--radius-full);
}

.step-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--info-light);
    color: var(--primary);
    font-size: 1.25rem;
    border-radius: var(--radius-lg);
}

.step-title {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.step-description {
    font-size: 0.875rem;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 0;
}

.step-connector {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 4rem;
    color: var(--gray-300);
    font-size: 1.25rem;
}

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
    padding: 2rem 0 1rem;
}

.page-title {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-subtitle {
    color: var(--gray-500);
    font-size: 1rem;
    margin-bottom: 0;
}

/* ============================================================
   AUTH FORMS (Login / Register)
   ============================================================ */
.auth-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--navbar-height) - 100px);
    padding: 2rem 1rem;
}

.auth-container {
    width: 100%;
    max-width: 480px;
}

.auth-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    border: 1px solid var(--gray-200);
}

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

.auth-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    font-size: 1.5rem;
    border-radius: var(--radius-lg);
}

.auth-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--gray-500);
    font-size: 0.9375rem;
    margin-bottom: 0;
}

.auth-form {
    margin-bottom: 0;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.auth-footer p {
    margin-bottom: 0;
}

.auth-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ============================================================
   FORMS (General)
   ============================================================ */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group--row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.375rem;
}

.form-label-sm {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 0.25rem;
}

.form-input {
    display: block;
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    color: var(--gray-800);
    background: var(--white);
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    outline: none;
}

.form-input::placeholder {
    color: var(--gray-400);
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-input-sm {
    padding: 0.4rem 0.625rem;
    font-size: 0.8125rem;
}

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

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon .form-input {
    padding-right: 2.75rem;
}

.input-icon-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.25rem;
    color: var(--gray-400);
    background: none;
    border: none;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.input-icon-btn:hover {
    color: var(--gray-700);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.form-checkbox input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: var(--primary);
}

.checkmark {
    /* Custom checkbox styling placeholder */
}

/* Symfony form error styling */
.form-group ul {
    margin-top: 0.25rem;
}

.form-group ul li {
    font-size: 0.8125rem;
    color: var(--error);
}

/* ============================================================
   FLASH MESSAGES / ALERTS
   ============================================================ */
.flash-container {
    position: fixed;
    top: calc(var(--navbar-height) + 1rem);
    right: 1rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 420px;
    width: 100%;
}

.alert {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    font-size: 0.9rem;
    line-height: 1.5;
    animation: slideInRight 0.3s ease forwards;
}

.alert-content {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    flex: 1;
}

.alert-content i {
    margin-top: 2px;
    flex-shrink: 0;
}

.alert-close {
    flex-shrink: 0;
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    opacity: 0.5;
    color: inherit;
    padding: 0;
    line-height: 1;
}

.alert-close:hover {
    opacity: 1;
}

.alert-success {
    background: var(--success-light);
    border: 1px solid #bbf7d0;
    color: #166534;
}

.alert-error,
.alert-danger {
    background: var(--error-light);
    border: 1px solid #fecaca;
    color: #991b1b;
}

.alert-warning {
    background: var(--warning-light);
    border: 1px solid #fde68a;
    color: #92400e;
}

.alert-info {
    background: var(--info-light);
    border: 1px solid #bfdbfe;
    color: #1e40af;
    animation: none;
    box-shadow: none;
}

.alert-link {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

/* ============================================================
   DASHBOARD SECTION (CV List)
   ============================================================ */
.dashboard-section {
    padding: 1rem 0;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.dashboard-header-text {
    flex: 1;
}

.dashboard-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.cv-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.cv-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.cv-card-thumbnail {
    aspect-ratio: 210 / 297;
    background: var(--gray-100);
    position: relative;
    overflow: hidden;
}

.cv-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cv-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--gray-300);
}

.cv-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(37, 99, 235, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-base);
}

.cv-card:hover .cv-card-overlay {
    background: rgba(37, 99, 235, 0.12);
}

.cv-card-overlay .btn {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity var(--transition-base), transform var(--transition-base);
}

.cv-card:hover .cv-card-overlay .btn {
    opacity: 1;
    transform: translateY(0);
}

.cv-card-body {
    padding: 1rem 1.25rem;
}

.cv-card-title {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cv-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cv-card-template,
.cv-card-date {
    font-size: 0.75rem;
    color: var(--gray-400);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.cv-card-actions {
    display: flex;
    gap: 0.25rem;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--gray-100);
}

.cv-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-md);
    color: var(--gray-500);
    background: transparent;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
    font-size: 0.875rem;
}

.cv-action-btn:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.cv-action-form {
    display: inline;
}

.cv-action-btn--danger:hover {
    background: var(--error-light);
    color: var(--error);
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray-400);
}

.empty-state-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--gray-300);
}

.empty-state-title {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.empty-state-description {
    color: var(--gray-500);
    max-width: 400px;
    margin: 0 auto 1.5rem;
}

/* ============================================================
   PROFILE SECTION
   ============================================================ */
.profile-section {
    padding: 1rem 0;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 700px;
}

.profile-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.profile-card--danger {
    border-color: #fecaca;
}

.profile-card--danger .profile-card-header {
    background: var(--error-light);
    color: #991b1b;
}

.profile-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.profile-card-header h2 {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0;
}

.profile-card-body {
    padding: 1.5rem;
}

.profile-form {
    /* Container for profile forms */
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-md);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

/* ============================================================
   MODAL
   ============================================================ */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000;
}

.modal.modal--open {
    display: block;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
    animation: scaleIn 0.2s ease forwards;
}

.modal-content.modal-lg {
    max-width: 720px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.modal-header h3 {
    margin-bottom: 0;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-close {
    font-size: 1.5rem;
    color: var(--gray-400);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    background: none;
    border: none;
}

.modal-close:hover {
    color: var(--gray-700);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-200);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 2rem 0;
    margin-top: auto;
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-300);
    font-weight: 500;
    font-size: 0.9rem;
}

.footer-copy {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideOutRight {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(100%); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

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

.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Tablet (max 1024px) */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-illustration {
        display: none;
    }

    .hero-content {
        justify-content: center;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .steps-grid {
        flex-wrap: wrap;
    }

    .step-connector {
        display: none;
    }
}

/* Mobile-large (max 768px) */
@media (max-width: 768px) {
    :root {
        --navbar-height: 56px;
    }

    .navbar-toggle {
        display: flex;
    }

    .navbar-menu {
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        gap: 0.5rem;
        transform: translateX(100%);
        transition: transform var(--transition-base);
        z-index: 999;
        overflow-y: auto;
    }

    .navbar-menu.open {
        transform: translateX(0);
    }

    .navbar-links {
        flex-direction: column;
    }

    .navbar-link {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    .navbar-auth {
        flex-direction: column;
        margin-left: 0;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--gray-200);
    }

    .navbar-user {
        flex-direction: column;
        align-items: stretch;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .templates-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.25rem;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-actions {
        flex-direction: column;
    }

    .auth-card {
        padding: 1.5rem;
    }

    .steps-grid {
        flex-direction: column;
        align-items: center;
    }

    .step-connector {
        display: none;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .hero {
        padding: 2.5rem 1rem 2rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Small mobile (max 480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .templates-grid {
        grid-template-columns: 1fr;
    }

    .cv-grid {
        grid-template-columns: 1fr;
    }

    .flash-container {
        right: 0.5rem;
        left: 0.5rem;
        max-width: none;
    }

    .filter-bar {
        flex-direction: column;
    }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
    .navbar,
    .footer,
    .flash-container,
    .modal {
        display: none !important;
    }

    body {
        background: var(--white);
    }

    .main-content {
        padding-top: 0;
    }
}
