/* Cookzer shared shell styles — sidebar, header, reset, scrollbar, mobile nav.
   Page-specific styles stay inline in each page's <style> block. */
:root {
  --cream: #F7F2E9;
  --card-bg: #FFFFFF;
  --ink: #2B2620;
  --ink-soft: #6B6255;
  --olive: #009246;
  --olive-dark: #00733A;
  --mustard: #D9A441;
  --brick: #CE2B37;
  --line: #E7DFCF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  font-family: 'Work Sans', sans-serif;
  color: var(--ink);
  background: var(--cream);
}

h1, h2, h3, .brand {
  font-family: 'Fraunces', serif;
  font-weight: 600;
}

/* Layout */
body {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* Sidebar */
.sidebar {
  width: 280px;
  background: var(--card-bg);
  border-right: 1px solid var(--line);
  padding: 20px 0;
  overflow-y: auto;
  flex-shrink: 0;
}

.sidebar-brand {
  padding: 0 16px;
  margin-bottom: 20px;
  font-size: 22px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  color: var(--olive-dark);
  letter-spacing: -0.5px;
}

.sidebar-brand span {
  color: var(--brick);
}

.sidebar-item {
  padding: 10px 16px;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: all 0.2s;
  font-size: 15px;
  color: var(--ink-soft);
}

.sidebar-item:hover {
  background: var(--cream);
  color: var(--olive);
}

.sidebar-item.active {
  border-left-color: var(--olive);
  color: var(--olive-dark);
  font-weight: 500;
  background: rgba(78, 90, 62, 0.05);
}

.sidebar-item.icon {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-item.icon:before {
  font-size: 20px;
  min-width: 20px;
}

.sidebar-item.feed:before { content: "📰"; }
.sidebar-item.cookbook:before { content: "📚"; }
.sidebar-item.planner:before { content: "📅"; }
.sidebar-item.challenges:before { content: "🏆"; }
.sidebar-item.profile:before { content: "👤"; }
.sidebar-item.messenger:before { content: "💬"; }

/* Header */
.header {
  position: absolute;
  top: 0;
  left: 280px;
  right: 0;
  height: 60px;
  background: var(--card-bg);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 24px;
  justify-content: space-between;
  z-index: 10;
}

.brand-header span {
  color: var(--brick);
}

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

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--line);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s;
}

.icon-btn:hover {
  background: #f0e6d2;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--ink-soft);
}

/* Mobile nav */
.menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--line);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(43, 38, 32, 0.4);
  z-index: 90;
}
