/* ================================
   Reusable UI components
   ================================ */

/* ---------- NAVIGATION ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 12px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
}

.brand-name {
  font-weight: 600;
  letter-spacing: .03em;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: .9rem;
  color: var(--text-muted);
}

.nav-links a {
  opacity: .9;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #22c55e);
  transition: width .2s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* ---------- THEME TOGGLE ---------- */
#themeToggle {
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 6px 12px;
  cursor: pointer;
  background: transparent;
  font-size: .85rem;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* ---------- RESPONSIVE NAV ---------- */
@media (max-width: 720px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-right {
    width: 100%;
    justify-content: space-between;
  }
  .nav-links {
    gap: 12px;
    font-size: .85rem;
  }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: .9rem;
  cursor: pointer;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg,#4f46e5,#22c55e);
  color: #f9fafb;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-main);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: rgba(148,163,184,0.08);
}

/* ---------- CARDS ---------- */
.card {
  background: rgba(255,255,255,.9);
  border-radius: var(--radius-xl);
  padding: 16px 18px 18px;
  border: 1px solid var(--border);
  font-size: .87rem;
  box-shadow: var(--shadow-soft);
}

[data-theme="dark"] .card {
  background: rgba(15,23,42,.95);
}

/* ---------- PILLS ---------- */
.pill-soft {
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef2ff;
  font-size: .78rem;
}

[data-theme="dark"] .pill-soft {
  background: rgba(37,99,235,.25);
}

/* ---------- FOOTER ---------- */
.footer {
  margin-top: 32px;
  font-size: .75rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
