/* ========================================
   NAVIGATION.CSS - Навігація та бокова панель
   ======================================== */

/* Бокова панель */
aside {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100dvh;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, var(--card), transparent);
}

.aside-inner {
  padding: 28px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
}

/* Брендинг */
.brand {
  padding: 0 20px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Посилання на логотипі */
.logo-link {
  display: block;
  width: 100%;
  text-decoration: none;
}

/* Зображення логотипу */
.logo-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  transition: transform 0.2s, box-shadow 0.2s;
}

/* Placeholder якщо зображення не завантажилось */
.logo-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  display: none;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.logo-link:hover .logo-placeholder {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
}

.logo-initial {
  font-size: 48px;
  font-weight: 700;
  color: #fff;
}

/* Tagline під логотипом */
.tagline {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
  text-align: center;
}

/* Навігація */
nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-title {
  margin: 16px 0 8px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  color: inherit;
}

.nav-link:hover {
  background: var(--card);
}

.nav-link svg {
  opacity: .8;
}

/* Активна сторінка */
.nav-link.active,
.nav-child.active {
  font-style: italic;
  font-weight: 600;
}

/* Call-to-action блок */
.cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Переключатель теми (компактний) */
.theme-toggle-compact {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.theme-toggle-compact .theme-btn {
  flex: 1;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.5;
}

.theme-toggle-compact .theme-btn:hover {
  opacity: 0.8;
  box-shadow: var(--shadow);
}

.theme-toggle-compact .theme-btn.active {
  opacity: 1;
  background: var(--card);
  font-weight: 600;
}

/* Мобільні елементи (ховаємо на десктопі) */
.mobile-header,
.mobile-footer,
.theme-toggle-mobile,
.nav-toggle {
  display: none;
}

.breadcrumbs {
  flex-wrap: wrap; /* Дозволяє перенос на новий рядок */
  overflow-wrap: break-word;
  word-break: break-word; /* Ламає довгі слова, як "пального" */
}

.breadcrumb-item,
.breadcrumb-current {
  white-space: normal; /* Замість nowrap, якщо воно там є */
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.logo-text {
  display: flex;
  align-items: center;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: 55px;
  line-height: 1;
}

.logo-ai {
  color: #635BFF; /* фірмовий фіолетовий */
}

.logo-craft {
  color: #111827; /* чорний у світлій темі */
}

/* Темна тема */
.dark .logo-craft {
  color: #F9FAFB; /* світлий у темній темі */
}

.nav-contact {
  width: 100%;
  margin: 12px 0;
}

.nav-contact-inner {
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-secondary);
}

.nav-email {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
}

.nav-email:hover {
  text-decoration: underline;
  opacity: 0.85;
}

.nav-pomodoro-wrapper {
  margin: 18px 0 12px;
  display: flex;
  justify-content: center;
}

.nav-pomodoro-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 999px;
  background: #635BFF;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(99, 91, 255, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  max-width: 180px;
  width: 100%;
}

.nav-pomodoro-btn:hover {
  background: #4f46e5;
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.45);
  transform: translateY(-1px);
}

.nav-pomodoro-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(79, 70, 229, 0.35);
}


/* Десктоп: показуємо нижній блок, ховаємо мобільний */
@media (min-width: 861px) {
  .nav-contact-desktop { display: block; }
  .nav-contact-mobile  { display: none;  }
}

@media (max-width: 860px) {
  .nav-contact-desktop { display: none;  }
  .nav-contact-mobile  { display: block; }
}

