
   /* ===============================
   LANDING PAGE
================================ */

.landing {
  max-width: 1100px;
  margin: auto;
  padding: 60px 20px;
}

/* HERO */
.hero {
  text-align: center;
  margin-bottom: 80px;
}

.hero-logo {
  width: 90px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--secondary);
}

.hero-subtitle {
  font-size: 1.4rem;
  color: var(--text-muted);
  margin: 12px 0 24px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* FEATURES */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-bottom: 80px;
}

.feature-card {
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.feature-card h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

/* ABOUT */
.about {
  max-width: 800px;
  margin: 0 auto 80px;
  text-align: center;
}

.about h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

/* CTA */
.cta {
  text-align: center;
}

.btn {
  background: rgb(54, 91, 66);
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn.primary {
  background: var(--primary);
  color: #fff;
}

.btn.secondary {
  background: var(--secondary);
  color: #fff;
}

.btn.large {
  padding: 14px 32px;
  font-size: 1.1rem;
}

/* =============================== 
  login & register pages
================================ */
.login-form {
  max-width: 500px;      /* responsive */
  width: 100%;
  padding: 1.5em;
  margin: 2em auto;      /* centers horizontally */
  border-radius: 24px;
  border: 2px solid green;

  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.input {
  width: 100%;
  padding: 0.5em 1em;
  margin: 0.5em 0;
  border: 1px solid green;
  border-radius: 999px;
  font-size: 16px;
  box-sizing: border-box;
}

/* =========================================================

DESIGN TOKENS (SOCIAL APP THEME)
========================================================= */
:root {
  --primary: #1ea952; /* darker, WCAG-safe */
  --secondary: #1877f2;
  --accent: #ffb703;

  --bg-page: #ece5dd;
  --bg-card: #ffffff;
  --bg-chat: #ffffff;
  --bg-sidebar: #f0f0f0;
  --nav-bg: rgba(255,255,255,0.85);

  --text-main: #111;
  --text-muted: #555;

  --border-soft: #ddd;

  --radius-md: 12px;
  --radius-lg: 16px;

  --shadow-sm: 0 2px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 6px 20px rgba(0,0,0,0.15);

  --space-2: 12px;
  --space-3: 16px;

  --nav-height: 64px;
  --font-family: "Inter", sans-serif;
}

/* =========================================================
   RESET & BASE
========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { font-size: 16px; }

body {
  font-family: "Noto Sans Ethiopic", Arial, sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* =========================================================
   WRAPPER SYSTEM
========================================================= */
.wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-3);
}

@media (min-width: 768px) {
  .wrapper { max-width: 1100px; }
}

/* =========================================================
   NAVBAR (MERGED & CLEAN)
========================================================= */
.db-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.db-nav-inner {
  max-width: 1100px;
  margin: auto;
  padding: var(--space-2) var(--space-3);

  display: flex;
  align-items: center;
  gap: var(--space-2);

  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* Brand */
.db-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.DreamBook-logo {
  width: 40px;
  height: 40px;
}

.db-title {
  font-weight: 800;
  color: var(--secondary);
}

/* Hamburger */
.db-hamburger {
  margin-left: auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
  z-index: 10000;
}

.db-hamburger .bar {
  width: 22px;
  height: 2px;
  background: var(--text-main);
  margin: 3px 0;
  background: rgba(0,0,0,0.08);

}

.db-hamburger:focus-visible {
  background: rgba(0,0,0,0.08);
}
/* =========================================================
   NAV LINKS (MAIN CONTAINER)
========================================================= */
.nav-links {
  position: relative; /* FIX alignment */
  display: flex;
  align-items: center;
  justify-content: center;

  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  margin-top: 12px; /* FIX no top spacing */

  background: linear-gradient(135deg, #1b0462, #3b1fa6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);

  /* Desktop: always visible */
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;

  transition: all 0.35s ease;
  z-index: 1100;
}
.menu-toggle {
  display: none; /* hidden on desktop by default */
}
/* =========================================================
   NAV ITEM BUTTONS
========================================================= */
.ni {
  color: #ffffff;

  padding: 10px 22px;
  border-radius: 999px;
  border: none;

  font-weight: 600;
  letter-spacing: 0.4px;
  text-align: center;

  box-shadow:
    0 6px 15px rgba(0, 0, 0, 0.25),
    inset 0 1px 2px rgba(255, 255, 255, 0.8);

  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

/* HOVER */
.ni:hover {
  transform: translateY(-3px);
  background: linear-gradient(145deg, #ffd86f, #ffb703);
  box-shadow:
    0 10px 25px rgba(255, 183, 3, 0.45),
    0 0 12px rgba(255, 183, 3, 0.5);
}

/* CLICK */
.ni:active {
  transform: translateY(-1px) scale(0.97);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* =========================================================
   ACCOUNT DROPDOWN (FIXED)
========================================================= */
.dropdown {
  position: relative;
  display: inline-flex;
}

.dropdown-content {
  display: none;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  overflow: hidden;
  z-index: 1200;
}

.dropdown-content a,
.dropdown-content button {
  padding: 10px 16px;
  display: block;
  text-align: left;
  width: 100%;
  color: var(--text-main);
}

.dropdown-content a:hover,
.dropdown-content button:hover {
  background: #f2f4f7;
}

.dropdown-content.active {
  display: block;
}

/* Mobile dropdown styles for account dropdown */
@media (max-width: 899px) {
  .dropdown-content {
    position: static;
    background: #f8f9fb;
    box-shadow: none;
    border: 1px solid var(--border-soft);
  }

  .dropdown-content a,
  .dropdown-content button {
    padding-left: 24px;
  }
}

/* =========================================================
   MOBILE NAV FIX
========================================================= */
@media (max-width: 768px) {

  /* Hide nav links by default */
  .nav-links {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;

    width: 100%;
    margin: 0;
    padding: 12px 16px;

    background: linear-gradient(135deg, #1b0462, #3b1fa6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border-radius: 0 0 18px 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);

    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);

    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: all 0.35s ease;
  }

  /* Show nav links on active */
  .nav-links.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  /* Make nav buttons full width */
  .ni {
    width: 100%;
    max-width: none;
    text-align: center;
  }

  /* Prevent horizontal scroll */
  body,
  html {
    overflow-x: hidden;
  }
}


/* =========================================================
   POST CARD
========================================================= */
.post-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: var(--space-3);
  margin-bottom: var(--space-3);
  border: 1px solid var(--border-soft);
}

/* =========================================================
   CHAT LAYOUT (WHATSAPP STYLE)
========================================================= */
.chat-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  height: calc(100vh - var(--nav-height));
  background: var(--bg-page);
}

.online-users {
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-soft);
  padding: var(--space-3);
  overflow-y: auto;
}

.online-list {
  list-style: none;
  padding: 0;
}

.online-list li {
  display: flex;
  align-items: center;
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-1);
}

.online-list li:hover {
  background: var(--bg-hover);
}

.online-list a {
  margin-left: var(--space-2);
  text-decoration: none;
  color: var(--text-primary);
}

.online-dot {
  color: #4CAF50;
}

.sidebar {
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-soft);
  overflow-y: auto;
}

.chat-area {
  display: flex;
  flex-direction: column;
  background: var(--bg-chat);
}

/* Messages */
.messages,
#chat-list {
  flex: 1;
  padding: var(--space-3);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* Bubbles */
.bubble {
  max-width: 60%;
  padding: var(--space-2);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-2);
  box-shadow: var(--shadow-sm);
}

.bubble.me {
  background: #dcf8c6;
  align-self: flex-end;
  border-bottom-right-radius: 0;
}

.bubble.them {
  background: #fff;
  align-self: flex-start;
  border-bottom-left-radius: 0;
}

/* Send box */
.send-box {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-2);
  border-top: 1px solid var(--border-soft);
}

.send-box textarea {
  flex: 1;
  resize: none;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  padding: 8px;
}

.send-box button {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 8px 16px;
  font-weight: bold;
}

/* =========================================================
   UTILITIES
========================================================= */
.hidden { display: none; }
.text-muted { color: var(--text-muted); }


/* =========================================================
   DREAM DICTIONARY PAGE
========================================================= */

.dictionary-page,
.post-card,
.search-results li {
  line-height: 1.7;
  font-size: 16px;
}


/* =========================================================
   PAGE HEADER
========================================================= */
.page-header {
  text-align: center;
  margin-bottom: 32px;
}

.page-header h1 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 8px;
}

.page-header p {
  font-size: 1.2rem;
  color: var(--text-muted);
}

/* =========================================================
   ALERTS
========================================================= */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 16px;
}

.alert.error {
  background: #fdecea;
  color: #8a1f17;
  border: 1px solid #f5c6cb;
}

.alert.success {
  background: #e6f9f0;
  color: #146c43;
  border: 1px solid #b7ebd4;
}

/* =========================================================
   ADD DREAM MEANING
========================================================= */
.dictionary-add {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  margin-bottom: 32px;
}

.dictionary-add h2 {
  font-size: 1.6rem;
  margin-bottom: 6px;
  color: var(--text-main);
}

.dictionary-add p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.dream-analyzer-form label {
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

.dream-analyzer-form input,
.dream-analyzer-form textarea {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 16px;
}

.dream-analyzer-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* =========================================================
   SEARCH SECTION
========================================================= */
.dictionary-search {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  margin-bottom: 32px;
}

.dictionary-search h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.dictionary-search form {
  display: flex;
  gap: 10px;
}

.dictionary-search input {
  flex: 1;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
}

/* Live results */
.live-results {
  list-style: none;
  margin-top: 12px;
  padding: 0;
}

.live-results li {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 16px;
  cursor: pointer;
}

.live-results li:hover {
  background: #f4f6f8;
}

/* =========================================================
   SEARCH RESULTS
========================================================= */
.search-results {
  list-style: none;
  margin-top: 16px;
  padding: 0;
}

.search-results li {
  padding: 12px;
  background: #f8fafc;
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  line-height: 1.5;
}

/* =========================================================
   buttons
========================================================= */
.btn {
  padding: 10px 20px;
  border-radius: var(--radius-md);
  min-height: 44px;
  min-width: 44px;
  transition: background-color 0.3s ease;
}
.ni:hover {
  transform: translateY(-3px);
  background: linear-gradient(145deg, #ffd86f, #ffb703);
  box-shadow:
    0 10px 25px rgba(255, 183, 3, 0.45),
    0 0 12px rgba(255, 183, 3, 0.5);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* Live Discussion Shares */
.live-share-post {
  border-left: 4px solid #ff6b6b;
  background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
}

.live-indicator {
  background: #ff6b6b;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: bold;
  margin-left: 8px;
}
