/* ===== COMMON RESUME TEMPLATE STYLES & DESIGN TOKENS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --resume-radius: 8px;
    --resume-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Base Template Container */
.resume-template {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    background: #ffffff;
    color: #1e293b;
    font-family: var(--font-sans);
    line-height: 1.5;
    box-shadow: var(--resume-shadow);
    border-radius: var(--resume-radius);
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

.resume-template * {
    box-sizing: border-box;
}

/* Common Typography */
.resume-template h1,
.resume-template h2,
.resume-template h3,
.resume-template h4 {
    font-family: var(--font-heading);
    margin: 0;
    line-height: 1.25;
}

.resume-template a {
    color: inherit;
    text-decoration: none;
}

/* Common Photo / Avatar */
.resume-photo-circle {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.resume-photo-placeholder {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    margin: 0 auto;
    border: 3px solid #ffffff;
}

/* Common Skill Tags */
.skill-tag-badge {
    display: inline-block;
    padding: 4px 10px;
    margin: 3px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    background: #f1f5f9;
    color: #334155;
}

/* Clean Section Dividers */
.section-divider-line {
    height: 2px;
    background: #e2e8f0;
    margin: 12px 0 16px 0;
    border: none;
}

/* Common Bullet Lists for Job Descriptions */
.resume-bullet-list {
    margin: 6px 0 0 0;
    padding-left: 18px;
    list-style-type: disc;
}

.resume-bullet-list li {
    margin-bottom: 5px;
    font-size: inherit;
    line-height: 1.5;
    color: inherit;
}

.resume-bullet-list li:last-child {
    margin-bottom: 0;
}

/* Responsive adjustments for mobile preview */
@media screen and (max-width: 768px) {
    .resume-template {
        box-shadow: none;
        border-radius: 0;
    }
}

/* Print Styles for All Templates */
@media print {
    @page {
        margin: 0 !important;
        padding: 0 !important;
        size: A4 portrait;
    }
    
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    html, body {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        background: white !important;
    }
    
    .preview-container {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: white !important;
    }
    
    .preview-actions,
    .template-name-display,
    .template-switcher,
    button,
    .btn,
    .no-print {
        display: none !important;
    }
    
    .resume-preview {
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        background: transparent !important;
    }
    
    .resume-template {
        box-shadow: none !important;
        border-radius: 0 !important;
        max-width: 100% !important;
        width: 210mm !important;
        min-height: 297mm !important;
        margin: 0 auto !important;
        page-break-after: auto;
    }
}

/* Globally disable any legacy template switcher blocks on all screens */
.template-switcher,
.quick-template-switcher,
.test-template-switcher,
[class*="template-switcher"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    pointer-events: none !important;
}

