/* ============================================================
   global.css — Albania Unlock
   Dùng chung cho toàn bộ website
   Bao gồm: Variables · Reset · Header · Hamburger ·
            Mobile Nav · Footer · Responsive (shared)

   COLOR PALETTE:
   Albania flag = đỏ + đen + đại bàng
   --crimson:    #6B1A1A  (deep Albanian red — header, primary)
   --crimson-mid:#C41E3A  (brighter red — accents, hover)
   --cream:      #F5F0EC  (warm cream — background)
   --gold:       #C8960C  (gold accent — same as Vietnam Unlock)
   --near-black: #1A1210  (warm black — text)
   ============================================================ */


/* ── SECTION: CSS CUSTOM PROPERTIES (Design Tokens) ──────── */
:root {
  --crimson:      #6B1A1A;
  --crimson-mid:  #C41E3A;
  --crimson-light:#8B2020;
  --cream:        #F5F0EC;
  --cream-light:  #FBF8F5;
  --gold:         #C8960C;
  --amber:        #D4960A;
  --near-black:   #1A1210;
  --white:        #ffffff;
  --border:       #E2D8D0;
}


/* ── SECTION: RESET & BASE BODY ──────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--cream);
  color: var(--near-black);
  line-height: 1.7;
  overflow-x: hidden;
}


/* ── SECTION: SITE HEADER ─────────────────────────────────── */
header#site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--crimson);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  transition: background 0.4s ease;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.logo img {
  height: 44px;
  width: auto;
  display: block;
}
.logo:hover { color: var(--gold); }

/* Nav */
nav a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}
nav a:hover,
nav a.current {
  background: rgba(255,255,255,0.12);
  color: var(--gold);
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Search button */
.au-search-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  color: rgba(255,255,255,0.8);
  transition: all 0.2s;
  display: flex;
  align-items: center;
}
.au-search-btn:hover {
  background: rgba(255,255,255,0.12);
  color: var(--gold);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background 0.2s;
}
.hamburger:hover { background: rgba(255,255,255,0.1); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}


/* ── SECTION: SEARCH OVERLAY ──────────────────────────────── */
.au-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 18, 16, 0.95);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.au-search-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.au-search-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.au-search-close:hover { opacity: 1; }
.au-search-inner {
  width: min(600px, 90vw);
  text-align: center;
}
.au-search-hint {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}
.au-search-field {
  display: flex;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
}
.au-search-field input {
  flex: 1;
  border: none;
  padding: 16px 20px;
  font-size: 1rem;
  background: transparent;
  outline: none;
}
.au-search-field button {
  background: var(--crimson);
  border: none;
  padding: 0 20px;
  cursor: pointer;
  color: #fff;
  transition: background 0.2s;
}
.au-search-field button:hover { background: var(--crimson-mid); }
.au-search-quick {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.au-search-quick span { color: rgba(255,255,255,0.4); font-size: 0.85rem; }
.au-search-quick a {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  text-decoration: none;
  background: rgba(255,255,255,0.08);
  padding: 4px 12px;
  border-radius: 20px;
  transition: all 0.2s;
}
.au-search-quick a:hover {
  background: var(--gold);
  color: #000;
}


/* ── SECTION: MOBILE NAV ──────────────────────────────────── */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  height: 100dvh;
  width: min(320px, 85vw);
  background: var(--crimson);
  z-index: 300;
  transition: right 0.35s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  padding: 80px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-nav.open { right: 0; }
.mobile-nav a {
  display: block;
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 8px;
  transition: all 0.2s;
}
.mobile-nav a:hover {
  background: rgba(255,255,255,0.1);
  color: var(--gold);
}


/* ── SECTION: READING PROGRESS BAR ───────────────────────── */
#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gold);
  width: 0%;
  z-index: 500;
  transition: width 0.1s linear;
}


/* ── SECTION: FOOTER ──────────────────────────────────────── */
footer#site-footer {
  background: var(--near-black);
  color: rgba(255,255,255,0.55);
  padding: 60px 50px 40px;
  margin-top: 80px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .footer-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 300px;
}
.footer-col h4 {
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.8rem; }
.footer-bottom a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.8rem;
}
.footer-bottom a:hover { color: var(--gold); }


/* ── SECTION: RESPONSIVE ──────────────────────────────────── */
@media (max-width: 900px) {
  .header-inner { padding: 16px 24px; }
  nav { display: none; }
  .hamburger { display: flex; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { padding: 0; }
  footer#site-footer { padding: 48px 24px 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
