/* ===========================
   CV Mateusz Juja — Style
   Minimalistyczny / Elegancki
   =========================== */

:root {
    --color-text: #1a1a1a;
    --color-text-light: #555;
    --color-text-muted: #888;
    --color-accent: #2563eb;
    --color-accent-light: #dbeafe;
    --color-bg: #ffffff;
    --color-border: #e5e7eb;
    --color-section-bg: #f9fafb;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    padding: 56px 0 40px;
    border-bottom: 2px solid var(--color-text);
}

.header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.subtitle {
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--color-accent);
    margin-top: 6px;
}

.contact {
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.contact .separator {
    margin: 0 8px;
    color: var(--color-text-muted);
}

/* Sections */
.section {
    padding: 32px 0;
    border-bottom: 1px solid var(--color-border);
}

.section:last-of-type {
    border-bottom: none;
}

.section h2 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

/* Profile */
.profile-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    max-width: 680px;
}

.profile-text em {
    color: var(--color-accent);
    font-style: italic;
}

/* Experience */
.experience-item {
    margin-bottom: 28px;
}

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

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 16px;
}

.experience-header h3 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.company {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-top: 2px;
}

.date {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    white-space: nowrap;
    flex-shrink: 0;
    padding-top: 2px;
}

.experience-item ul {
    list-style: none;
    padding-left: 0;
}

.experience-item li {
    position: relative;
    padding-left: 16px;
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 4px;
}

.experience-item li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--color-text-muted);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.skill-category h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text);
}

.skill-category ul {
    list-style: none;
    padding: 0;
}

.skill-category li {
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.7;
    padding-left: 14px;
    position: relative;
}

.skill-category li::before {
    content: '·';
    position: absolute;
    left: 0;
    font-weight: 700;
    color: var(--color-accent);
}

/* Tools */
.tools-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tool-group h4 {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.tool-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.tag-daily {
    background: var(--color-accent);
    color: #fff;
}

.tag-regular {
    background: var(--color-accent-light);
    color: var(--color-accent);
}

.tag-experience {
    background: var(--color-section-bg);
    color: var(--color-text-light);
    border: 1px solid var(--color-border);
}

/* Principles / Jak pracuję */
.principles-text p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 10px;
}

.principles-text p:last-child {
    margin-bottom: 0;
}

/* Projects */
.project-item {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
}

.project-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.project-item h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.project-item p {
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 8px;
}

.project-tech {
    font-size: 0.78rem;
    color: var(--color-accent);
    font-weight: 500;
}

/* Languages */
.languages {
    font-size: 0.95rem;
}

.languages .separator {
    margin: 0 12px;
    color: var(--color-text-muted);
}

/* Footer */
footer {
    padding: 32px 0 48px;
}

.rodo {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    max-width: 600px;
}

/* ===========================
   Responsive
   =========================== */

@media (max-width: 640px) {
    body {
        padding: 0 16px;
    }

    .header {
        padding: 32px 0 24px;
    }

    .header h1 {
        font-size: 1.75rem;
    }

    .experience-header {
        flex-direction: column;
        gap: 4px;
    }

    .date {
        font-size: 0.8rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ===========================
   Print (PDF export)
   =========================== */

@media print {
    @page {
        size: A4;
        margin: 0;
    }

    html {
        font-size: 10px;
    }

    body {
        max-width: 100%;
        padding: 0;
        color: #000;
    }

    .header {
        padding: 0 0 10px;
        border-bottom-width: 1.5px;
    }

    .header h1 {
        font-size: 1.8rem;
    }

    .section {
        padding: 10px 0;
    }

    .section h2 {
        margin-bottom: 12px;
    }

    .experience-item {
        break-inside: avoid;
        margin-bottom: 10px;
    }

    .experience-item li {
        margin-bottom: 2px;
    }

    .project-item {
        break-inside: avoid;
    }

    .skills-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .skill-category li {
        line-height: 1.5;
    }

    .principles-text p {
        margin-bottom: 6px;
    }

    .tag {
        border: 1px solid #999;
        background: none !important;
        color: #000 !important;
        padding: 2px 8px;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .tag-daily {
        background: #2563eb !important;
        color: #fff !important;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .tag-regular {
        background: #dbeafe !important;
        color: #2563eb !important;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .tool-group {
        margin-bottom: 0;
    }

    .tools-section {
        gap: 10px;
    }

    footer {
        padding: 8px 0;
    }

    .rodo {
        font-size: 0.65rem;
    }

    a {
        color: inherit;
        text-decoration: none;
    }
}
