/* ============================================================
   NCM Theme – Header Styles
   ============================================================ */

/* --- Top Header Marquee Bar --- */
.top-header {
  background-color: var(--dark-navy);
  overflow: hidden;
  height: 36px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1001;
}

.top-header-marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
  flex: 1;
}

.marquee-wrapper {
  display: flex;
  width: 100%;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  animation: marqueeScroll 30s linear infinite;
  white-space: nowrap;
}

.marquee-text {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  padding: 0 32px;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  font-weight: 400;
  letter-spacing: 0.3px;
}
.marquee-text span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.marquee-text i {
  color: var(--gold);
  font-size: 14px;
}

@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Top Header Action Buttons --- */
.top-header-actions {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  height: 100%;
  position: relative;
  z-index: 2;
}

.btn-register {
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  background-color: var(--gold);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color var(--transition);
}
.btn-register:hover {
  background-color: #B5842A;
  color: var(--white);
}

.btn-login {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  background-color: var(--orange);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color var(--transition);
}
.btn-login:hover {
  background-color: #D05522;
  color: var(--white);
}

/* --- Site Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--white);
  border-bottom: 1px solid #e8eaed;
  box-shadow: none;
  transition: all var(--transition);
}
.site-header.scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border-bottom-color: transparent;
  background-color: rgba(255,255,255,0.98);
}

.header-logo-img {
  height: 48px;
  width: auto;
  transition: height var(--transition);
}
.site-header.scrolled .header-logo-img {
  height: 40px;
}

.navbar-brand {
  text-decoration: none;
}
.navbar-brand:hover {
  text-decoration: none;
}

.header-brand-text {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  font-style: normal;
  color: var(--dark-navy);
  line-height: 1.2;
  margin: 0;
  text-decoration: none;
}

.header-brand-sub {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  font-style: normal;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0;
}

/* --- Navigation --- */
.navbar-nav .nav-item a,
.navbar-nav .nav-link,
.navbar-nav a {
  text-decoration: none !important;
}
.navbar-nav .nav-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--dark-navy);
  padding: 20px 12px;
  text-decoration: none !important;
  position: relative;
  transition: color var(--transition);
  white-space: nowrap;
}
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 2px;
  background-color: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--navy);
  text-decoration: none;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

/* --- Search Trigger (full-height square) --- */
.search-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  align-self: stretch;
  border: none;
  background: var(--orange);
  border-radius: 0;
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
  transition: background-color var(--transition);
  flex-shrink: 0;
  margin-left: 12px;
}
.search-trigger:hover {
  background-color: #D05522;
  color: var(--white);
}

/* --- Search Panel (slides down from nav) --- */
.ncm-search-panel {
  position: relative;
  width: 100%;
  max-height: 0;
  overflow: hidden;
  background-color: var(--white);
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  z-index: 999;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.ncm-search-panel.ncm-search--open {
  max-height: 300px;
}

.ncm-search-inner {
  position: relative;
  padding: 24px 0 28px;
}

.ncm-search-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--dark-navy);
  margin-bottom: 12px;
}

.ncm-search-close {
  position: absolute;
  top: 24px;
  right: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--light-gray);
  border-radius: 50%;
  font-size: 18px;
  color: var(--dark-navy);
  cursor: pointer;
  transition: all var(--transition);
}
.ncm-search-close:hover {
  background-color: var(--dark-navy);
  color: var(--white);
}

.ncm-search-input {
  width: 100%;
  border: none;
  border-bottom: 3px solid var(--dark-navy);
  padding: 12px 0;
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--dark-navy);
  background: transparent;
  outline: none;
}
.ncm-search-input::placeholder {
  color: #B0B8C4;
  font-weight: 400;
}

.ncm-search-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.ncm-search-hint {
  font-size: 13px;
  color: var(--gray);
}

.ncm-search-filters {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ncm-search-filters label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--dark-navy);
  cursor: pointer;
  font-weight: 500;
}
.ncm-search-filters input[type="radio"] {
  accent-color: var(--navy);
  margin: 0;
}

.ncm-search-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 28px;
  background-color: var(--dark-navy);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.ncm-search-btn:hover {
  background-color: var(--navy);
}

/* --- Desktop Navbar Collapse --- */
@media (min-width: 992px) {
  .navbar-collapse {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
  }
  .navbar-toggler {
    display: none;
  }
}

/* --- Mobile Navigation --- */
@media (max-width: 991.98px) {
  .navbar-collapse {
    display: none;
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    padding: 24px;
    overflow-y: auto;
    transition: right 0.3s ease;
  }
  .navbar-collapse.show {
    display: block;
    right: 0;
  }
  .navbar-nav {
    flex-direction: column;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0;
  }
  .navbar-nav .nav-link {
    padding: 12px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--border);
  }
  .navbar-nav .nav-link::after {
    display: none;
  }
  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
  }
  body.ncm-mobile-menu--open .mobile-menu-overlay {
    display: block;
  }
  body.ncm-mobile-menu--open .navbar-collapse {
    display: block;
    right: 0;
  }
}
