/* ============================================================
   Dream MS — Home page additive styles
   Layered on top of the TheEvent template's assets/css/style.css
   ============================================================ */

:root {
  --dms-navy-900: #0e1b4d;
  --dms-navy-700: #1d2f6b;
  --dms-ink:      #100e17;
  --dms-accent:   #f82249;
  --dms-accent-2: #ff5b7b;
  --dms-paper:    #ffffff;
  --dms-paper-2:  #f7f8fc;
  --dms-muted:    #6b7280;
  --dms-border:   rgba(14, 27, 77, 0.10);
  --dms-shadow:   0 18px 38px -18px rgba(14, 27, 77, 0.35);
  --dms-radius:   14px;
  /* Unified vertical rhythm + shared scrollbar tint so sections and feed
     panels stop drifting (smega/changelog/speakers each hardcoded their own). */
  --dms-section-pad:       56px 0;
  --dms-scroll-thumb:       rgba(14, 27, 77, 0.2);
  --dms-scroll-thumb-hover: rgba(14, 27, 77, 0.4);
}

/* Bootstrap 3 float utilities that the template's header markup relies on.
   FA4 used to provide these; removed when we switched to FA6, so the #logo
   div lost its `float: left` and the nav dropped below it. */
.pull-left  { float: left  !important; }
.pull-right { float: right !important; }

/* ----------------------------------------------------------------
   Navigation — Bootstrap 5 navbar (replaces the template's float nav +
   JS-cloned mobile drawer). #header stays the fixed/translucent wrapper:
   the announcement-bar JS and .header-scrolled both target #header.
   ---------------------------------------------------------------- */
#header .navbar { padding: 0; }

.navbar-logo { max-height: 40px; width: auto; display: block; }

#header .navbar-nav { gap: 2px; }

#header .nav-link {
  position: relative;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: rgba(202, 206, 221, 0.85);
  padding: 8px 10px;
  transition: color 180ms ease;
}

#header .nav-link:hover,
#header .nav-link:focus,
#header .nav-link.active { color: #fff; }

@media (min-width: 992px) {
  #header .nav-link::before {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 2px;
    height: 2px;
    background: var(--dms-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 240ms ease;
  }
  #header .nav-link:hover::before,
  #header .nav-link.active::before { transform: scaleX(1); }
  #header .nav-cta::before { display: none; }
}

#header .nav-cta {
  color: #fff;
  background: var(--dms-accent);
  border: 2px solid var(--dms-accent);
  border-radius: 50px;
  padding: 6px 20px;
  font-weight: 500;
  font-size: 13px;
  line-height: 1;
  transition: background 200ms ease, color 200ms ease;
}
#header .nav-cta:hover,
#header .nav-cta:focus { background: transparent; color: #fff; }

/* Library nav dropdown — match the dark navy bar rather than default Bootstrap. */
#header .dropdown-menu {
  min-width: 190px;
  background: linear-gradient(165deg, rgba(13, 21, 51, 0.98), rgba(6, 12, 34, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 8px;
  margin-top: 10px;
  box-shadow: 0 18px 38px -18px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
#header .dropdown-menu::before {
  content: '';
  display: block;
  height: 2px;
  margin: -8px -8px 8px;
  background: linear-gradient(90deg, var(--dms-accent), var(--dms-accent-2, #ff5b7b));
}
#header .dropdown-menu.show { animation: navdrop-in 160ms ease; }
@keyframes navdrop-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
#header .dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  color: rgba(202, 206, 221, 0.85);
  border-radius: 9px;
  padding: 9px 12px;
  transition: color 180ms ease, background 180ms ease;
}
#header .dropdown-item i:first-child {
  width: 16px;
  text-align: center;
  font-size: 12px;
  color: rgba(202, 206, 221, 0.5);
  transition: color 180ms ease;
}
#header .dropdown-item .drop-ext { margin-left: auto; font-size: 9.5px; opacity: 0.45; }
#header .dropdown-item:hover,
#header .dropdown-item:focus { color: #fff; background: rgba(248, 34, 73, 0.14); }
#header .dropdown-item:hover i:first-child,
#header .dropdown-item:focus i:first-child { color: var(--dms-accent-2, #ff5b7b); }
#header .dropdown-item.active,
#header .dropdown-item:active { color: #fff; background: linear-gradient(135deg, var(--dms-accent), var(--dms-accent-2, #ff5b7b)); }
#header .dropdown-item.active i:first-child,
#header .dropdown-item:active i:first-child { color: #fff; }
@media (prefers-reduced-motion: reduce) {
  #header .dropdown-menu.show { animation: none; }
}

@media (max-width: 991.98px) {
  #header .navbar-collapse {
    background: rgba(6, 12, 34, 0.98);
    margin: 8px -15px 0;
    padding: 10px 20px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0 0 12px 12px;
  }
  #header .navbar-nav { gap: 0; }
  #header .nav-link { padding: 11px 4px; font-size: 16px; }
  #header .nav-cta { display: inline-block; margin-top: 8px; text-align: center; }
}

