/* =========================================================
   CV + Publikační činnost — page-specific styles
   (globální tokeny + reset jsou ve style.css)
   ========================================================= */

/* ── PAGE HERO ── */
.page-hero {
    position: relative;
    z-index: 1;
    padding: clamp(48px, 7vh, 80px) 0 clamp(40px, 5vh, 64px);
    border-bottom: 1px solid var(--border);
}

.page-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.08;
    color: var(--text-1);
    margin: 0 0 16px;
}

.page-title .gradient-text {
    background: linear-gradient(135deg, var(--brand-bright) 0%, var(--brand-green) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-desc {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-2);
    line-height: 1.7;
    max-width: 520px;
}

/* CTA (pokud už máš .btn v design systému, klidně to smaž a použij .btn .btn-secondary) */
.cv-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-mid);
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-1);
    transition: all .2s;
    cursor: pointer;
}

.cv-download-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--brand);
    color: var(--brand-bright);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

/* ── CV LAYOUT ── */
.cv-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}

/* ── SIDEBAR ── */
.cv-sidebar {
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Boxy */
.cv-profile-box,
.cv-skills-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.cv-profile-box {
    border-radius: 18px;
    padding: 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cv-profile-box::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--brand-green), var(--brand-yellow));
}

.cv-avatar {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    border: 2px solid rgba(78, 146, 240, .25);
    margin: 0 auto 16px;
    overflow: hidden;
}

.cv-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cv-fullname {
    font-size: 20px;
    font-weight: 900;
    color: var(--text-1);
    letter-spacing: -.4px;
    margin: 0 0 5px;
}

.cv-jobtitle {
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-bright);
    margin: 0 0 20px;
    line-height: 1.4;
}

.cv-contact-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.cv-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
    padding: 8px 10px;
    background: var(--bg-subtle);
    border-radius: 8px;
}

.cv-contact-item a {
    color: var(--brand-bright);
    transition: opacity .18s;
}

.cv-contact-item a:hover {
    opacity: .8;
}

.cv-skills-box {
    border-radius: 16px;
    padding: 24px;
}

.cv-box-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 16px;
}

.skill-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.skill-tag {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    color: var(--text-2);
}

.skill-tag.primary {
    color: var(--brand-bright);
    background: rgba(78, 146, 240, .08);
    border-color: rgba(78, 146, 240, .2);
}

.skill-tag.green {
    color: var(--brand-green);
    background: rgba(46, 196, 160, .08);
    border-color: rgba(46, 196, 160, .2);
}

/* ── MAIN CV ── */
.cv-main {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ── CV SECTION ── */
.cv-section {
    padding: clamp(32px, 4vw, 48px) 0;
    border-bottom: 1px solid var(--border);
}

.cv-section:last-child {
    border-bottom: 0;
}

.cv-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 28px;
}

.cv-section-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.cv-section-title {
    font-size: 18px;
    font-weight: 900;
    color: var(--text-1);
    letter-spacing: -.3px;
}

/* ── CV ENTRIES ── */
.cv-entries {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cv-entry {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 20px;
    align-items: start;
}

.cv-entry-year {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-3);
    padding-top: 3px;
    text-align: right;
    border-right: 2px solid var(--border);
    padding-right: 20px;
    line-height: 1.5;
}

.cv-entry-year .current,
.cv-entry-year .external {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    margin-top: 4px;
    border: 1px solid transparent;
}

.cv-entry-year .current {
    color: var(--brand-green);
    background: rgba(46, 196, 160, .1);
    border-color: rgba(46, 196, 160, .25);
}

.cv-entry-year .external {
    color: var(--brand-yellow);
    background: rgba(245, 200, 66, .1);
    border-color: rgba(245, 200, 66, .25);
}

.cv-entry-title {
    font-size: 15.5px;
    font-weight: 800;
    color: var(--text-1);
    margin: 0 0 3px;
    letter-spacing: -.2px;
}

.cv-entry-org {
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-bright);
    margin: 0 0 6px;
}

.cv-entry-desc {
    font-size: 13.5px;
    color: var(--text-3);
    line-height: 1.65;
}

.cv-entry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}

.cv-mini-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 5px;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    color: var(--text-3);
}

/* ── LANGUAGES ── */
.lang-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lang-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lang-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-1);
    min-width: 80px;
}

.lang-dots {
    display: flex;
    gap: 5px;
}

.lang-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brand);
    opacity: .25;
}

.lang-dot.filled {
    opacity: 1;
}

.lang-level {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-3);
}

/* =========================================================
   Publikační činnost
   ========================================================= */
.pub-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pub-group+.pub-group {
    margin-top: 8px;
    padding-top: 28px;
    border-top: 1px dashed var(--border);
}

.pub-group-label {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--text-3);
    margin: 0 0 14px;
    padding-left: 130px;
    /* zarovnání za datový sloupec */
}

.pub-item {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 20px;
    align-items: start;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    transition: background .18s, border-radius .18s;
}

.pub-item:last-child {
    border-bottom: 0;
}

.pub-item:hover {
    background: var(--bg-card-hover);
    border-radius: 10px;
}

.pub-year {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-3);
    text-align: right;
    border-right: 2px solid var(--border);
    padding-right: 20px;
    padding-top: 2px;
    line-height: 1.5;
}

.pub-year .pub-badge {
    display: inline-block;
    font-size: 9.5px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    margin-top: 4px;
    border: 1px solid transparent;
}

.pub-badge.journal {
    color: var(--brand-bright);
    background: rgba(78, 146, 240, .1);
    border-color: rgba(78, 146, 240, .22);
}

.pub-badge.article {
    color: var(--brand-green);
    background: rgba(46, 196, 160, .1);
    border-color: rgba(46, 196, 160, .22);
}

.pub-badge.thesis {
    color: var(--brand-yellow);
    background: rgba(245, 200, 66, .1);
    border-color: rgba(245, 200, 66, .25);
}

.pub-cite {
    font-size: 13.5px;
    color: var(--text-3);
    line-height: 1.75;
}

.pub-cite .pub-author {
    color: var(--text-2);
    font-weight: 700;
}

.pub-cite .pub-title {
    color: var(--text-1);
    font-weight: 700;
}

.pub-cite .pub-source {
    font-style: italic;
}

.pub-cite .pub-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--brand-bright);
    font-weight: 600;
    font-size: 12.5px;
    margin-left: 4px;
    transition: opacity .18s;
}

.pub-cite .pub-link:hover {
    opacity: .75;
}

.pub-cite .pub-link svg {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
}

/* ── RESPONSIVE ── */
@media (max-width:900px) {
    .cv-grid {
        grid-template-columns: 1fr;
    }

    .cv-sidebar {
        position: static;
    }

    .cv-entry {
        grid-template-columns: 80px 1fr;
        gap: 12px;
    }
}

@media (max-width:680px) {
    .pub-item {
        grid-template-columns: 72px 1fr;
        gap: 12px;
    }

    .pub-year {
        padding-right: 12px;
        font-size: 11px;
    }

    .pub-group-label {
        padding-left: 84px;
    }
}