/* ═══════════════════════════════════════════
   navbar.css — Navbar + Side Drawer Styles
   Abb Tak Single ❤️
   Used in: ALL HTML pages
═══════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  height: var(--navbar-height);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  gap: 10px;
}

/* ─── HAMBURGER BUTTON (Left) ─── */
.hamburger-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  flex-shrink: 0;
  transition: background var(--transition-fast);
}
.hamburger-btn:hover {
  background: var(--bg-primary);
}
.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-main);
  transform-origin: center;
}

/* Hamburger → X animation when drawer open */
.hamburger-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── LOGO (Center) ─── */
.navbar-logo {
  font-size: clamp(0.88rem, 3.5vw, 1.05rem);
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  white-space: nowrap;
  flex: 1;
  text-align: center;
  letter-spacing: -0.3px;
}

/* ─── RIGHT BUTTONS ─── */
.navbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: var(--radius-full);
  border: none;
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-main);
  white-space: nowrap;
}

/* Love Meter Button */
.nav-btn.love-btn {
  background: rgba(255, 107, 157, 0.1);
  color: var(--color-primary);
  border: 1.5px solid rgba(255, 107, 157, 0.25);
}
.nav-btn.love-btn:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 157, 0.35);
}

/* Your Story Button */
.nav-btn.story-btn {
  background: var(--gradient-main);
  color: #fff;
  border: none;
  box-shadow: 0 3px 10px rgba(255, 107, 157, 0.35);
}
.nav-btn.story-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 107, 157, 0.45);
  color: #fff;
}

/* Hide button text on very small screens */
@media (max-width: 360px) {
  .nav-btn span { display: none; }
  .nav-btn { padding: 8px 10px; }
}

/* ═══════════════════════════════════════════
   DRAWER OVERLAY
═══════════════════════════════════════════ */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--transition-main),
    visibility var(--transition-main);
}
.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ═══════════════════════════════════════════
   SIDE DRAWER
═══════════════════════════════════════════ */
.side-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(300px, 85vw);
  background: var(--bg-card);
  z-index: 1001;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 30px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}
.side-drawer.active {
  transform: translateX(0);
}

/* Drawer Header */
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: var(--gradient-main);
  flex-shrink: 0;
}
.drawer-logo {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
}
.drawer-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
  flex-shrink: 0;
}
.drawer-close:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* Drawer Content (scrollable) */
.drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
  scrollbar-width: none;
}
.drawer-content::-webkit-scrollbar { display: none; }

/* Drawer Section */
.drawer-section {
  padding: 8px 16px;
  border-bottom: 1px solid var(--border-color);
}
.drawer-section:last-child {
  border-bottom: none;
}

/* Section Title */
.drawer-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 4px;
}
.drawer-section-title i {
  color: var(--color-primary);
  font-size: 0.75rem;
}

/* ─── DARK MODE ROW ─── */
.dark-mode-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}
.dark-mode-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}
.dark-mode-info i {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(255, 107, 157, 0.1);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

/* ─── DRAWER CATEGORIES ─── */
.drawer-categories {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 0;
}
.drawer-cat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
  text-decoration: none;
  width: 100%;
}
.drawer-cat i {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}
.drawer-cat:hover {
  background: rgba(255, 107, 157, 0.08);
  color: var(--color-primary);
}
.drawer-cat:hover i {
  background: rgba(255, 107, 157, 0.15);
}
.drawer-cat.active {
  background: rgba(255, 107, 157, 0.1);
  color: var(--color-primary);
  font-weight: 600;
}
.drawer-cat.active i {
  background: var(--gradient-main);
  color: #fff;
}

/* ─── SAVED STORIES ─── */
.saved-count-badge {
  margin-left: auto;
  background: var(--gradient-main);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  min-width: 20px;
  text-align: center;
}

.saved-stories-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 0;
  max-height: 200px;
  overflow-y: auto;
  scrollbar-width: none;
}
.saved-stories-list::-webkit-scrollbar { display: none; }

/* Empty Saved State */
.saved-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px;
  color: var(--text-muted);
}
.saved-empty i {
  font-size: 1.5rem;
  opacity: 0.5;
}
.saved-empty p {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

/* Saved Story Item */
.saved-story-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}
.saved-story-item:hover {
  background: rgba(255, 107, 157, 0.08);
}
.saved-story-thumb {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.saved-story-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.saved-story-info {
  flex: 1;
  overflow: hidden;
}
.saved-story-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.saved-story-cat {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: capitalize;
}

/* ─── DRAWER LINKS ─── */
.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 0;
}
.drawer-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-fast);
}
.drawer-link i {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}
.drawer-link:hover {
  background: rgba(255, 107, 157, 0.08);
  color: var(--color-primary);
}

/* ═══════════════════════════════════════════
   BODY SCROLL LOCK
   (when drawer is open on mobile)
═══════════════════════════════════════════ */
body.drawer-open {
  overflow: hidden;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */

/* Tablet 768px+ */
@media (min-width: 768px) {
  .navbar {
    padding: 0 20px;
  }
  .navbar-logo {
    font-size: 1.1rem;
  }
  .nav-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
  .side-drawer {
    width: 300px;
  }
}

/* Desktop 1024px+ */
@media (min-width: 1024px) {
  .navbar {
    padding: 0 24px;
  }
  .nav-btn {
    padding: 9px 18px;
    font-size: 0.82rem;
  }
}