/* ===== HEADER ===== */
.modern-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  z-index: 1000;
}

.modern-header .header-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 12px 16px;
  width: 100%;
  max-width: 1200px;
  margin: auto;
  box-sizing: border-box;
  gap: 12px;
}

.modern-header .menu-toggle {
  font-size: 24px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.modern-header .menu-toggle:hover {
  transform: scale(1.1);
}

.modern-header .logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  font-size: 20px;
}

.modern-header .logo-img {
  width: 32px;
  height: 32px;
  margin-right: 8px;
  transition: transform 0.3s ease;
}

.modern-header .logo-img:hover {
  transform: rotate(5deg) scale(1.05);
}

/* ===== DESKTOP MENU ===== */
@media (min-width: 769px) {
  main.container {
    padding-top: 80px; /* Chừa khoảng trống cho header trên desktop */
  }
}

.desktop-menu {
  display: none;
  gap: 20px;
}

.desktop-menu a {
  text-decoration: none;
  color: #333;
  font-size: 16px;
  font-weight: 500;
  padding: 6px 10px;
  transition: color 0.3s, transform 0.2s;
}

.desktop-menu a:hover {
  color: #007bff;
  transform: translateY(-2px);
}

@media (min-width: 769px) {
  .desktop-menu {
    display: flex;
    align-items: center;
    margin-left: auto;
  }

  .menu-toggle {
    display: none;
  }

  .slide-menu,
  .menu-overlay {
    display: none !important;
  }
}

/* ===== SLIDE MENU (LEFT) ===== */
.slide-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 66.6%;
  height: 100%;
  background: #fff;
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  padding: 20px;
  transition: left 0.3s ease;
  z-index: 1500;
}

.slide-menu a {
  padding: 12px 0;
  text-decoration: none;
  color: #333;
  font-size: 18px;
  font-weight: 500;
  border-bottom: 1px solid #f0f0f0;
  transition: color 0.3s, transform 0.2s, opacity 0.3s;
  opacity: 0;
  transform: translateX(-10px);
}

/* Khi menu mở, thêm hiệu ứng xuất hiện */
.slide-menu.show a {
  opacity: 1;
  transform: translateX(0);
}

.slide-menu a:hover {
  color: #007bff;
  transform: translateX(5px);
}

.slide-menu.show {
  left: 0;
}

/* ===== OVERLAY ===== */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 1400;
}

.menu-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
}

@media (min-width: 769px) {
  .slide-menu {
    display: none;
  }
  .menu-overlay {
    display: none;
  }
}

/* ===== PROFILE MENU ===== */
.menu-profile {
  position: relative;
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.cover-photo img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.cover-photo img:hover {
  transform: scale(1.03);
}

/* Avatar chồng lên ảnh bìa */
.avatar-wrapper {
  position: absolute;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: #fff;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.avatar-wrapper:hover {
  transform: translateX(-50%) scale(1.05);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-info {
  margin-top: 50px;
  font-size: 16px;
  font-weight: bold;
  color: #333;
}

.user-info p {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: normal;
  color: #777;
}

/* Menu links */
.menu-links a {
  display: block;
  padding: 14px 16px;
  text-decoration: none;
  color: #333;
  font-size: 15px;
  border-bottom: 1px solid #eee;
  transition: background 0.3s, padding-left 0.3s;
}

.menu-links a:hover {
  background: #f5f5f5;
  color: #007bff;
  padding-left: 20px;
}

@media (min-width: 769px) {
  .desktop-menu a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #333;
    font-weight: 500;
    padding: 8px 12px;
    text-decoration: none;
    transition: color 0.3s, transform 0.2s;
  }

  .desktop-menu a:hover {
    color: #007bff;
    transform: translateY(-2px);
  }

  .desktop-menu i {
    font-size: 15px;
    color: inherit;
  }
}
/* ===== Desktop Menu với icon ===== */
@media (min-width: 769px) {
  .desktop-menu a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #333;
    font-weight: 500;
    padding: 8px 12px;
    text-decoration: none;
    transition: color 0.3s, transform 0.2s;
  }

  .desktop-menu a:hover {
    color: #007bff;
    transform: translateY(-2px);
  }

  .desktop-menu i {
    font-size: 15px;
    color: inherit;
  }
}


