﻿/* ===== HEADER ===== */
.above-nav {
  width: 100%;
  background: transparent;
  position: relative;
  z-index: 1000;
  font-family: "Roboto Slab", serif;
  padding: 0;
  margin: 0;
}

/* ===== TOP BAR ===== */
.header-topbar {
  background: linear-gradient(135deg, #f2ab0e 0%, #e09900 50%, #f2ab0e 100%);
  border-bottom: 3px solid #8b4513;
  padding: 16px 0;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-topbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('/images/header-topbar.png') center/cover no-repeat;
  opacity: 0.1;
  z-index: 0;
}

.header-topbar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
  z-index: 1;
}

.header-topbar-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
  z-index: 2;
}

/* ===== LOGO ===== */
.logo-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  position: relative;
}

.logo-header img {
  width: 180px;
  height: 115px;
  object-fit: contain;
  display: block;
  position: relative;
  overflow: hidden;
}

/* Hiệu ứng lấp lánh cho logo */
.logo-header img::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.7) 50%,
    transparent 70%
  );
  animation: logoSparkle 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes logoSparkle {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
    opacity: 0;
  }
}

/* ===== MENU BUTTONS (giữa) ===== */
.header-menu-btns {
  list-style: none;
  margin-left: 90px;
  padding: 0;
  display: flex;
  gap: 20px;
  align-items: center;
}

.header-menu-btns li {
  background: linear-gradient(135deg, #c4253a 0%, #a01e2f 50%, #c4253a 100%);
  min-width: 260px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  border: 2px solid rgba(255,255,255,0.4);
  transition: all 0.3s ease;
}

.header-menu-btns li::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.5s ease;
}

.header-menu-btns li:hover::before {
  left: 100%;
}

.header-menu-btns li:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 37, 58, 0.4);
  background: linear-gradient(135deg, #d62d47 0%, #c4253a 50%, #d62d47 100%);
}

.header-menu-btns li:nth-child(1) {
  border-radius: 50px 0 50px 50px;
}

.header-menu-btns li:nth-child(2) {
  border-radius: 0 50px 50px 50px;
}

.header-menu-btns li a {
  display: block;
  padding: 16px 24px;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  transition: all .3s;
  position: relative;
  z-index: 1;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  letter-spacing: 0.5px;
}

.header-menu-btns li a:hover {
  color: #fff;
  transform: scale(1.05);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

/* ===== INFO (phải) ===== */
.info_head {
  text-align: right;
  margin: 0;
  padding: 12px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  margin-left: auto;
  margin-right: 20px;
}

.info_head p {
  margin: 0 0 6px;
  font-size: 15px;
  color: #fff;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  position: relative;
  z-index: 1;
  line-height: 1.4;
  text-align: left;
  width: 100%;
}

.info_head p:last-child { margin-bottom: 0; }

.info_head span {
  font-weight: 800;
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.info_head a {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  transition: all 0.2s;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.info_head a:hover { 
  color: #f2ab0e;
  text-decoration: underline;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
  transform: scale(1.05);
}

.main-nav {
  background: linear-gradient(135deg, #c0202e 0%, #8e1220 100%);
  width: 100%;
  display: flex;
  align-items: center;
  height: 60px;
  margin-top: 0;
  box-shadow: 0 3px 12px rgba(0,0,0,.25);
}

.main-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  height: 100%;
  flex: 1;
}

.main-nav ul li {
  height: 100%;
  display: flex;
  align-items: center;
}

.main-nav ul li a {
  display: flex;
  align-items: center;
  height: 100%;
  color: rgba(255,255,255,.9);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 0 22px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: 'Roboto Slab', serif;
  position: relative;
  transition: color .2s;
}

.main-nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 70%;
  height: 3px;
  background: #F6B22B;
  border-radius: 2px 2px 0 0;
  transition: transform .25s ease;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
  color: #F6B22B;
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* ===== NAV SEARCH ===== */
.nav-search {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  flex-shrink: 0;
}

.nav-search input {
  border: none;
  outline: none;
  padding: 6px 12px;
  font-size: 14px;
  width: 160px;
  background: transparent;
  color: #333;
}

.nav-search button {
  background: transparent;
  border: none;
  padding: 6px 10px;
  cursor: pointer;
  color: #b01e31;
  display: flex;
  align-items: center;
  transition: opacity .2s;
}

.nav-search button:hover { opacity: .7; }

/* ===== MOBILE ===== */
.hamburger-btn { display: none; }
.mobile-topbar { display: none; }

@media (max-width: 768px) {
  .header-topbar { display: none; }
  .header-menu-btns { display: none; }
  .nav-search { display: none; }

  /* Đẩy nội dung xuống để không bị che bởi mobile-topbar fixed */
  body {
    padding-top: 72px;
  }

  .mobile-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #b01e31;
    padding: 10px 14px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  }

  .mobile-logo-link img {
    height: 52px;
    width: auto;
    display: block;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
  }

  .mobile-logo-link img::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
      45deg,
      transparent 30%,
      rgba(255, 255, 255, 0.7) 50%,
      transparent 70%
    );
    animation: logoSparkle 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
  }

  .hamburger-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    padding: 6px;
    cursor: pointer;
  }

  .hamburger-btn span {
    display: block;
    width: 26px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
  }

  .hamburger-btn.is-active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
  .hamburger-btn.is-active span:nth-child(2) { opacity: 0; }
  .hamburger-btn.is-active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

  .main-nav {
    display: none;
    background: linear-gradient(135deg, #c0202e 0%, #8e1220 100%);
  }

  .main-nav.is-open {
    display: block;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999;
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
    height: auto;
    overflow-y: visible;
  }

  .main-nav.is-open .main-nav-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: auto;
    padding: 0;
  }

  .main-nav.is-open ul {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    width: 100%;
  }

  .main-nav.is-open ul li {
    height: auto;
    width: 100%;
    display: block;
  }

  .main-nav.is-open ul li a {
    display: block;
    height: auto;
    padding: 16px 24px;
    font-size: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    color: #fff;
  }

  .main-nav.is-open ul li a:hover,
  .main-nav.is-open ul li a.active {
    background: rgba(255,255,255,0.1);
    color: #F6B22B;
  }

  .main-nav.is-open ul li a::after {
    display: none;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav ul li {
    width: 100%;
  }

  .main-nav ul li a {
    padding: 13px 20px;
    border-bottom: 1px solid rgba(255,255,255,.15);
    font-size: 14px;
  }
}


