:root {
    --primary: #2563eb;
    --primary-light: #eff6ff;
    --primary-border: #bfdbfe;
    --text-main: #1f2937;
    --text-muted: #374151; /* Ztmaveno pro lepší čitelnost vlastních textů */
    --bg-page: #f3f4f6;
    --bg-card: #ffffff;
    --border: #e5e7eb;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
    padding: 2rem 1rem;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 3.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

header {
    border-bottom: 2px solid var(--border);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.profile-img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-light);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.header-text {
    flex: 1;
}

h1 {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 0.25rem;
    letter-spacing: -0.5px;
}

h2.subtitle {
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 1rem;
}

.contact-info {
    display: flex;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.contact-info a:hover {
    color: var(--primary);
}

.section-title {
    font-size: 1.1rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 0.5rem;
    margin: 2.5rem 0 1.5rem;
}

.summary p {
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.job {
    margin-bottom: 2.5rem;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.25rem;
}

.job-title {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-main);
}

.job-title.spaced {
    margin-bottom: 0.5rem;
}

.job-title.spaced-top {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.job-date {
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 600;
}

.job-company {
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

ul {
    margin-left: 1.25rem;
    color: var(--text-muted);
}

li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

li::marker {
    color: var(--primary);
}

.tech-bullets {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border);
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.skill-tag {
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid var(--primary-border);
    padding: 0.4rem 1rem;
    border-radius: 99px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.skill-tag:hover {
    background: var(--primary);
    color: white;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.interests {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .container { padding: 2rem 1.5rem; }
    header { flex-direction: column; text-align: center; }
    .contact-info { justify-content: center; }
    .job-header { flex-direction: column; }
    .grid-2 { grid-template-columns: 1fr; }
}

.download-pdf {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    padding: 0.65rem 1.1rem;
    border-radius: 99px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    z-index: 1000;
}

.download-pdf:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.lang-switch {
    position: fixed;
    top: 5.25rem;
    right: 1.5rem;
    background: var(--bg-card);
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.65rem 1.1rem;
    border-radius: 99px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.lang-switch:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

@media print {
    @page {
        size: A4;
        margin: 12mm 14mm;
    }
    html, body {
        background: #fff !important;
        padding: 0 !important;
        margin: 0 !important;
        font-size: 10.5pt;
    }
    .container {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }
    .download-pdf, .lang-switch { display: none !important; }
    a { color: var(--text-main); text-decoration: none; }
    .skill-tag { break-inside: avoid; }
    .job, section { break-inside: avoid; page-break-inside: avoid; }
    header { break-after: avoid; page-break-after: avoid; }
    .section-title { break-after: avoid; page-break-after: avoid; margin-top: 1.25rem; }
    h1 { font-size: 1.9rem; }
    h2.subtitle { font-size: 1.05rem; }
    .profile-img { width: 100px; height: 100px; }
    .summary p, .job-company, ul, li { font-size: 10.5pt; }
}
