/**
 * Stylesheet for 404 Error Page
 * Trường THPT Chuyên Lê Quý Đôn - Đông Hải
 */

.lqd-error404-wrapper {
  position: relative;
  width: 100%;
  min-height: 580px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 50px 24px 60px 24px;
  box-sizing: border-box;
  overflow: hidden;
  background-color: #f7faf8;
}

/* Background image overlay with soft blur */
.lqd-error404-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  filter: blur(2px);
  pointer-events: none;
  z-index: 0;
}

.lqd-error404-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.96) 20%, rgba(243, 249, 246, 0.94) 80%, rgba(235, 245, 240, 0.98) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Main Content Container */
.lqd-error404-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Hero Section (Illustration + Text) */
.lqd-error404-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  width: 100%;
  margin-bottom: 50px;
}

/* Illustration Box */
.lqd-error404-visual {
  flex: 0 0 480px;
  max-width: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lqd-error404-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 28px rgba(0, 135, 81, 0.15));
  transition: transform 0.4s ease;
}

.lqd-error404-svg:hover {
  transform: translateY(-4px);
}

/* Information Box */
.lqd-error404-info {
  flex: 1;
  max-width: 520px;
}

.lqd-error404-title {
  margin: 0 0 16px 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  color: #0b3d2e;
  letter-spacing: -0.3px;
}

.lqd-error404-desc {
  margin: 0 0 28px 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: #475569;
}

.lqd-error404-desc p {
  margin: 0;
  line-height: inherit;
}

/* Home Button */
.lqd-error404-btn-home {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #007a4d 0%, #008751 50%, #059669 100%);
  color: #ffffff !important;
  text-decoration: none !important;
  padding: 12px 28px;
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 0 6px 18px rgba(0, 135, 81, 0.28);
  transition: all 0.25s ease;
}

.lqd-error404-btn-home svg.home-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

.lqd-error404-btn-home svg.arrow-icon {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.lqd-error404-btn-home:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 135, 81, 0.36);
  background: linear-gradient(135deg, #026640 0%, #007a4d 50%, #047e58 100%);
}

.lqd-error404-btn-home:hover svg.arrow-icon {
  transform: translateX(3px);
}

/* -------------------------------------------------------------
 * Navigation Shortcut Cards
 * ------------------------------------------------------------- */
.lqd-error404-nav-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  width: 100%;
}

.lqd-error404-nav-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 14px;
  text-decoration: none !important;
  color: #1e293b !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.lqd-error404-nav-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.lqd-error404-nav-icon-badge svg {
  width: 20px;
  height: 20px;
}

/* Icon Badges Colors */
.badge-tint-news {
  background: #fef3c7;
  color: #d97706;
}

.badge-tint-docs {
  background: #e0f2fe;
  color: #0284c7;
}

.badge-tint-org {
  background: #dbeafe;
  color: #2563eb;
}

.badge-tint-admission {
  background: #d1fae5;
  color: #059669;
}

.badge-tint-gallery {
  background: #ffe4e6;
  color: #e11d48;
}

.badge-tint-contact {
  background: #ffedd5;
  color: #ea580c;
}

.lqd-error404-nav-label {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.lqd-error404-nav-chevron {
  color: #94a3b8;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.2s ease, color 0.2s ease;
}

/* Card Hover */
.lqd-error404-nav-card:hover {
  transform: translateY(-3px);
  border-color: #008751;
  box-shadow: 0 8px 20px rgba(0, 135, 81, 0.1);
  background: #ffffff;
}

.lqd-error404-nav-card:hover .lqd-error404-nav-icon-badge {
  transform: scale(1.08);
}

.lqd-error404-nav-card:hover .lqd-error404-nav-label {
  color: #008751;
}

.lqd-error404-nav-card:hover .lqd-error404-nav-chevron {
  color: #008751;
  transform: translateX(2px);
}

/* -------------------------------------------------------------
 * Responsive Breakpoints
 * ------------------------------------------------------------- */
@media (max-width: 1100px) {
  .lqd-error404-nav-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

@media (max-width: 860px) {
  .lqd-error404-hero {
    flex-direction: column;
    text-align: center;
    gap: 28px;
    margin-bottom: 40px;
  }

  .lqd-error404-visual {
    max-width: 380px;
    flex-basis: auto;
  }

  .lqd-error404-info {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .lqd-error404-title {
    font-size: 26px;
  }

  .lqd-error404-desc {
    font-size: 14.5px;
  }

  .lqd-error404-nav-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .lqd-error404-wrapper {
    padding: 35px 16px 45px 16px;
  }

  .lqd-error404-visual {
    max-width: 300px;
  }

  .lqd-error404-title {
    font-size: 22px;
  }

  .lqd-error404-btn-home {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  .lqd-error404-nav-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}