/**
 * VietnamPedia 2026 Theme Stylesheet (y2026_vnpedia)
 * Brand Identity Colors: Exact Match to VietnamPedia Crystal Logo
 * - Electric Cyan: #00aeef / #00b4f0
 * - Royal Blue: #0072bc
 * - Deep Blue: #004b87
 * - Deep Navy: #011936 / #010f22
 */

:root {
  --vnp-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --vnp-font-display: 'Outfit', 'Inter', sans-serif;
  
  --vnp-cyan: #00aeef;
  --vnp-cyan-hover: #0096dc;
  --vnp-cyan-light: #e6f7fd;
  --vnp-blue: #0072bc;
  --vnp-blue-dark: #004b87;
  --vnp-navy: #011936;
  --vnp-navy-dark: #010f22;
  
  --vnp-border: #e2e8f0;
}

body {
  font-family: var(--vnp-font-sans);
  background-color: #ffffff;
  color: #334155;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-display {
  font-family: var(--vnp-font-display);
  letter-spacing: -0.02em;
}

/* Glassmorphism & Header */
.vnp-header-floating {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.vnp-navbar-glass {
  background: rgba(1, 25, 54, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 174, 239, 0.25);
  box-shadow: 0 10px 35px -5px rgba(1, 25, 54, 0.5);
  border-radius: 9999px;
  padding: 8px 20px;
}

.vnp-header-scrolled .vnp-navbar-glass {
  background: rgba(1, 15, 34, 0.96);
  border-color: rgba(0, 174, 239, 0.4);
  box-shadow: 0 12px 40px -5px rgba(0, 0, 0, 0.6);
}

/* Crystal Hero Section matching logo facet gradient */
.vnp-hero-section {
  position: relative;
  background: linear-gradient(135deg, #010f22 0%, #011936 35%, #004b87 70%, #0072bc 100%);
  color: #ffffff;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 130px;
  padding-bottom: 60px;
  overflow: hidden;
}

.vnp-hero-glow-1 {
  position: absolute;
  top: -10%;
  left: -5%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(0, 174, 239, 0.3) 0%, rgba(0, 174, 239, 0) 70%);
  filter: blur(50px);
  pointer-events: none;
}

.vnp-hero-glow-2 {
  position: absolute;
  bottom: -15%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 114, 188, 0.35) 0%, rgba(0, 114, 188, 0) 70%);
  filter: blur(60px);
  pointer-events: none;
}

.vnp-hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 174, 239, 0.15) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.35;
  pointer-events: none;
}

/* Badges & Pills */
.vnp-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(0, 174, 239, 0.35);
  background: rgba(0, 174, 239, 0.12);
  backdrop-filter: blur(6px);
  color: #00aeef !important;
}

/* Primary Button in Brand Cyan */
.vnp-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #00b4f0 0%, #0072bc 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 26px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 20px 0 rgba(0, 174, 239, 0.45), inset 0 2px 4px 0 rgba(255, 255, 255, 0.35);
  transition: all 0.25s ease;
  text-decoration: none;
  cursor: pointer;
}

.vnp-btn-primary:hover {
  background: linear-gradient(135deg, #0096dc 0%, #005a96 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px 0 rgba(0, 174, 239, 0.6), inset 0 2px 4px 0 rgba(255, 255, 255, 0.45);
}

.vnp-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(0, 174, 239, 0.1);
  backdrop-filter: blur(6px);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 9999px;
  border: 1px solid rgba(0, 174, 239, 0.4);
  transition: all 0.25s ease;
  text-decoration: none;
  cursor: pointer;
}

.vnp-btn-outline:hover {
  background: rgba(0, 174, 239, 0.22);
  border-color: #00aeef;
  transform: translateY(-2px);
}

/* Card & Bento Grid */
.vnp-card-bento {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 32px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.03);
}

.vnp-card-bento:hover {
  border-color: #00aeef;
  box-shadow: 0 20px 40px -12px rgba(0, 114, 188, 0.15);
  transform: translateY(-4px);
}

.vnp-card-dark {
  background: rgba(1, 25, 54, 0.75);
  border: 1px solid rgba(0, 174, 239, 0.2);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 32px;
  color: #ffffff;
  transition: all 0.3s ease;
}

.vnp-card-dark:hover {
  border-color: #00aeef;
  background: rgba(1, 25, 54, 0.95);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -10px rgba(0, 174, 239, 0.35);
}

/* Modal System */
.modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  z-index: 1050 !important;
  display: none;
  width: 100vw !important;
  height: 100vh !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  outline: 0 !important;
  background-color: rgba(1, 15, 34, 0.8) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  padding: 16px;
}

.modal.show {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.modal-dialog {
  position: relative !important;
  width: 100% !important;
  max-width: 760px !important;
  margin: auto !important;
  pointer-events: auto !important;
}

.modal-content {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  outline: 0 !important;
}

.btn-close {
  box-sizing: content-box;
  width: 1.25em;
  height: 1.25em;
  padding: 0.25em;
  background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2300aeef'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
  border: 0;
  opacity: 0.85;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.btn-close:hover {
  opacity: 1;
}

/* Dropdown Menu System */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute !important;
  top: 100% !important;
  right: 0 !important;
  z-index: 1000 !important;
  display: none;
  min-width: 160px !important;
  padding: 6px !important;
  margin-top: 8px !important;
  list-style: none !important;
  background: #011936 !important;
  border: 1px solid rgba(0, 174, 239, 0.3) !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5) !important;
}

.dropdown-menu.show {
  display: block !important;
}

/* Swiper Pagination */
.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #00aeef !important;
  opacity: 0.3 !important;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  width: 28px !important;
  border-radius: 6px !important;
  opacity: 1 !important;
  background: #00aeef !important;
}

/* Footer in Deep Navy */
.vnp-footer-dark {
  background-color: #010f22;
  color: #94a3b8;
  border-top: 1px solid rgba(0, 174, 239, 0.15);
  padding-top: 80px;
  padding-bottom: 40px;
  position: relative;
}

.vnp-footer-dark h4 {
  color: #ffffff !important;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.vnp-footer-dark a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.vnp-footer-dark a:hover {
  color: #00aeef;
}

/* Floating Quick Chat / Hotline Button */
.vnp-floating-support {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vnp-floating-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  font-size: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.25s ease;
  text-decoration: none;
}

.vnp-floating-btn:hover {
  transform: scale(1.1);
}

.vnp-floating-phone {
  background: #10b981;
}

.vnp-floating-zalo {
  background: #00aeef;
}

/* Partner Logo Card */
.vnp-partner-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 84px;
  transition: all 0.25s ease;
}

.vnp-partner-card:hover {
  border-color: #00aeef;
  box-shadow: 0 10px 25px -5px rgba(0, 174, 239, 0.2);
  transform: translateY(-2px);
}

.vnp-partner-card img {
  max-height: 48px;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.75;
  transition: all 0.25s ease;
}

.vnp-partner-card:hover img {
  filter: grayscale(0%);
  opacity: 1;
}
