/*
 * Bibado layout and brand utilities.
 * Colors that exist in Tailwind (config) should use Tailwind classes in views.
 * This file only contains layout structure and utilities that cannot be done with Tailwind.
 */

/* ============================================
   TYPOGRAPHY - Nunito Sans (Soleil alternative)
   ============================================ */

body, html {
  font-family: 'Nunito Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   BIBADO LAYOUT - Desktop / mobile structure
   ============================================ */

/* Desktop sidebar: hidden on mobile, shown at 1024px+ */
.bibado-desktop-sidebar {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 280px;
  background: white;
  flex-direction: column;
  z-index: 100;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  border-right: 1px solid #e5e7eb;
}

.bibado-desktop-sidebar .bibado-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  color: #374151;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}

.bibado-desktop-sidebar .bibado-nav-item:hover {
  background: #f9fafb;
}

.bibado-desktop-sidebar .bibado-nav-item.active {
  background: #fef2f2;
  color: #667483;
  border-left-color: #e9c6c1;
}

.bibado-desktop-sidebar .bibado-nav-item svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: #6b7280;
}

.bibado-desktop-sidebar .bibado-nav-item.active svg {
  color: #667483;
}

/* Mobile frame: full width on mobile; desktop has no frame */
.bibado-mobile-frame {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Desktop: hide bottom nav and burger, show sidebar, offset main content */
@media (min-width: 1024px) {
  .bibado-mobile-frame {
    max-width: none;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
  }

  .bibado-bottom-nav {
    display: none !important;
  }

  .bibado-burger-btn {
    display: none !important;
  }

  .bibado-desktop-sidebar {
    display: flex !important;
  }

  .bibado-main-content {
    margin-left: 280px;
    padding-bottom: 2rem;
  }

  .bibado-header-offset {
    margin-left: 280px;
  }
}

/* Safe area for notch / home indicator */
.bibado-safe-top {
  padding-top: env(safe-area-inset-top, 20px);
}

.bibado-safe-bottom {
  padding-bottom: env(safe-area-inset-bottom, 20px);
}

/* ============================================
   RICH TEXT CONTENT - Trix editor output
   ============================================ */

.prose h1 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.prose h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 0.875rem;
  margin-bottom: 0.375rem;
}

.prose h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
}

.prose p {
  margin-bottom: 0.5rem;
}

.prose ul, .prose ol {
  margin-left: 1.25rem;
  margin-bottom: 0.5rem;
}

.prose ul {
  list-style-type: disc;
}

.prose ol {
  list-style-type: decimal;
}

.prose li {
  margin-bottom: 0.25rem;
}

.prose strong, .prose b {
  font-weight: 600;
}

.prose em, .prose i {
  font-style: italic;
}

.prose blockquote {
  border-left: 3px solid #e5e7eb;
  padding-left: 1rem;
  margin-left: 0;
  margin-bottom: 0.5rem;
  color: #6b7280;
  font-style: italic;
}

.prose a {
  color: #7e6a9a;
  text-decoration: underline;
}

.prose a:hover {
  color: #5c4d73;
}
