/* ══════════════════════════════════════════════════════════════════════════════
   DreamedAbout.com — Global Design Tokens & Visual Enhancements
   ══════════════════════════════════════════════════════════════════════════════ */

:root {
  --bg-primary: #0B132B;
  --bg-secondary: #1C2541;
  --bg-glass: rgba(28, 37, 65, 0.55);
  --accent-primary: #5BC0EB;
  --accent-secondary: #CDB4DB;
  --text-primary: #EAEAEA;
  --text-muted: #A0A7B8;
  --text-faint: #6B7280;
  --cta-dream: #6FFFE9;
  --border: #2A3550;
  --border-subtle: #1E2B45;
  --accent-glow: rgba(91, 192, 235, 0.08);
  --accent-border: rgba(91, 192, 235, 0.2);
  --glow-accent: 0 0 18px rgba(91, 192, 235, 0.25);
  --glow-dream: 0 0 18px rgba(111, 255, 233, 0.3);
  --glow-secondary: 0 0 22px rgba(205, 180, 219, 0.25);
}

/* ── Faint star / noise texture ─────────────────────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0.035;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ── Soft page fade-in ──────────────────────────────────────────────────────── */
@keyframes pageIn {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}

body {
  animation: pageIn 0.3s ease-out both;
}

/* ── Glass / frosted card effect ────────────────────────────────────────────── */
.card,
.info-card,
.form-card,
.stat-card,
.pw-card,
.sponsor-section,
.date-bar {
  background: var(--bg-glass) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ── Button glow effects ────────────────────────────────────────────────────── */
button[type="submit"],
.btn-primary {
  box-shadow: var(--glow-accent);
  transition: box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

button[type="submit"]:hover,
.btn-primary:hover {
  box-shadow: var(--glow-secondary);
}

/* ── Dream CTA button ───────────────────────────────────────────────────────── */
.btn-dream,
button.btn-dream {
  background: var(--cta-dream) !important;
  color: var(--bg-primary) !important;
  border-color: var(--cta-dream) !important;
  box-shadow: var(--glow-dream);
  font-weight: 700;
}

.btn-dream:hover,
button.btn-dream:hover {
  box-shadow: 0 0 28px rgba(111, 255, 233, 0.45);
  background: #8AFFF0 !important;
}

/* ── Nav logo image ─────────────────────────────────────────────────────────── */
.nav-logo-img {
  height: 32px;
  width: auto;
  vertical-align: middle;
  margin-right: 6px;
}

/* ── Search wrap fix ─────────────────────────────────────────────────────────── */
.search-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.search-wrap input[type="text"] {
  width: 100%;
}

/* ── Stacked search bar on mobile ────────────────────────────────────────────── */
@media (max-width: 767px) {
  .search-row {
    flex-direction: column !important;
    gap: 8px !important;
  }
  .search-row .search-wrap {
    width: 100% !important;
    max-width: none !important;
    flex: none !important;
  }
  .search-row input[type="text"] {
    width: 100% !important;
    max-width: none !important;
  }
  .search-row button {
    width: 100% !important;
    max-width: none !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════════════
   NAV
   ══════════════════════════════════════════════════════════════════════════════ */

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.nav-logo {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
}

.nav-logo span {
  color: var(--accent-primary);
}

/* ── Desktop nav links ───────────────────────────────────────────────────────── */
.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
}

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  border: none;
  background: none;
}

.nav-links a:hover {
  color: var(--accent-primary);
}

.nav-logout {
  color: var(--text-faint) !important;
}

.nav-logout:hover {
  color: var(--text-muted) !important;
}

.nav-signup {
  color: var(--accent-primary) !important;
}

.nav-signup:hover {
  color: var(--accent-secondary) !important;
}

/* ── Hamburger — hidden on desktop ───────────────────────────────────────────── */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
  z-index: 101;
  box-shadow: none;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile nav ──────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .hamburger {
    display: flex !important;
  }

  .nav-links {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 8px 0;
    z-index: 100;
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  }

  .nav-links.open {
    display: flex !important;
  }

  /* Logged-out nav: always visible inline, no hamburger */
  .nav-links-static {
    display: flex !important;
    position: static !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    flex-direction: row !important;
  }

  .nav-links:not(.nav-links-static) a {
    padding: 12px 20px;
    font-size: 0.95rem;
    border-radius: 0;
    width: 100%;
  }

  .nav-links:not(.nav-links-static) a:hover {
    background: var(--accent-glow);
  }

  @keyframes navSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/* ══════════════════════════════════════════════════════════════════════════════
   END NAV
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Autocomplete suggest (no results) ─────────────────────────────────────── */
.ac-suggest {
  padding: 16px 18px;
  text-align: center;
}

.ac-suggest-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.ac-suggest-text strong {
  color: var(--text-primary);
}

.ac-suggest-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 7px;
  font-size: 0.85rem;
  padding: 8px 18px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, color 0.15s;
}

.ac-suggest-btn:hover {
  border-color: var(--accent-primary);
  color: var(--text-primary);
}

.ac-suggest-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 10px;
  line-height: 1.5;
}

/* ── Smooth transitions ──────────────────────────────────────────────────────── */
a,
button,
input,
select,
textarea {
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
