/* =========================================
   STYLY PRO CV (.cv.css)
   ========================================= */

.cv-wrapper {
  position: relative;
}

/* Přepínač jazyků (CZ / EN) */
.lang-switcher {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  padding: 4px;
  border-radius: 10px;
}

.lang-btn {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 4px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  color: var(--text-main);
}

.lang-btn.active {
  background: var(--accent);
  color: #080808;
}

/* Hlavička životopisu */
.cv-header {
  margin-bottom: 32px;
  padding-right: 110px;
}

.cv-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.cv-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.cv-contacts a {
  color: var(--accent);
  text-decoration: none;
}

.cv-contacts a:hover {
  text-decoration: underline;
}

/* Sekce */
.cv-section {
  margin-top: 28px;
}

.cv-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-light);
}

.cv-section h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

/* Seznamy (odrážky) */
.cv-list {
  margin: 0 0 0 18px;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.cv-list li {
  margin-bottom: 4px;
}

/* Položky praxe a vzdělání */
.cv-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.cv-item:hover {
  border-color: var(--accent);
  background: rgba(34, 197, 94, 0.03);
}

.cv-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.cv-item-header h3 {
  margin-bottom: 0;
}

.cv-item-header h3 span {
  color: var(--accent);
  font-weight: 500;
}

.cv-date {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  padding: 3px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

.cv-sublist {
  margin: 8px 0 0 18px;
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.5;
}

.cv-edu-desc {
  color: var(--text-muted);
  font-size: 0.93rem;
  margin-bottom: 0;
}

.cv-edu-desc strong {
  color: var(--text-main);
}

/* Dvousloupcové rozvržení pro jazyky a vlastnosti */
.cv-grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 18px 20px;
}

/* Responzivita pro mobily */
@media (max-width: 768px) {
  .cv-header {
    padding-right: 0;
    margin-top: 45px; /* Prostor pro jazykový přepínač nahoře */
  }

  .lang-switcher {
    top: 0;
    right: 0;
  }

  .cv-item-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .cv-grid-two {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}