/* ===== Resume Template Styles ===== */

/* Shared Resume Styles */
.resume-preview {
    font-family: var(--font-sans);
    font-size: 11px;
    line-height: 1.5;
    color: #1f2937;
}

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

.resume-preview h1,
.resume-preview h2,
.resume-preview h3 {
    margin: 0;
    line-height: 1.3;
}

.resume-preview p {
    margin: 0;
}

.resume-preview ul {
    margin: 4px 0;
    padding-left: 16px;
}

.resume-preview li {
    margin-bottom: 2px;
}

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

.resume-section {
    margin-bottom: 16px;
}

.resume-section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #e5e7eb;
}

.resume-entry {
    margin-bottom: 12px;
}

.resume-entry:last-child {
    margin-bottom: 0;
}

.resume-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}

.resume-entry-title {
    font-weight: 600;
}

.resume-entry-subtitle {
    color: #6b7280;
    font-size: 10px;
}

.resume-entry-date {
    font-size: 10px;
    color: #6b7280;
    white-space: nowrap;
}

.resume-skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
    list-style: none;
}

.resume-skill-tag {
    padding: 2px 8px;
    background: #f3f4f6;
    border-radius: 4px;
    font-size: 10px;
}

/* ===== Template: Classic ===== */
.template-classic {
    padding: 40px;
}

.template-classic .resume-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #1e3a5f;
}

.template-classic .resume-name {
    font-size: 24px;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 4px;
}

.template-classic .resume-title {
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 12px;
}

.template-classic .resume-contact {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 10px;
    color: #6b7280;
}

.template-classic .resume-contact span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.template-classic .resume-section-title {
    color: #1e3a5f;
    border-bottom-color: #1e3a5f;
}

.template-classic .resume-summary {
    text-align: center;
    font-style: italic;
    color: #4b5563;
    padding: 0 24px;
}

/* ===== Template: Modern ===== */
.template-modern {
    display: grid;
    grid-template-columns: 200px 1fr;
    min-height: 100%;
}

.template-modern .resume-sidebar {
    background: linear-gradient(180deg, #8b5cf6 0%, #6d28d9 100%);
    color: white;
    padding: 32px 20px;
}

.template-modern .resume-main {
    padding: 32px 28px;
}

.template-modern .resume-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

.template-modern .resume-name {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4px;
}

.template-modern .resume-title {
    font-size: 11px;
    text-align: center;
    opacity: 0.9;
    margin-bottom: 24px;
}

.template-modern .sidebar-section {
    margin-bottom: 20px;
}

.template-modern .sidebar-section-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-bottom: 8px;
}

.template-modern .resume-contact {
    font-size: 9px;
}

.template-modern .resume-contact div {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    word-break: break-word;
}

.template-modern .resume-contact .icon {
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}

.template-modern .sidebar-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.template-modern .sidebar-skill {
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 8px;
}

.template-modern .sidebar-languages div {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    margin-bottom: 4px;
}

.template-modern .main-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #6d28d9;
    margin-bottom: 12px;
    padding-bottom: 4px;
    border-bottom: 2px solid #6d28d9;
}

.template-modern .resume-entry-title {
    color: #6d28d9;
}

/* ===== Template: Minimal ===== */
.template-minimal {
    padding: 48px 40px;
}

.template-minimal .resume-header {
    text-align: center;
    margin-bottom: 32px;
}

.template-minimal .resume-name {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.template-minimal .resume-title {
    font-size: 12px;
    color: #10b981;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 16px;
}

.template-minimal .resume-contact {
    display: flex;
    justify-content: center;
    gap: 24px;
    font-size: 10px;
    color: #6b7280;
}

.template-minimal .resume-section {
    margin-bottom: 24px;
}

.template-minimal .resume-section-title {
    font-size: 11px;
    font-weight: 600;
    color: #10b981;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid #10b981;
    margin-bottom: 12px;
    padding-bottom: 6px;
}

.template-minimal .resume-summary {
    font-size: 11px;
    color: #4b5563;
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.7;
}

.template-minimal .resume-entry {
    margin-bottom: 16px;
}

.template-minimal .resume-entry-header {
    margin-bottom: 6px;
}

.template-minimal .resume-skills-list {
    justify-content: center;
}

.template-minimal .resume-skill-tag {
    background: none;
    border: 1px solid #d1d5db;
    border-radius: 0;
    padding: 4px 12px;
}

/* ===== Template: ATS-Friendly ===== */
.template-ats {
    padding: 32px 40px;
    font-family: 'Arial', sans-serif;
}

.template-ats .resume-header {
    margin-bottom: 20px;
}

.template-ats .resume-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.template-ats .resume-title {
    font-size: 12px;
    color: #374151;
    margin-bottom: 8px;
}

.template-ats .resume-contact {
    font-size: 10px;
    color: #4b5563;
}

.template-ats .resume-contact span {
    margin-right: 12px;
}

.template-ats .resume-contact span::after {
    content: '|';
    margin-left: 12px;
    color: #9ca3af;
}

.template-ats .resume-contact span:last-child::after {
    content: none;
}

.template-ats .resume-section {
    margin-bottom: 16px;
}

.template-ats .resume-section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    padding-bottom: 2px;
    border-bottom: 1px solid #000;
}

.template-ats .resume-summary {
    font-size: 11px;
    line-height: 1.6;
}

.template-ats .resume-entry {
    margin-bottom: 12px;
}

.template-ats .resume-entry-header {
    margin-bottom: 4px;
}

.template-ats .resume-entry-title {
    font-weight: 700;
}

.template-ats .resume-entry-company {
    font-weight: 400;
}

.template-ats .resume-entry-bullets {
    padding-left: 20px;
    margin: 4px 0;
}

.template-ats .resume-entry-bullets li {
    margin-bottom: 2px;
}

.template-ats .resume-skills-list {
    display: block;
    padding: 0;
}

.template-ats .resume-skills-list li {
    display: inline;
}

.template-ats .resume-skills-list li::after {
    content: ' • ';
    color: #6b7280;
}

.template-ats .resume-skills-list li:last-child::after {
    content: none;
}

/* ===== Print Styles ===== */
@media print {
    .resume-preview {
        box-shadow: none;
        margin: 0;
        padding: 0;
    }
    
    .watermark {
        display: none !important;
    }
}

/* ===== Hero Preview Mini Resume ===== */
#heroPreview {
    font-size: 6px;
    padding: 12px;
}

#heroPreview .resume-header {
    text-align: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #1e3a5f;
}

#heroPreview .resume-name {
    font-size: 12px;
    font-weight: 700;
    color: #1e3a5f;
}

#heroPreview .resume-title {
    font-size: 8px;
    color: #6b7280;
    margin-top: 2px;
}

#heroPreview .resume-contact {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 5px;
    color: #9ca3af;
    margin-top: 6px;
}

#heroPreview .resume-section-title {
    font-size: 7px;
    font-weight: 700;
    color: #1e3a5f;
    margin-top: 10px;
    margin-bottom: 4px;
    padding-bottom: 2px;
    border-bottom: 1px solid #e5e7eb;
}

#heroPreview .resume-entry-title {
    font-size: 6px;
    font-weight: 600;
}

#heroPreview .resume-entry-subtitle {
    font-size: 5px;
    color: #9ca3af;
}

#heroPreview .placeholder-lines {
    margin-top: 4px;
}

#heroPreview .placeholder-line {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    margin-bottom: 3px;
}

#heroPreview .placeholder-line:nth-child(2) {
    width: 90%;
}

#heroPreview .placeholder-line:nth-child(3) {
    width: 75%;
}

#heroPreview .skill-pills {
    display: flex;
    gap: 4px;
    margin-top: 4px;
}

#heroPreview .skill-pill {
    padding: 2px 6px;
    background: #f3f4f6;
    border-radius: 8px;
    font-size: 5px;
    color: #6b7280;
}
