/* --- PROFIL LAYOUT --- */
.profil-layout {
    max-width: 1100px;
    margin: 0 auto;
    /* Odstraněn padding-top 160px, o ten se stará .hero-section */
    padding: 0 25px 100px;
}

/* --- JAZYKOVÝ DASHBOARD --- */
.language-dashboard {
    background: var(--white);
    padding: 25px 60px 60px;    
    border-radius: 40px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.dash-header { 
    margin-bottom: 20px; 
}

.dash-header h2 {
    font-size: 2.2rem;
    letter-spacing: -1.5px;
    margin-top: 15px;
}

.lang-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    align-items: center;
    gap: 40px;
    padding: 30px 0;
    border-bottom: 1px solid var(--border);
}

.lang-row:last-child { 
    border-bottom: none; 
}

.lang-name {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.lang-cert {
    font-size: 0.9rem;
    color: var(--text-sub);
}

.lang-track {
    height: 8px;
    background: #f0f0f2;
    border-radius: 10px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.lang-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 10px;
    transition: width 0.8s cubic-bezier(0.2, 0, 0, 1);
}

/* ŠÍŘKY PRO ÚROVNĚ */
/* PŘESNÉ ŠÍŘKY – Zarovnání na KONEC úrovně */
.fill-a1 { width: 9.33%; }
.fill-a2 { width: 26%; }
.fill-b1 { width: 42.66%; }
.fill-b2 { width: 58.33%; }
.fill-c1 { width: 76%; }
.fill-c2 { width: 92.66%; }

.lang-steps {
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.lang-steps span {
    flex: 1;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #d1d1d6;
    transition: all 0.3s ease;
    position: relative;
}

.lang-steps span.active {
    color: var(--primary);
    transform: scale(1.1);
    font-weight: 800;
}

/* --- SKILLS CARDS (Certifikace & Schopnosti) --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 80px 0 10px 0;
}

.skill-card {
    background: var(--white);
    padding: 35px;
    border-radius: 35px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Tlačí tlačítko dolů */
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    min-height: 320px; /* Sjednotí výšku všech karet */
}

.skill-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 25px 50px rgba(0,0,0,0.04);
}

.skill-icon {
    font-size: 2.2rem;
    margin-bottom: 20px;
    background: #f8f8fa;
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
}

.skill-data h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.skill-data p {
    font-size: 0.95rem;
    color: var(--text-sub);
    line-height: 1.6;
    margin: 0;
}

/* NOVÉ: Tlačítko pro zobrazení certifikátu */
.view-cert-btn {
    width: 100%;
    padding: 14px;
    border-radius: 18px;
    border: none;
    background: #f8f8fa;
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 25px;
}

.view-cert-btn:hover {
    background: var(--primary);
    color: var(--white);
}

/* NOVÉ: Status pro karty bez linku */
.cert-status {
    margin-top: 25px;
    padding: 12px;
    background: #f0fdf4;
    color: #166534;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
}
.btn-arrow {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.view-cert-btn:hover .btn-arrow {
    transform: translateX(5px); /* Šipka při hoveru jemně poodjede */
}


/* --- MOBILNÍ OPTIMALIZACE --- */
@media (max-width: 850px) {
    .lang-row { grid-template-columns: 1fr; gap: 20px; }
    .skills-grid { grid-template-columns: 1fr; }
    .language-dashboard { padding: 40px 25px; }
    /* Oprava paddingu pro mobil, aby nebyl titulek nalepený nahoře */
    .profil-layout { padding-top: 0; }
        .skills-grid {
        grid-template-columns: 1fr; /* Na mobilu pod sebou */
        gap: 20px;
    }
}
