/* ===========================================
   HP Sections — Hero, Skills, Experience, AI Demo, Contact
   =========================================== */

/* === HERO SEKCE === */
.hero-section {
    padding: 2rem 0 0;
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* Split layout — fotka vlevo, text vpravo */
.hero-split {
    display: flex;
    align-items: flex-end;
    gap: 3rem;
}

.hero-split__photo {
    flex: 0 0 auto;
    position: relative;
    align-self: flex-end;
}

.hero-figure {
    display: block;
    max-height: calc(100vh - var(--nav-height) - 2rem);
    width: auto;
    max-width: 420px;
    object-fit: contain;
    object-position: bottom;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.15));
}

.hero-split__content {
    flex: 1;
    padding: 3rem 0 4rem;
}

.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #d1fae5;
    color: #065f46;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-status .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-name {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.hero-title {
    font-size: 1.3rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.hero-summary {
    max-width: 600px;
    margin: 0 0 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-contact-row {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
}

.hero-contact-item:hover {
    color: var(--primary);
}

.hero-contact-item i {
    font-size: 1.1rem;
}

/* === O MNĚ SEKCE === */
.about-section {
    padding: 4rem 0;
}

/* Sekce navazující na Hero — čistě bílá pro jasný vizuální předěl */
.about-section-dark {
    background-color: #ffffff;
    position: relative;
    border-top: 1px solid #e8eef6;
    box-shadow: inset 0 6px 20px rgba(37, 99, 235, 0.04);
}

.about-section-dark .section-title {
    color: #1e293b;
}

.about-section-dark .about-card {
    background: #ffffff;
    border-color: #c0cee0;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.07);
}

.about-section-dark .about-card:hover {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 10px 32px rgba(37, 99, 235, 0.14);
    transform: translateY(-5px);
}

.about-card {
    background: var(--bg-white);
    border: 1px solid #c0cee0;
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    height: 100%;
    transition: all 0.25s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-card:hover {
    border-color: #2563eb;
    box-shadow: 0 10px 32px rgba(37, 99, 235, 0.14);
    transform: translateY(-5px);
}

.about-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.about-card p {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.about-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin: 0 auto 1.25rem;
}

.about-card__icon--blue   { background: #dbeafe; color: #2563eb; }
.about-card__icon--amber  { background: #fef3c7; color: #d97706; }
.about-card__icon--green  { background: #d1fae5; color: #059669; }
.about-card__icon--purple { background: #ede9fe; color: #7c3aed; }
.about-card__icon--orange { background: #ffedd5; color: #ea580c; }

/* === POSITION FILTER === */
.position-filter-intro {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0 1.25rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.position-filter-intro::before,
.position-filter-intro::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color, #e2e8f0);
}

.position-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin: 0 0 2.5rem;
}

.position-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 1rem 1.3rem;
    border-radius: 1rem;
    border: 2px solid var(--border-color, #e2e8f0);
    background: var(--bg-card, #fff);
    cursor: pointer;
    transition: all 0.22s ease;
    text-align: center;
    min-width: 120px;
    max-width: 160px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    color: inherit;
    font-family: inherit;
}

.position-card i {
    font-size: 1.6rem;
    color: var(--primary);
    transition: transform 0.22s ease;
}

.position-card strong {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
}

.position-card small {
    font-size: 0.68rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.position-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(99,102,241,.15);
}

.position-card:hover i {
    transform: scale(1.15);
}

.position-card.active {
    border-color: #f97316;
    background: #fff7ed;
    box-shadow: 0 4px 16px rgba(249,115,22,.2);
}

.position-card.active strong {
    color: #ea580c;
}

.position-card.active i {
    color: #f97316;
}

/* Featured karta aktivní — stejná oranžová */
.position-card--featured.active {
    border-color: #f97316;
    background: #fff7ed;
    box-shadow: 0 4px 16px rgba(249,115,22,.2);
}

.position-card--featured.active strong {
    color: #ea580c;
}

.position-card--featured.active i {
    color: #f97316;
}

/* Featured card — IT Project Manager */
.position-card--featured {
    position: relative;
    border-color: var(--primary);
    background: var(--bg-card, #fff);
    min-width: 145px;
}

.position-card--featured i {
    color: var(--primary);
}

.position-card--featured:hover {
    box-shadow: 0 8px 24px rgba(99,102,241,.22);
}

.position-card__badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    border-radius: 2rem;
    white-space: nowrap;
}

/* Skill badge filter states */
.skill-badge--dimmed {
    opacity: 0.15;
    filter: grayscale(0.6);
    transition: opacity 0.25s ease, filter 0.25s ease;
}

.skill-badge--match {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    transform: translateY(-1px);
    transition: outline 0.2s ease, transform 0.2s ease;
}

/* skill-group dim when all children dimmed */
.skill-group--all-dimmed .skill-group__title {
    opacity: 0.3;
}

/* === DOVEDNOSTI SEKCE === */
.skills-section {
    padding: 4rem 0;
    background: var(--bg-white);
}

.skill-group {
    margin-bottom: 2rem;
}

.skill-group__title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-group__title i {
    color: var(--primary);
}

/* Extended badges — skryté za toggle, vizuálně jasně oddělené od default badges.
   Default badges mají solid pastel bg (např. blue-100 #dbeafe), takže extended
   musí mít vlastní silně rozeznatelnou paletu — purple-tinted s viditelným
   dashed borderem. Neměníme hue jen na 8% opacity (to vypadá jako bílé). */
.skill-badge--extended {
    background: rgba(165, 180, 252, 0.35) !important;   /* solidnější purple-100 look */
    color: #312e81 !important;                            /* indigo-900 — vyšší kontrast */
    border: 1.5px dashed #6366f1 !important;              /* indigo-500, jasně viditelný */
}
/* Master modifier — extended badges z master katalogu (doporučení), ne user CV.
   Odlišíme italikou + ještě světlejší bg, aby user viděl rozdíl mezi "moje skryté"
   a "doporučení z katalogu, ještě nemám v CV". */
.skill-badge--master {
    font-style: italic;
    background: rgba(165, 180, 252, 0.18) !important;
    border-style: dashed !important;
    opacity: 0.95;
}
html[data-theme="dark"] .skill-badge--extended,
.hp-dark-mode .skill-badge--extended {
    background: rgba(165, 180, 252, 0.20) !important;
    color: #e0e7ff !important;                            /* indigo-100 */
    border-color: #818cf8 !important;                     /* indigo-400 */
}
html[data-theme="dark"] .skill-badge--master,
.hp-dark-mode .skill-badge--master {
    background: rgba(165, 180, 252, 0.10) !important;
}

/* Toggle tlačítko „+N dalších doporučených" — inline jako poslední pill v badges flow.
   Žije uvnitř .skill-group__badges (flex container), takže flow-uje za poslední default
   badge na stejném řádku, ne pod sebou. */
.skill-group__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    /* žádný margin-top — chceme být součástí flex flow s badges */
    padding: 0.3rem 0.85rem;
    background: transparent;
    border: 1px dashed rgba(99, 102, 241, 0.5);
    border-radius: 999px;
    color: #4f46e5;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    line-height: 1.3;
}
.skill-group__toggle:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.8);
    color: #4338ca;
}
.skill-group__toggle i { font-size: 0.9rem; }

/* Extended badges — defaultně skryté, přepnuté klikem na toggle.
   Žádný wrapper span (display: contents trik byl unreliable s flex flow);
   každý badge má vlastní --hidden-default class a parent .skill-group__badges
   dostane .is-expanded při klik na toggle. */
.skill-badge--hidden-default { display: none !important; }
.skill-group__badges.is-expanded .skill-badge--hidden-default {
    /* Při expanzi inherituje display od .skill-badge základní třídy. */
    display: inline-flex !important;
}

html[data-theme="dark"] .skill-group__toggle,
.hp-dark-mode .skill-group__toggle {
    color: #a5b4fc;
    border-color: rgba(165, 180, 252, 0.4);
}
html[data-theme="dark"] .skill-group__toggle:hover,
.hp-dark-mode .skill-group__toggle:hover {
    background: rgba(165, 180, 252, 0.12);
    color: #c7d2fe;
}

/* === ZKUŠENOSTI SEKCE — moderní timeline === */
.experience-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 50%, #1d4ed8 100%);
    position: relative;
    overflow: hidden;
}

.experience-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(96, 165, 250, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.exp-section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.exp-section-header .section-label {
    color: #93c5fd;
}

.exp-section-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #ffffff;
    margin: 0.5rem 0 0;
}

.exp-timeline {
    position: relative;
    padding-left: 2.5rem;
    z-index: 1;
}

.exp-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.2);
}

/* Timeline dot */
.exp-dot {
    position: absolute;
    left: -2.5rem;
    top: 1.75rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #60a5fa;
    border: 3px solid rgba(255, 255, 255, 0.3);
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.exp-item:hover .exp-dot {
    transform: scale(1.2);
}

.exp-item--current .exp-dot {
    background: #34d399;
    border-color: rgba(52, 211, 153, 0.3);
    box-shadow: 0 0 0 6px rgba(52, 211, 153, 0.15);
    animation: exp-pulse 2.5s infinite;
}

@keyframes exp-pulse {
    0%, 100% { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0.15); }
    50% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0.05); }
}

.exp-item {
    position: relative;
    margin-bottom: 2rem;
}

/* Karta — bílé pozadí, tmavý text */
.exp-card {
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.exp-item:hover .exp-card {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.exp-header__left {
    flex: 1;
    min-width: 0;
}

.exp-header__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
    flex-shrink: 0;
}

.exp-position {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.25rem;
}

.exp-company {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.exp-company i {
    font-size: 0.8rem;
    opacity: 0.7;
}

.exp-dates {
    font-size: 0.9rem;
    color: #475569;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.exp-dates i {
    font-size: 0.8rem;
    color: var(--primary);
    opacity: 0.7;
}

.exp-duration {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    background: #dbeafe;
    border: 1px solid #bfdbfe;
    padding: 0.2rem 0.7rem;
    border-radius: 2rem;
    white-space: nowrap;
}

.exp-item--current .exp-duration {
    color: #059669;
    background: #d1fae5;
    border-color: #a7f3d0;
}

/* Rozbalovací detaily */
.exp-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
}

.exp-item.exp-open .exp-details {
    max-height: 600px;
    opacity: 1;
}

.exp-description {
    color: #475569;
    line-height: 1.7;
    font-size: 0.92rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.exp-recommendation {
    position: relative;
    background: #f1f5f9;
    border-left: 3px solid var(--primary);
    border-radius: 0 12px 12px 0;
    padding: 1rem 1.25rem 1rem 2.5rem;
    margin-top: 1rem;
    font-style: italic;
}

.exp-recommendation__quote-icon {
    position: absolute;
    left: 0.75rem;
    top: 0.75rem;
    font-size: 1.1rem;
    color: var(--primary);
    opacity: 0.4;
    font-style: normal;
}

.exp-recommendation p {
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.65;
    margin: 0;
}

.exp-recommendation__author {
    font-style: normal;
    font-weight: 600;
    color: #1e293b;
    margin-top: 0.5rem;
    font-size: 0.82rem;
}

/* Vizuální indikátor rozbalení — šipka ve spodní části karty */
.exp-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.5rem 0 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    pointer-events: none; /* klik řeší karta */
}

.exp-toggle__text {
    display: none; /* text skryt, kliknutí je na celou kartu */
}

.exp-toggle__icon {
    font-size: 1.3rem;
    color: var(--primary);
    transition: transform 0.3s ease, color 0.2s ease;
    animation: exp-bounce 2s infinite;
}

.exp-item:hover .exp-toggle__icon {
    color: var(--primary-hover);
    animation: none;
}

.exp-item.exp-open .exp-toggle__icon {
    transform: rotate(180deg);
    animation: none;
}

@keyframes exp-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

/* Dark mode */
.hp-dark-mode .experience-section {
    background: linear-gradient(135deg, #0f2147 0%, #1a2f7a 50%, #1e3a9e 100%);
}

.hp-dark-mode .exp-card {
    background: #1a1d23;
    border-color: #2d3139;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hp-dark-mode .exp-item:hover .exp-card {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

.hp-dark-mode .exp-position { color: #f1f5f9; }
.hp-dark-mode .exp-company { color: #60a5fa; }
.hp-dark-mode .exp-dates { color: #94a3b8; }

.hp-dark-mode .exp-duration {
    color: #93c5fd;
    background: rgba(96, 165, 250, 0.15);
    border-color: rgba(96, 165, 250, 0.25);
}

.hp-dark-mode .exp-item--current .exp-duration {
    color: #6ee7b7;
    background: rgba(52, 211, 153, 0.15);
    border-color: rgba(52, 211, 153, 0.25);
}

.hp-dark-mode .exp-description {
    color: #94a3b8;
    border-top-color: #2d3139;
}

.hp-dark-mode .exp-recommendation {
    background: #21252d;
    border-left-color: #3b82f6;
}

.hp-dark-mode .exp-recommendation p { color: #94a3b8; }
.hp-dark-mode .exp-recommendation__author { color: #e2e8f0; }
.hp-dark-mode .exp-toggle__icon { color: #60a5fa; }
.hp-dark-mode .exp-item:hover .exp-toggle__icon { color: #93c5fd; }

/* === Projekty u zkušeností === */
.exp-projects {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color, #e2e8f0);
}

.exp-projects__title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.exp-projects__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.5rem;
}

.exp-project-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    background: #f8fafc;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    transition: box-shadow 0.2s;
}

.exp-project-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.exp-project-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}

.exp-project-name a {
    color: var(--primary);
    text-decoration: none;
}

.exp-project-name a:hover {
    text-decoration: underline;
}

.exp-project-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.exp-project-tech {
    font-size: 0.72rem;
    color: var(--primary);
    font-weight: 500;
    opacity: 0.8;
}

.hp-dark-mode .exp-project-item {
    background: #1e2530;
    border-color: #2d3139;
}

.hp-dark-mode .exp-projects {
    border-top-color: #2d3139;
}

@media (max-width: 600px) {
    .exp-projects__list {
        grid-template-columns: 1fr;
    }
}

/* === AI DEMO SEKCE === */
.ai-demo-section {
    padding: 4rem 0;
    background: var(--bg-white);
}

.ai-chat-widget {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    max-width: 700px;
    margin: 0 auto;
    overflow: hidden;
}

.ai-chat-header {
    background: var(--primary);
    color: #fff;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ai-chat-header__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
}

.ai-chat-messages {
    height: 350px;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ai-msg {
    max-width: 85%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    line-height: 1.6;
}

.ai-msg--bot {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    align-self: flex-start;
    text-align: left;
}

.ai-msg--bot p {
    margin: 0 0 0.6rem;
}

.ai-msg--bot p:last-child {
    margin-bottom: 0;
}

.ai-msg--bot h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0.8rem 0 0.3rem;
    color: var(--text-dark);
}

.ai-msg--bot h5 {
    font-size: 0.875rem;
    font-weight: 700;
    margin: 0.6rem 0 0.25rem;
    color: var(--text-dark);
}

.ai-msg--bot ul {
    margin: 0.4rem 0 0.6rem;
    padding-left: 1.2rem;
}

.ai-msg--bot li {
    margin-bottom: 0.25rem;
}

.ai-msg--bot strong {
    font-weight: 700;
    color: var(--text-dark);
}

.ai-msg--user {
    background: var(--primary);
    color: #fff;
    align-self: flex-end;
}

.ai-msg--typing {
    display: flex;
    gap: 4px;
    padding: 1rem;
}

.ai-msg--typing span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-light);
    animation: typing 1.4s infinite;
}

.ai-msg--typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-msg--typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-4px); }
}

.ai-chat-input {
    display: flex;
    border-top: 1px solid var(--border-color);
    background: var(--bg-white);
}

.ai-chat-input input {
    flex: 1;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
    outline: none;
    background: transparent;
}

.ai-chat-input button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.ai-chat-input button:hover {
    background: var(--primary-hover);
}

/* === MATCHMAKING SEKCE === */
.matchmaking-section {
    padding: 4rem 0;
}

.match-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.match-step {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all 0.25s ease;
}

.match-step:hover {
    border-color: #bfdbfe;
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.match-step__number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 1rem;
}

.match-step__title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* ===================================================
   CO SE MŮŽE ODE MĚ OČEKÁVAT — sekce
   =================================================== */
/* =================================================================
   ABOUT SECTION — Profesní shrnutí
   Hidden by default, revealed kliknutim na #about odkaz (nav nebo hero CTA).
   Styl: minimal — stejne section-label + section-title jako sklls/contact
   sekce (def. v hp-base.css). Zadne vlastni dekorace, zadne underline,
   zadne drop-cap, zadne card wrappery — jen padding + bg.
   ================================================================= */
.about-section {
    padding: 4rem 0;
    background: var(--bg-white);
}

.about-section[hidden] { display: none; }

.about-text {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--text-secondary, #475569);
    white-space: pre-wrap; /* zachova odstavce z textareaku */
}

/* Responsive */
@media (max-width: 768px) {
    .about-section { padding: 2.5rem 0; }
    .about-text { font-size: 0.97rem; line-height: 1.7; }
}

.expect-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 50%, #1d4ed8 100%);
    position: relative;
    overflow: hidden;
}

.expect-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(96, 165, 250, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.expect-inner {
    position: relative;
    z-index: 1;
}

.expect-header {
    text-align: center;
    margin-bottom: 3rem;
}

.expect-header .section-label {
    color: #93c5fd;
}

.expect-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #ffffff;
    margin: 0.5rem 0 0;
}

.expect-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.expect-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
    backdrop-filter: blur(6px);
}

.expect-card:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-4px);
}

.expect-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #93c5fd;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.expect-card:hover .expect-card__icon {
    transform: scale(1.1);
}

.expect-card__icon--blue   { background: rgba(59,  130, 246, 0.25); color: #93c5fd; }
.expect-card__icon--green  { background: rgba(16,  185, 129, 0.25); color: #6ee7b7; }
.expect-card__icon--purple { background: rgba(139,  92, 246, 0.25); color: #c4b5fd; }
.expect-card__icon--amber  { background: rgba(245, 158,  11, 0.25); color: #fcd34d; }

.expect-card {
    text-align: center;
    align-items: center;
}

.expect-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.expect-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    line-height: 1.65;
}

/* Dark mode — sekce je sama o sobě tmavá, žádné přepsání není nutné */
.hp-dark-mode .expect-section {
    background: linear-gradient(135deg, #0f2147 0%, #1a2f7a 50%, #1e3a9e 100%);
}

/* Responsive */
@media (max-width: 991px) {
    .expect-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575px) {
    .expect-grid { grid-template-columns: 1fr; }
    .expect-section { padding: 3.5rem 0; }
}

/* === ODDĚLOVAČ SEKCÍ === */
.section-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 0;
}

.section-shimmer-divider {
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
    background: transparent;
}

.section-shimmer-divider .cv-mock__line {
    height: 3px;
    border-radius: 2px;
    max-width: 1200px;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0.08) 25%,
        rgba(124,58,237,0.6) 50%,
        rgba(255,255,255,0.08) 75%
    );
    background-size: 300% 100%;
    animation: cv-shimmer 2.2s ease-in-out infinite;
}

/* === KONTAKT SEKCE === */
.contact-section {
    padding: 5rem 0 0;
    background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 50%, #1d4ed8 100%);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 70% 80%, rgba(255,255,255,0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 30%, rgba(96, 165, 250, 0.12) 0%, transparent 50%);
    pointer-events: none;
}

.contact-inner {
    position: relative;
    z-index: 1;
}

.contact-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.contact-header .section-label {
    color: #93c5fd;
}

.contact-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #ffffff;
    margin: 0.5rem 0 0;
}

/* Dvousloupcový layout */
.contact-split {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
    padding-bottom: 3.5rem;
}

.contact-split__form {
    min-width: 0;
}

/* Kontaktní formulář — bílá karta */
.contact-form-wrapper {
    background: #ffffff;
    border-radius: 20px;
    padding: 2rem 2.25rem;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

.contact-form-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.contact-form-header i {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 0.4rem;
    display: block;
}

.contact-form-header h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.3rem;
}

.contact-form-header p {
    color: #64748b;
    font-size: 0.88rem;
    margin: 0;
}

.contact-form .form-label {
    font-weight: 600;
    font-size: 0.82rem;
    color: #334155;
    margin-bottom: 0.3rem;
}

.contact-form .form-control,
.contact-form .form-select {
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.85rem;
    font-size: 0.88rem;
    background: #f8fafc;
    color: #1e293b;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: #ffffff;
    outline: none;
}

.contact-form .form-control::placeholder {
    color: #94a3b8;
    opacity: 0.8;
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.contact-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 2rem;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 2rem;
    font-size: 0.92rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 0.25rem;
}

.contact-submit:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.contact-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Pravý sloupec — kontaktní údaje */
.contact-split__info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 1.1rem 1.25rem;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
    backdrop-filter: blur(6px);
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateX(4px);
    text-decoration: none;
}

.contact-card__icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.contact-card:hover .contact-card__icon {
    transform: scale(1.1);
}

.contact-card__icon--blue   { background: rgba(59,  130, 246, 0.25); color: #93c5fd; }
.contact-card__icon--green  { background: rgba(16,  185, 129, 0.25); color: #6ee7b7; }
.contact-card__icon--purple { background: rgba(139,  92, 246, 0.25); color: #c4b5fd; }

.contact-card__text { min-width: 0; }

.contact-card h5 {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.contact-card p {
    font-size: 0.92rem;
    color: #ffffff;
    margin: 0.15rem 0 0;
    font-weight: 500;
}

/* Dostupnost badge */
.contact-availability {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.25rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 14px;
    margin-top: 0.5rem;
}

.contact-availability__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #34d399;
    flex-shrink: 0;
    animation: exp-pulse 2.5s infinite;
}

.contact-availability span {
    color: #6ee7b7;
    font-size: 0.88rem;
    font-weight: 600;
}

/* Dark mode */
.hp-dark-mode .contact-section {
    background: linear-gradient(135deg, #0f2147 0%, #1a2f7a 50%, #1e3a9e 100%);
}

.hp-dark-mode .contact-form-wrapper {
    background: #1a1d23;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.hp-dark-mode .contact-form-header h4 { color: #f1f5f9; }
.hp-dark-mode .contact-form-header p { color: #94a3b8; }
.hp-dark-mode .contact-form-header i { color: #60a5fa; }

.hp-dark-mode .contact-form .form-label {
    color: #e2e8f0;
}

.hp-dark-mode .contact-form .form-control,
.hp-dark-mode .contact-form .form-select {
    background: #21252d;
    border-color: #374151;
    color: #e2e8f0;
}

.hp-dark-mode .contact-form .form-control:focus,
.hp-dark-mode .contact-form .form-select:focus {
    background: #21252d;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15);
    color: #f1f5f9;
}

.hp-dark-mode .contact-form .form-control::placeholder {
    color: #4b5563;
}

.hp-dark-mode .contact-form .form-select option {
    background: #21252d;
    color: #e2e8f0;
}

/* Responsive */
@media (max-width: 991px) {
    .contact-split {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-split__info {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 500px;
        margin: 0 auto;
    }

    .contact-availability {
        margin-top: 0.5rem;
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .contact-section { padding: 3.5rem 0 0; }
    .contact-form-wrapper { padding: 1.5rem; border-radius: 16px; }

    .contact-split__info {
        grid-template-columns: 1fr;
    }
}

/* === VZDĚLÁNÍ SEKCE === */
.education-section {
    padding: 4rem 0;
}

.edu-item {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.25s ease;
}

.edu-item:hover {
    border-color: #bfdbfe;
    box-shadow: var(--shadow-md);
}

/* === Responsive === */
@media (max-width: 991px) {
    .hero-split {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-split__photo {
        order: -1;
    }

    .hero-figure {
        max-height: 350px;
        max-width: 300px;
    }

    .hero-split__content {
        padding: 1rem 0 3rem;
    }

    .hero-summary {
        margin: 0 auto 2rem;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-contact-row {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 1rem 0 0;
    }

    .hero-name { font-size: 2rem; }

    .hero-figure {
        max-height: 280px;
        max-width: 240px;
    }

    /* Sekce — menší padding */
    .skills-section,
    .experience-section,
    .ai-demo-section,
    .matchmaking-section,
    .contact-section { padding: 3rem 0; }

    .section-title { font-size: 1.5rem; }

    /* About cards — 1 sloupec */
    .about-section .row { gap: 0.75rem; }

    /* Zkušenosti */
    .exp-timeline { padding-left: 2rem; }

    .exp-dot {
        left: -2rem;
        width: 12px;
        height: 12px;
        border-width: 2px;
    }

    .exp-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .exp-header__right {
        align-items: flex-start;
        flex-direction: row;
        gap: 0.5rem;
    }

    .exp-dates { align-self: flex-start; }

    /* AI chat — embedded widget (teaser) */
    .ai-chat-widget { margin: 0; border-radius: var(--radius-md); }
    /* POZOR: Nepřebíjet výšku floating widgetu — ten má flex:1 s vyšší specificitou */
    .ai-chat-widget .ai-chat-messages { height: 260px; padding: 1rem; }
    .ai-msg { font-size: 0.85rem; padding: 0.65rem 0.9rem; }

    /* Quick buttons — zalamování na mobilu */
    .ai-quick-btn { font-size: 0.75rem; padding: 0.3rem 0.65rem; }

    /* Match steps — 2 sloupce */
    .match-steps { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .match-step { padding: 1rem; }
    .match-step__number { width: 34px; height: 34px; font-size: 0.85rem; }

    /* Kontakt — 1 sloupec */
    .contact-card { padding: 1.25rem; }

    /* Skill badges */
    .skill-badge { font-size: 0.75rem; padding: 0.25rem 0.6rem; }

    /* Upload zone */
    .upload-zone { padding: 2rem 1rem; }
}

@media (max-width: 480px) {
    .section-title { font-size: 1.3rem; }

    .match-steps { grid-template-columns: 1fr; }

    /* Embedded widget — menší výška na velmi malých displejích */
    .ai-chat-widget .ai-chat-messages { height: 200px; }

    .exp-card { padding: 1rem 1.25rem; }

    .stat-card { padding: 1rem 0.5rem; }
    .stat-card__number { font-size: 1.8rem; }

    .contact-section .row { gap: 0.75rem; }
}

/* ==========================================
   Jobs Widget — Top 5 nabídek na homepage
   ========================================== */
.jobs-widget-section {
    padding: 4rem 0;
    background: var(--bg-light, #f8fafc);
}

.jobs-widget-intro {
    color: var(--text-muted);
    margin-bottom: 2rem;
    text-align: center;
}

.jobs-widget-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.jobs-widget-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    background: var(--bg-white, #fff);
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.jobs-widget-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Modré tlačítko „HR profil" — vpravo v karte. Renderuje se jen kdyz API
   vrati hr_profile_url (= existuje vytvořený personalizovaný HR profil
   pro tuto pozici). Klick otevre profil v novem tabu. */
.jobs-widget-card__hr-btn {
    flex-shrink: 0;
    align-self: center;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.5rem;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    white-space: nowrap;
}

.jobs-widget-card__hr-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.jobs-widget-card__hr-btn i {
    font-size: 0.95rem;
}

/* Dark mode parita */
.hp-dark-mode .jobs-widget-card__hr-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

@media (max-width: 768px) {
    .jobs-widget-card__hr-btn {
        margin-left: 0;
        margin-top: 0.5rem;
        align-self: stretch;
        justify-content: center;
    }
    .jobs-widget-card {
        flex-wrap: wrap;
    }
}

/* Score badge — kulatý indikátor vlevo */
.jobs-widget-card__score {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    background: var(--primary-light, #eff6ff);
    color: var(--primary, #2563eb);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.1;
    text-align: center;
}

.jobs-widget-card__score span {
    font-size: 0.6rem;
    font-weight: 500;
    opacity: 0.75;
}

.jobs-widget-card__body {
    flex: 1;
    min-width: 0;
}

.jobs-widget-card__title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.jobs-widget-card__title a {
    color: var(--text-dark, #1e293b);
    text-decoration: none;
}

.jobs-widget-card__title a:hover {
    color: var(--primary, #2563eb);
}

.jobs-widget-card__ext-icon {
    font-size: 0.7rem;
    margin-left: 0.3rem;
    opacity: 0.6;
}

.jobs-widget-card__new-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, #059669, #10b981);
    color: #fff;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    margin-left: 0.4rem;
    vertical-align: middle;
    line-height: 1.4;
    animation: new-badge-pulse 2s ease-in-out infinite;
}

@keyframes new-badge-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.jobs-widget-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.82rem;
    color: var(--text-muted, #64748b);
}

.jobs-widget-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.jobs-widget-card__remote {
    color: #059669;
    font-weight: 500;
}

.jobs-widget-card__sources {
    color: #6366f1;
    font-weight: 600;
    background: rgba(99, 102, 241, 0.1);
    padding: 0.1rem 0.4rem;
    border-radius: 0.25rem;
}

.jobs-widget-footer {
    margin-top: 1.25rem;
}

/* Responzivní úpravy */
@media (max-width: 576px) {
    .jobs-widget-card {
        flex-direction: column;
        gap: 0.75rem;
    }

    .jobs-widget-card__score {
        width: 2.75rem;
        height: 2.75rem;
        font-size: 0.9rem;
    }
}

/* =============================================
   CV BANNER SEKCE (homepage)
   ============================================= */

.cv-banner-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #1d4ed8 100%);
    position: relative;
    overflow: hidden;
}

/* Dekorativní kruhy v pozadí */
.cv-banner-section::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 340px; height: 340px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}
.cv-banner-section::after {
    content: '';
    position: absolute;
    bottom: -60px; left: 30%;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: rgba(96,165,250,0.07);
    pointer-events: none;
}

.cv-banner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Levý sloupec */
.cv-banner__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.12);
    color: #bfdbfe;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.35rem 0.9rem;
    border-radius: 2rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    backdrop-filter: blur(4px);
}

.cv-banner__title {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 0.85rem;
}

.cv-banner__title .text-gradient {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cv-banner__desc {
    font-size: 1rem;
    color: rgba(255,255,255,0.72);
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: 1.75rem;
}

.cv-banner__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

/* Tlačítka uvnitř banneru — světlá verze */
.cv-banner__actions .btn-primary-custom {
    background: #fff;
    color: #1e3a5f;
    border-color: #fff;
}
.cv-banner__actions .btn-primary-custom:hover {
    background: #dbeafe;
    border-color: #dbeafe;
    color: #1e3a5f;
}
.cv-banner__actions .btn-outline-custom {
    color: #fff;
    border-color: rgba(255,255,255,0.45);
    background: rgba(255,255,255,0.08);
}
.cv-banner__actions .btn-outline-custom:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.7);
    color: #fff;
}

.cv-banner__trust {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.cv-banner__trust li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
}

.cv-banner__trust li i {
    color: #60a5fa;
    font-size: 0.9rem;
}

/* ── CV ANIMATED PREVIEW ───────────────────── */
.cv-banner__preview {
    position: relative;
    align-self: stretch;
    min-width: 450px;
}

/* Wrapper — absolutně pozicovaný (neovlivňuje výšku gridu), výška odpovídá
   skutečnému vizuálnímu obsahu karet (~258 px), aby geometrický střed
   wraperu odpovídal vizuálnímu středu kompozice */
.cv-mock-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 420px;
    height: 300px;
}

/* Animace */
@keyframes cv-float {
    0%,100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
    50%      { transform: translateY(-18px) rotate(var(--rot, 0deg)); }
}

@keyframes cv-float-back {
    0%,100% { transform: translateY(0) rotate(var(--rot-back, 5deg)); }
    50%      { transform: translateY(-10px) rotate(var(--rot-back, 5deg)); }
}

@keyframes cv-shimmer {
    0%   { background-position: -300% center; }
    100% { background-position: 300% center; }
}

@keyframes cv-card-in {
    from { opacity: 0; transform: translateY(56px) rotate(var(--rot, 0deg)); }
    to   { opacity: 1; transform: translateY(0)    rotate(var(--rot, 0deg)); }
}

@keyframes cv-badge-in {
    from { opacity: 0; transform: scale(0.7) translateY(6px); }
    to   { opacity: 1; transform: scale(1)   translateY(0); }
}

/* Zadní karta (Creative — tmavá/oranžová) */
.cv-mock--back {
    position: absolute;
    top: 28px; left: 32px;
    width: 380px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 16px 64px rgba(0,0,0,0.35);
    overflow: hidden;
    --rot-back: 5deg;
    animation: cv-card-in 0.7s 0.1s cubic-bezier(.22,.68,0,1.3) both,
               cv-float-back 4.5s 0.8s ease-in-out infinite;
    z-index: 1;
}

.cv-mock--back .cv-mock__header {
    height: 76px;
    background: linear-gradient(135deg, #111827 0%, #374151 100%);
    position: relative;
}
.cv-mock--back .cv-mock__header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 6px;
    background: #ea580c;
}
.cv-mock--back .cv-mock__body {
    padding: 1.2rem 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.56rem;
}

/* Přední karta (Modern — sidebar) */
.cv-mock--front {
    position: absolute;
    top: 0; left: 0;
    width: 390px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 32px 96px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.08);
    overflow: hidden;
    display: flex;
    --rot: -2deg;
    animation: cv-card-in 0.65s 0s cubic-bezier(.22,.68,0,1.3) both,
               cv-float 4s 0.6s ease-in-out infinite;
    z-index: 2;
}

/* Sidebar přední karty */
.cv-mock__sidebar {
    width: 116px;
    min-width: 116px;
    background: #1e3a5f;
    padding: 1.3rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: center;
}

.cv-mock__avatar {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: #2d5185;
    border: 4px solid #4a7fc1;
    margin-bottom: 0.6rem;
    flex-shrink: 0;
}

.cv-mock__sline {
    height: 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    width: 100%;
}
.cv-mock__sline--w80 { width: 80%; }
.cv-mock__sline--w60 { width: 60%; }
.cv-mock__sline--w70 { width: 70%; }
.cv-mock__sline--accent {
    background: #60a5fa;
    height: 6px;
    margin-top: 0.3rem;
}

.cv-mock__sdivider {
    height: 2px;
    background: rgba(255,255,255,0.12);
    width: 100%;
    margin: 0.4rem 0;
}

/* Hlavní obsah přední karty */
.cv-mock__main {
    flex: 1;
    padding: 1.3rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.52rem;
}

.cv-mock__section-label {
    height: 10px;
    width: 45%;
    background: #1e3a5f;
    border-radius: 4px;
    margin-bottom: 0.3rem;
}
.cv-mock__section-label--2 {
    width: 40%;
    background: #374151;
}

/* Linky obsahu — shimmer na "AI" liniích */
.cv-mock__line {
    height: 10px;
    background: #e5e7eb;
    border-radius: 4px;
    width: 100%;
}
.cv-mock__line--w90 { width: 90%; }
.cv-mock__line--w75 { width: 75%; }
.cv-mock__line--w70 { width: 70%; }
.cv-mock__line--w85 { width: 85%; }
.cv-mock__line--w60 { width: 60%; }
.cv-mock__line--w50 { width: 50%; }

/* Shimmer efekt — AI generování */
.cv-mock__line--shimmer {
    background: linear-gradient(
        90deg,
        #e5e7eb 25%,
        #c7d2fe 50%,
        #e5e7eb 75%
    );
    background-size: 300% 100%;
    animation: cv-shimmer 2.2s ease-in-out infinite;
}
.cv-mock__line--shimmer:nth-child(2)  { animation-delay: 0.3s; }
.cv-mock__line--shimmer:nth-child(3)  { animation-delay: 0.6s; }
.cv-mock__line--shimmer:nth-child(5)  { animation-delay: 0.15s; }

.cv-mock__divider {
    height: 2px;
    background: #e5e7eb;
    margin: 0.3rem 0;
}

/* AI badge — plovoucí */
.cv-mock__ai-badge {
    position: absolute;
    top: -20px; right: -20px;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.6rem 1.3rem;
    border-radius: 999px;
    letter-spacing: 0.04em;
    box-shadow: 0 8px 28px rgba(79,70,229,0.5);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: cv-badge-in 0.5s 0.9s cubic-bezier(.22,.68,0,1.3) both;
    white-space: nowrap;
}

/* Hover: karty se rozevřou */
.cv-mock-wrap:hover .cv-mock--front {
    transform: translateY(-8px) rotate(-5deg) !important;
    transition: transform 0.35s cubic-bezier(.22,.68,0,1.3);
}
.cv-mock-wrap:hover .cv-mock--back {
    transform: translateY(-4px) rotate(8deg) !important;
    transition: transform 0.35s cubic-bezier(.22,.68,0,1.3);
}

/* Responzivita banneru */
@media (max-width: 1100px) {
    .cv-banner {
        grid-template-columns: 1fr;
        gap: 0;
        text-align: center;
    }
    .cv-banner__desc { max-width: 100%; }
    .cv-banner__actions { justify-content: center; }
    .cv-banner__trust { justify-content: center; }
    .cv-banner__preview {
        position: relative;
        min-width: unset;
        width: 100%;
        height: 320px;
        margin-top: 1.5rem;
    }
    .cv-mock-wrap {
        height: 300px;
        width: 320px;
    }
}

@media (max-width: 576px) {
    .cv-banner__preview { display: none; }
}

/* =============================================
   CV PROMO — Fixed bottom bar (globální CTA)
   ============================================= */
.cv-promo-fixed {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 950;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #1d4ed8 100%);
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 -10px 40px rgba(15, 23, 42, 0.35);
    color: #fff;
}

.cv-promo-fixed__inner {
    margin: 0 auto;
    /* padding vlevo/vpravo rezervuje místo pro plovoucí ikony:
       vlevo theme toggle (32-76px) + scroll-top (88-132px) → 150px gutter;
       vpravo AI launcher (64px @ right:32px, 32-96px) → 120px gutter. */
    padding: 0.85rem 120px 0.85rem 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: nowrap;
}

.cv-promo-fixed__badge {
    margin-bottom: 0; /* override cv-banner__badge */
    white-space: nowrap;
}

.cv-promo-fixed__title {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
}

.cv-promo-fixed__desc {
    display: none; /* v kompaktní liště skrýt popis */
    margin: 0;
}

.cv-promo-fixed__actions {
    margin-bottom: 0;
    gap: 0.5rem;
    flex-wrap: nowrap;
}

.cv-promo-fixed__actions .btn-primary-custom,
.cv-promo-fixed__actions .btn-outline-custom {
    padding: 0.55rem 1rem;
    font-size: 0.88rem;
    white-space: nowrap;
}

.cv-promo-fixed__trust {
    gap: 0.9rem;
    margin: 0;
}

.cv-promo-fixed__trust li {
    font-size: 0.75rem;
    white-space: nowrap;
}

/* Odsazení spodku stránky, aby fixed bar nepřekrýval obsah */
body:has(.cv-promo-fixed) {
    padding-bottom: 72px;
}

/* Responzivita — postupně skrývat neklíčové části */
@media (max-width: 1200px) {
    .cv-promo-fixed__trust { display: none; }
}

@media (max-width: 768px) {
    /* Na mobilu jen primární CTA — zbytek skrýt pro čistý, klikatelný bar.
       Plovoucí ikony: theme toggle 20-72px vlevo, AI launcher 20-72px
       vpravo od okraje (52×52, bottom 20px). Scroll-top se přidá při
       scrollu vlevo 84-136px — částečné překrytí kruhové ikony s CTA
       tolerujeme. */
    .cv-promo-fixed__badge,
    .cv-promo-fixed__title,
    .cv-promo-fixed__desc,
    .cv-promo-fixed__trust,
    .cv-promo-fixed__actions .btn-outline-custom {
        display: none;
    }
    .cv-promo-fixed__inner {
        gap: 0;
        padding: 0.55rem 84px 0.55rem 84px;
        justify-content: stretch;
    }
    .cv-promo-fixed__actions {
        width: 100%;
        gap: 0;
        margin: 0;
    }
    .cv-promo-fixed__actions .btn-primary-custom {
        width: 100%;
        justify-content: center;
        padding: 0.7rem 0.85rem;
        font-size: 0.9rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    body:has(.cv-promo-fixed) { padding-bottom: 60px; }
}

/* Velmi úzké obrazovky — kratší text CTA */
@media (max-width: 420px) {
    .cv-promo-fixed__actions .btn-primary-custom {
        font-size: 0.82rem;
        padding: 0.6rem 0.5rem;
    }
}
