﻿/* ==========================================================================
   FESTIVAL HOA ĐÀ LẠT 2026 — LAYOUT STYLES
   Header Nhà nước, Mega Navigation, Quick Dock, Official Footer
   ========================================================================== */

/* Government Administrative Topbar */
.gov-topbar {
  background: linear-gradient(90deg, #07231B 0%, #0E382E 50%, #154539 100%);
  color: #E2ECE9;
  font-size: 0.8rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  position: relative;
  z-index: 1001;
  white-space: nowrap;
}

.gov-topbar .container,
.site-header .container {
  max-width: 1440px;
  padding: 0 18px;
}

.gov-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.gov-authority {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
}

.gov-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(212, 175, 55, 0.18);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #FFE58F;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

.gov-authority-text {
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.78rem;
}

.gov-authority-text span {
  opacity: 0.7;
  margin: 0 4px;
}

.gov-tools {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
  flex-shrink: 0;
}

.gov-hotline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #FFE58F;
  font-weight: 700;
  white-space: nowrap;
  font-size: 0.8rem;
}

.gov-hotline:hover {
  color: #FFFFFF;
}

.accessibility-tools {
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 5px;
  border-radius: 4px;
  white-space: nowrap;
}

.btn-access {
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 1px 5px;
  cursor: pointer;
  border-radius: 3px;
  transition: all var(--t-fast);
  white-space: nowrap;
}

.btn-access:hover, .btn-access.active {
  background: var(--c-primary);
  color: #FFFFFF;
}

.gov-lang-select {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.gov-lang-select a {
  color: #A3C4BC;
}

.gov-lang-select a.active, .gov-lang-select a:hover {
  color: #FFE58F;
}

.gov-account-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.12);
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.78rem;
  transition: all var(--t-fast);
  white-space: nowrap;
}

.gov-account-link:hover {
  background: var(--c-primary);
  color: #FFFFFF;
}

/* Main Site Header */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(251, 249, 245, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: 0 4px 20px rgba(10, 35, 27, 0.05);
  z-index: 1000;
  transition: all var(--t-smooth);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 30px rgba(10, 35, 27, 0.09);
  padding: 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px;
  width: 100%;
  gap: 12px;
}

@media (min-width: 1201px) and (max-width: 1340px) {
  .nav-link {
    padding: 6px 8px;
    font-size: 0.82rem;
  }
  .brand-title {
    font-size: 1.05rem;
  }
  .btn-header-cta {
    padding: 8px 14px;
    font-size: 0.8rem;
  }
}

/* Brand Logo */
.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-icon-wrap {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  position: relative;
  transition: transform var(--t-smooth);
}

.brand-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(148, 19, 56, 0.25));
}

.brand-link:hover .brand-icon-wrap {
  transform: rotate(15deg) scale(1.05);
}

.brand-text {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.brand-title {
  font-family: var(--f-display);
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--c-primary);
  line-height: 1.15;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.brand-subtitle {
  font-family: var(--f-sans);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--c-pine);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Main Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
  flex-shrink: 1;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 11px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--c-text);
  border-radius: var(--r-full);
  transition: all var(--t-fast);
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--c-primary);
  background: rgba(148, 19, 56, 0.08);
}

.nav-link.active {
  font-weight: 700;
}

/* Dropdown Menu */
.nav-item-dropdown {
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #FFFFFF;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--c-border);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--t-smooth);
  z-index: 1100;
}

.nav-item-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-size: 0.88rem;
  color: var(--c-text);
  font-weight: 600;
  transition: all var(--t-fast);
  white-space: nowrap;
}

.dropdown-item:hover {
  background: var(--c-surface-soft);
  color: var(--c-primary);
  padding-left: 22px;
}

.dropdown-item i {
  color: var(--c-primary);
  font-size: 1rem;
}

/* Header Action Right */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-header-cta {
  padding: 9px 18px;
  font-size: 0.84rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.7rem;
  color: var(--c-pine);
  cursor: pointer;
  padding: 6px;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 82%;
  max-width: 360px;
  height: 100%;
  background: #FFFFFF;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
  z-index: 1200;
  transition: right var(--t-smooth);
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.mobile-drawer.open {
  right: 0;
}

.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1199;
  opacity: 0;
  visibility: hidden;
  transition: all var(--t-smooth);
}

.mobile-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 20px;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav-links a {
  padding: 12px 14px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-text);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-links a:hover, .mobile-nav-links a.active {
  background: var(--c-surface-soft);
  color: var(--c-primary);
}

/* Floating Quick Dock & Chatbot Assistant */
.quick-dock {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  z-index: 990;
}

.dock-btn {
  width: 50px;
  height: 50px;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  color: var(--c-pine);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--c-border);
  font-size: 1.3rem;
  cursor: pointer;
  transition: all var(--t-smooth);
  position: relative;
}

.dock-btn:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: var(--shadow-gold);
}

.dock-btn-ai {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--c-primary) 0%, #D4AF37 100%);
  color: #FFFFFF;
  border: none;
  font-size: 1.5rem;
  box-shadow: var(--shadow-primary);
}

.dock-btn-ai::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: var(--r-full);
  border: 2px solid var(--c-gold);
  animation: pulseGlow 2.5s infinite;
}

.dock-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #E53935;
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 99px;
  border: 2px solid #FFFFFF;
}

/* Official State Government Footer */
.site-footer {
  background: #081B15;
  color: #CAD5D1;
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--c-gold);
}

.footer-topline {
  background: rgba(255, 255, 255, 0.04);
  padding: 30px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-topline-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-cta-text h3 {
  color: #FFFFFF;
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.footer-cta-text p {
  color: #9AB2A8;
  margin: 0;
  font-size: 0.92rem;
}

.footer-main {
  padding: 60px 0 40px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1.5fr;
  gap: 40px;
}

.footer-col h4 {
  font-family: var(--f-display);
  font-size: 1.05rem;
  color: #FFE082;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--c-gold);
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.7;
  color: #A5BCB3;
  margin: 14px 0 20px 0;
}

.footer-gov-info {
  font-size: 0.82rem;
  color: #8CA69C;
  line-height: 1.6;
  border-left: 2px solid var(--c-gold);
  padding-left: 12px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-list a {
  color: #CAD5D1;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--t-fast);
}

.footer-links-list a:hover {
  color: #FFE082;
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.88rem;
}

.footer-contact-item i {
  color: var(--c-gold);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  background: #04100D;
  padding: 20px 0;
  font-size: 0.82rem;
  color: #798E86;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: #798E86;
}

.footer-bottom-links a:hover {
  color: #FFE082;
}

/* Responsive */
@media (max-width: 1200px) {
  .main-nav, .btn-header-cta {
    display: none !important;
  }
  .mobile-nav-toggle {
    display: block !important;
  }
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .gov-authority-text small {
    display: none;
  }
  .gov-authority-text span {
    display: none;
  }
}

@media (max-width: 680px) {
  .gov-topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    white-space: normal;
  }
  .gov-tools {
    width: 100%;
    justify-content: space-between;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}
