/* Zety Primo Infographic Resume Template Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

.zety-primo-template {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 38px 40px;
    box-sizing: border-box;
    color: #334155;
    line-height: 1.5;
}

/* Header */
.primo-header {
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 24px;
    margin-bottom: 26px;
}

.primo-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
}

.primo-monogram-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d9488 0%, #115e59 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.35);
    flex-shrink: 0;
}

.primo-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.primo-name {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
    margin: 0 0 4px 0;
    text-transform: uppercase;
}

.primo-headline {
    font-size: 1.15rem;
    font-weight: 600;
    color: #0d9488;
    letter-spacing: 0.2px;
}

.primo-contact-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
}

.primo-contact-pill {
    background: #f0fdfa;
    border: 1px solid #ccfbf1;
    color: #0f766e;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.84rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.primo-contact-pill i {
    color: #0d9488;
}

/* Two-Column Layout (Flex ensures multi-page columns fragment properly across pages in print) */
.primo-body-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 28px;
    width: 100%;
}

.primo-col-main {
    width: 63%;
    flex: 0 0 63%;
    min-width: 0;
}

.primo-col-side {
    width: 34%;
    flex: 0 0 34%;
    min-width: 0;
}

/* Section Header */
.primo-section {
    margin-bottom: 24px;
}

.primo-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.primo-section-icon {
    width: 30px;
    height: 30px;
    background: #0d9488;
    color: #ffffff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    box-shadow: 0 2px 6px rgba(13, 148, 136, 0.3);
}

.primo-section-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

/* Summary Card */
.primo-summary-card {
    background: #f8fafc;
    border-left: 3px solid #0d9488;
    padding: 12px 16px;
    border-radius: 0 6px 6px 0;
    font-size: 0.88rem;
    color: #334155;
    line-height: 1.6;
}

.primo-summary-bullets {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.primo-summary-bullets li {
    position: relative;
    padding-left: 14px;
    margin-bottom: 6px;
}

.primo-summary-bullets li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #0d9488;
    font-weight: bold;
}

/* Vertical Timeline Rail */
.primo-timeline-rail {
    position: relative;
    padding-left: 22px;
    border-left: 2px solid #0d9488;
    margin-left: 12px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.primo-timeline-block {
    position: relative;
}

.primo-node-dot {
    position: absolute;
    left: -28px;
    top: 5px;
    width: 10px;
    height: 10px;
    background: #0d9488;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #0d9488;
}

.primo-exp-headline {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
}

.primo-exp-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.primo-exp-dates {
    font-size: 0.8rem;
    font-weight: 600;
    color: #0f766e;
    background: #ccfbf1;
    padding: 2px 8px;
    border-radius: 12px;
}

.primo-exp-org {
    font-size: 0.88rem;
    font-weight: 600;
    color: #475569;
    margin: 2px 0 6px 0;
}

.primo-exp-bullets {
    font-size: 0.86rem;
    color: #475569;
    line-height: 1.5;
}

.primo-exp-bullets ul {
    margin: 4px 0 0 0;
    padding-left: 16px;
}

.primo-exp-bullets li {
    margin-bottom: 3px;
}

/* Skills Column */
.primo-skills-container {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.primo-skill-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 4px;
}

.primo-skill-pct {
    font-size: 0.76rem;
    color: #0d9488;
}

.primo-meter-track {
    background: #e2e8f0;
    height: 6px;
    border-radius: 10px;
    overflow: hidden;
}

.primo-meter-bar {
    background: linear-gradient(90deg, #0d9488, #2dd4bf);
    height: 100%;
    border-radius: 10px;
}

/* Tech Groups */
.primo-tech-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.primo-tech-group {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 12px;
}

.primo-tech-title {
    font-size: 0.84rem;
    font-weight: 700;
    color: #0f172a;
    display: block;
    margin-bottom: 2px;
}

.primo-tech-desc {
    font-size: 0.8rem;
    color: #475569;
    margin: 0;
}

/* Certifications */
.primo-cert-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.primo-cert-card {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
    background: #f0fdfa;
    border: 1px solid #ccfbf1;
    padding: 6px 10px;
    border-radius: 6px;
}

.primo-cert-icon {
    color: #0d9488;
}

/* Responsive */
@media (max-width: 768px) {
    .primo-body-grid {
        flex-direction: column;
    }
    .primo-col-main,
    .primo-col-side {
        width: 100%;
        flex: 0 0 100%;
    }
    .zety-primo-template {
        padding: 24px 18px;
    }
}

/* Print Optimization */
@media print {
    body {
        background: none !important;
        padding: 0 !important;
    }
    .zety-primo-template {
        box-shadow: none !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 10mm 12mm !important;
        border-radius: 0 !important;
    }
    .primo-body-grid {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        gap: 20px !important;
    }
    .primo-col-main {
        width: 63% !important;
        flex: 0 0 63% !important;
    }
    .primo-col-side {
        width: 34% !important;
        flex: 0 0 34% !important;
    }
    .primo-monogram-circle, .primo-section-icon, .primo-meter-bar {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    .primo-section {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    .primo-section-header {
        break-after: avoid;
        page-break-after: avoid;
    }
    .primo-timeline-block, .primo-tech-group, .primo-cert-card, .primo-skill-meter {
        page-break-inside: avoid;
        break-inside: avoid;
    }
}
