/* ========================================
   Preview Panel Styles
   A4 kagit gorunumu, yakinlastirma
   ======================================== */

/* --- A4 Paper --- */
.preview-paper {
    width: 210mm;
    min-height: 297mm;
    background-color: #ffffff;
    box-shadow: var(--shadow-lg);
    padding: 20mm 18mm;
    font-family: 'Plus Jakarta Sans', Arial, Helvetica, sans-serif;
    font-size: 10pt;
    line-height: 1.4;
    color: #1a1a1a;
    transform-origin: top center;
    transition: transform var(--transition-base);
    flex-shrink: 0;
}

/* --- Zoom Controls --- */
.zoom-controls {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.zoom-controls__label {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    min-width: 36px;
    text-align: center;
}

/* === CV Preview Template Styles === */

/* --- Personal Info --- */
.cv-header {
    text-align: center;
    margin-bottom: 14pt;
    padding-bottom: 10pt;
    border-bottom: 1.5pt solid var(--cv-accent-color, #1a1a1a);
}

.cv-name {
    font-size: 20pt;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 2pt;
    color: #1a1a1a;
}

.cv-title {
    font-size: 11pt;
    color: #525252;
    font-weight: 400;
    margin-bottom: 6pt;
}

.cv-contact {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6pt;
    font-size: 9pt;
    color: #525252;
}

.cv-contact__item {
    display: inline;
}

.cv-contact__separator {
    color: #d4d4d4;
}

/* --- Section --- */
.cv-section {
    margin-bottom: 12pt;
}

.cv-section__title {
    font-size: 11pt;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #1a1a1a;
    padding-bottom: 3pt;
    border-bottom: 0.75pt solid var(--cv-accent-color, #d4d4d4);
    margin-bottom: 8pt;
}

/* --- Experience / Education Item --- */
.cv-item {
    margin-bottom: 10pt;
}

.cv-item:last-child {
    margin-bottom: 0;
}

.cv-item__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1pt;
}

.cv-item__primary {
    font-weight: 600;
    font-size: 10.5pt;
}

.cv-item__date {
    font-size: 9pt;
    color: #525252;
    white-space: nowrap;
}

.cv-item__secondary {
    font-size: 9.5pt;
    color: #525252;
    margin-bottom: 3pt;
}

.cv-item__bullets {
    padding-left: 14pt;
}

.cv-item__bullets li {
    position: relative;
    font-size: 9.5pt;
    line-height: 1.45;
    margin-bottom: 2pt;
    padding-left: 4pt;
    list-style-type: disc;
    color: #333;
}

/* --- Skills --- */
.cv-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 3pt 12pt;
    font-size: 9.5pt;
}

.cv-skill-category {
    margin-bottom: 3pt;
}

.cv-skill-category__label {
    font-weight: 600;
    font-size: 9.5pt;
}

.cv-skill-category__items {
    font-size: 9.5pt;
    color: #333;
}

/* --- Languages --- */
.cv-languages {
    display: flex;
    flex-wrap: wrap;
    gap: 4pt 16pt;
    font-size: 9.5pt;
}

.cv-language__name {
    font-weight: 600;
}

.cv-language__level {
    color: #525252;
}

/* --- Summary --- */
.cv-summary {
    font-size: 9.5pt;
    line-height: 1.5;
    color: #333;
    margin-bottom: 0;
}

/* --- Empty State --- */
.preview-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 400px;
    color: var(--color-text-muted);
    text-align: center;
    padding: var(--spacing-3xl);
}

.preview-empty__icon {
    width: 48px;
    height: 48px;
    color: var(--color-border);
    margin-bottom: var(--spacing-lg);
}

.preview-empty__text {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--spacing-xs);
}

.preview-empty__hint {
    font-size: var(--font-size-sm);
}

/* === Template Variants === */

/* --- Modern Template --- */
.cv-template-modern .cv-header {
    border-bottom-color: var(--cv-accent-color, #2563eb);
    border-bottom-width: 2pt;
}

.cv-template-modern .cv-section__title {
    color: var(--cv-accent-color, #2563eb);
    border-bottom-color: var(--cv-accent-color, #dbeafe);
}

.cv-template-modern .cv-name {
    color: #1a1a1a;
}

/* --- Minimal Template --- */
.cv-template-minimal .cv-header {
    text-align: left;
    border-bottom: none;
    padding-bottom: 6pt;
}

.cv-template-minimal .cv-contact {
    justify-content: flex-start;
}

.cv-template-minimal .cv-section__title {
    font-size: 10pt;
    letter-spacing: 0.08em;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 6pt;
    color: #525252;
}

.cv-template-minimal .cv-name {
    font-size: 18pt;
}

/* --- Justify Text Alignment --- */
.cv-justify .cv-summary {
    text-align: justify;
}

.cv-justify .cv-item__bullets li {
    text-align: justify;
}

.cv-justify .cv-item__secondary {
    text-align: justify;
}

/* --- Compact Mode (Scale down layout and fonts) --- */
.cv-compact {
    padding: 10mm 10mm !important;
}

.cv-compact .cv-header {
    margin-bottom: 8pt !important;
    padding-bottom: 6pt !important;
}

.cv-compact .cv-section {
    margin-bottom: 8pt !important;
}

.cv-compact .cv-section__title {
    font-size: 10pt !important;
    margin-bottom: 6pt !important;
}

.cv-compact .cv-item {
    margin-bottom: 6pt !important;
}

.cv-compact .cv-item__bullets li {
    font-size: 8.5pt !important;
    margin-bottom: 1px !important;
}

.cv-compact .cv-summary,
.cv-compact .cv-item__primary,
.cv-compact .cv-item__secondary,
.cv-compact .cv-item__date,
.cv-compact .cv-skill-category__items,
.cv-compact .cv-skills-grouped,
.cv-compact .cv-languages span {
    font-size: 8.5pt !important;
}
