/* Resume Templates - Print & PDF Optimized */
.resume-template {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.4;
    color: #1a1a1a;
    max-width: 100%;
}

/* Modern Template */
.template-modern .res-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--accent-color, #2563eb);
}

.template-modern .res-name {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.template-modern .res-title {
    font-size: 18px;
    color: var(--accent-color, #2563eb);
    font-weight: 600;
    margin: 0 0 12px;
}

.template-modern .res-contact {
    font-size: 13px;
    color: #555;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.template-modern .res-section {
    margin-bottom: 24px;
}

.template-modern .res-section-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color, #2563eb);
    margin-bottom: 12px;
    padding-bottom: 4px;
    border-bottom: 1px solid #e0e0e0;
}

.template-modern .res-summary {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}

.template-modern .res-item {
    margin-bottom: 16px;
}

.template-modern .res-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
}

.template-modern .res-item-title {
    font-weight: 700;
    font-size: 15px;
    color: #1a1a1a;
}

.template-modern .res-item-subtitle {
    font-size: 14px;
    color: #555;
    font-weight: 600;
}

.template-modern .res-date {
    font-size: 13px;
    color: #777;
    font-style: italic;
}

.template-modern .res-item-desc {
    font-size: 13px;
    color: #555;
    margin-top: 4px;
    line-height: 1.5;
}

.template-modern .res-skills {
    font-size: 13px;
    line-height: 1.8;
}

/* Professional Template */
.template-professional {
    font-family: Georgia, 'Times New Roman', serif;
}

.template-professional .res-header {
    margin-bottom: 30px;
}

.template-professional .res-name {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #000;
    border-bottom: 3px solid #000;
    padding-bottom: 8px;
}

.template-professional .res-title {
    font-size: 16px;
    color: #444;
    font-style: italic;
    margin: 8px 0;
}

.template-professional .res-contact {
    font-size: 13px;
    color: #555;
    margin-top: 8px;
}

.template-professional .res-section {
    margin-bottom: 20px;
}

.template-professional .res-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    border-bottom: 1px solid #000;
    margin-bottom: 12px;
    padding-bottom: 4px;
    text-transform: uppercase;
}

.template-professional .res-item {
    margin-bottom: 14px;
}

.template-professional .res-item-title {
    font-weight: 700;
    font-size: 14px;
}

.template-professional .res-item-subtitle {
    font-style: italic;
    color: #555;
}

.template-professional .res-date {
    float: right;
    font-size: 13px;
    color: #666;
}

/* Minimal Template */
.template-minimal {
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.template-minimal .res-header {
    margin-bottom: 30px;
}

.template-minimal .res-name {
    font-size: 36px;
    font-weight: 300;
    letter-spacing: 2px;
    margin: 0 0 8px;
    color: #000;
    text-transform: uppercase;
}

.template-minimal .res-title {
    font-size: 16px;
    color: #666;
    font-weight: 400;
    letter-spacing: 1px;
}

.template-minimal .res-contact {
    font-size: 12px;
    color: #999;
    margin-top: 12px;
    letter-spacing: 0.5px;
}

.template-minimal .res-section {
    margin-bottom: 28px;
}

.template-minimal .res-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #999;
    margin-bottom: 16px;
}

.template-minimal .res-item {
    margin-bottom: 20px;
}

.template-minimal .res-item-title {
    font-size: 15px;
    font-weight: 600;
    color: #000;
    margin-bottom: 2px;
}

.template-minimal .res-item-subtitle {
    font-size: 14px;
    color: #666;
}

.template-minimal .res-date {
    font-size: 12px;
    color: #999;
    margin-left: 8px;
}

.template-minimal .res-item-desc {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    margin-top: 6px;
}

/* Creative Template */
.template-creative {
    font-family: 'Segoe UI', sans-serif;
}

.template-creative .res-header {
    background: var(--accent-color, #f59e0b);
    color: white;
    padding: 30px;
    margin: -20mm -20mm 30px -20mm;
    text-align: center;
}

.template-creative .res-name {
    font-size: 36px;
    font-weight: 800;
    margin: 0;
    color: white;
}

.template-creative .res-title {
    font-size: 18px;
    margin-top: 8px;
    opacity: 0.95;
    font-weight: 500;
}

.template-creative .res-contact {
    margin-top: 16px;
    font-size: 13px;
    opacity: 0.9;
}

.template-creative .res-section {
    margin-bottom: 24px;
}

.template-creative .res-section-title {
    color: var(--accent-color, #f59e0b);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.template-creative .res-section-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, var(--accent-color, #f59e0b), transparent);
}

.template-creative .res-item {
    margin-bottom: 18px;
    padding-left: 20px;
    border-left: 3px solid #eee;
}

.template-creative .res-item-title {
    font-weight: 700;
    font-size: 15px;
    color: #1a1a1a;
}

.template-creative .res-item-subtitle {
    color: var(--accent-color, #f59e0b);
    font-weight: 600;
    font-size: 14px;
}

.template-creative .res-date {
    font-size: 13px;
    color: #888;
    font-style: italic;
}

/* Executive Template */
.template-executive {
    font-family: 'Georgia', serif;
}

.template-executive .res-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 4px double #1a1a1a;
}

.template-executive .res-name {
    font-size: 40px;
    font-weight: 700;
    margin: 0;
    color: #000;
    letter-spacing: -1px;
}

.template-executive .res-title {
    font-size: 20px;
    color: #444;
    margin-top: 8px;
    font-weight: 400;
    font-style: italic;
}

.template-executive .res-contact {
    margin-top: 20px;
    font-size: 14px;
    color: #666;
    letter-spacing: 0.5px;
}

.template-executive .res-section {
    margin-bottom: 32px;
}

.template-executive .res-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
}

.template-executive .res-section-title::before,
.template-executive .res-section-title::after {
    content: '◆';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
    font-size: 12px;
}

.template-executive .res-section-title::before {
    left: 30%;
}

.template-executive .res-section-title::after {
    right: 30%;
}

.template-executive .res-item {
    margin-bottom: 24px;
    text-align: center;
}

.template-executive .res-item-title {
    font-size: 17px;
    font-weight: 700;
    color: #000;
    margin-bottom: 4px;
}

.template-executive .res-item-subtitle {
    font-size: 15px;
    color: #555;
    font-style: italic;
}

.template-executive .res-date {
    display: block;
    font-size: 13px;
    color: #888;
    margin-top: 4px;
}

.template-executive .res-item-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
    margin-top: 8px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* Print Optimization */
@media print {
    .resume-template {
        width: 100%;
        max-width: 210mm;
        margin: 0 auto;
    }
    
    .template-creative .res-header {
        margin: 0 0 30px 0;
    }
    
    body {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}

/* Utility Classes */
.res-bullet {
    margin-bottom: 4px;
    position: relative;
    padding-left: 12px;
}

.res-bullet::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color, #2563eb);
}

.res-skill-tag {
    display: inline-block;
    background: rgba(37, 99, 235, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    margin: 2px;
    font-size: 12px;
}