/* ============================================================================
FILE NAME   : /public/css/header.css
SECTION     : Header Styles
VERSION     : 1.3.3
AUTHOR      : Oluwasegun Dayo Ogunsola
DESCRIPTION : Corrected and complete header styling with layout, icons, language UX, and announcement bar
============================================================================ */

/* ---------------- HEADER ROW ---------------- */
.header-row {
  width: 100%;
  background-color: transparent;
  position: relative;
  z-index: 100;
}

/* ---------------- HEADER WRAPPER ---------------- */
.site-header {
  background: linear-gradient(90deg, var(--brand-primary), #0a4f43);
  color: #ffffff;
  padding: 0.75rem 0 0 0;
  box-shadow: 0 2px 6px rgba(11,110,96,0.06);
  position: relative;
  z-index: 10;
}  

/* ---------------- HEADER INNER ---------------- */
.header-inner {
  width: min(var(--container-width, 1200px), 95%);
  margin: 0 auto;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* ---------------- LOGO MODULE ---------------- */
.logo-module {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: contain;
}

.brand-title {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.2px;
}

/* ---------------- MENU MODULE ---------------- */
.menu-module {
  display: flex;
  gap: 1rem;
}

.nav-link {
  color: rgba(255,255,255,0.95);
  font-weight: 600;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.nav-link:hover,
.nav-link:focus {
  background: rgba(255,255,255,0.08);
}

/* ---------------- ACTION MODULE ---------------- */
.action-module {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
}

/* ---------------- ICONS ---------------- */
.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  transition: background 0.2s ease, transform 0.2s ease;
}

.icon-link:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

.icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

/* ---------------- LANG MODULE ---------------- */
.lang-dropdown {
  position: relative;
  display: inline-block;
}

#lang-button {
  background: #ffffff;
  color: #081018;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s ease;
}

#lang-button:hover {
  background: #f2f2f2;
}

.lang-label {
  font-size: 0.95rem;
}

.lang-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #fff;
  color: #081018;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  padding: 0.5rem;
  min-width: 180px;
  z-index: 20;
  animation: fadeIn 0.2s ease-out;
}

.lang-list[hidden] {
  display: none !important;
}

.lang-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.lang-list li:hover {
  background: rgba(11,110,96,0.08);
}

.lang-list li[aria-selected="true"] {
  background: rgba(242,166,90,0.15);
}

.flag-icon {
  width: 20px;
  height: 14px;
  display: inline-block;
  flex-shrink: 0;
  border-radius: 2px;
  background-size: cover;
  background-position: center;
}

.opt-label {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.2;
  display: inline-block;
  color: #081018;
}

/* ---------------- AUTH MODULE ---------------- */
.auth-group {
  display: flex;
  gap: 0.6rem;
}

.auth-group button {
  pointer-events: auto;
  z-index: 10;
}

.action-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.48rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.action-button.hollow {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
}

.action-button.primary {
  background: var(--brand-accent, #f2a65a);
  color: #081018;
  border: none;
  box-shadow: 0 4px 10px rgba(242,158,76,0.10);
}

.action-button.primary:hover {
  background: #f89c3f;
}

/* ---------------- ANNOUNCE MODULE ---------------- */
.announce-module {
  background: var(--brand-accent, #f2a65a);
  color: #081018;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  overflow: hidden;
  position: relative;
}

.announcement-track {
  white-space: nowrap;
  animation: crawl-left 28s linear infinite;
}

.announcement-text {
  display: inline-block;
  padding-left: 100%;
}

/* ---------------- ANIMATIONS ---------------- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes crawl-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
