/* ===== theme.css — спільні компоненти ===== */

:root {
  --color-primary:      #667eea;
  --color-primary-dark: #764ba2;
  --color-gradient:     linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --color-bg:           #f8f9fa;
  --color-card:         #fff;
  --color-border:       #e0e0e0;
  --color-text:         #333;
  --color-muted:        #6c757d;
}

/* ── Хедер ── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(12px, 2vw, 15px) clamp(15px, 4vw, 20px);
  border-bottom: 1px solid var(--color-border);
  background: #fff;
  box-sizing: border-box;
  overflow-x: auto;
}

/* ── Хлібні крихти ── */
.site-header .breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
  font-size: clamp(12px, 2vw, 14px);
  white-space: nowrap;
  flex: 1;
}
.site-header .breadcrumb-item a {
  color: var(--color-primary);
  text-decoration: none;
}
.site-header .breadcrumb-item a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}
.site-header .breadcrumb-item.active {
  color: var(--color-muted);
  font-weight: 500;
}

/* ── Перемикач мови ── */
.lang-switcher {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}
.lang-switcher a {
  text-decoration: none;
  opacity: 0.4;
  line-height: 1;
  transition: opacity 0.2s;
  display: inline-flex;
}
.lang-switcher a img {
  display: block;
  border-radius: 2px;
}
.lang-switcher a.active,
.lang-switcher a:hover {
  opacity: 1;
}

/* ── Фон сторінки ── */
.page-bg {
  background: var(--color-bg);
  min-height: 100vh;
}

/* ── Базова картка ── */
.content-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 20px);
  border-radius: 12px;
  border: 1px solid var(--color-border);
  text-decoration: none;
  color: var(--color-text);
  background: var(--color-card);
  transition: all 0.3s ease;
}
.content-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
  color: var(--color-text);
}
.content-card:active {
  transform: translateY(-2px);
}

/* ── Фіолетова кнопка ── */
.btn-purple {
  background: var(--color-gradient);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  padding: 10px 24px;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-purple:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  text-decoration: none;
}
.btn-purple:active {
  transform: translateY(0);
}
