/* 
 * Footer Styles - UPDATED VERSION 
 * Last modified: 2026-04-29 - Optimized spacing
 * Cache buster test - if you see this comment, CSS is loading
 */

/* Footer Styles - Updated with optimized spacing */
.site-footer {
  background: hsl(var(--background));
  padding: 3rem 0 1.5rem;
  transition: background-color 0.3s ease;
  font-family: "Be Vietnam Pro", system-ui, sans-serif;
}

/* Footer Background Variations */
.footer-bg-default {
  background: hsl(var(--background));
}

.footer-bg-light {
  background: hsl(142 30% 95%);
}

.footer-bg-dark {
  background: hsl(142 55% 32%);
  color: hsl(var(--background));
}

.footer-bg-dark .footer-title {
  color: hsl(var(--background)) !important;
}

.footer-bg-dark h2,
.footer-bg-dark h3,
.footer-bg-dark h4 {
  color: hsl(var(--background)) !important;
}

.footer-bg-dark .footer-text,
.footer-bg-dark .footer-link {
  color: rgba(255, 255, 255, 0.8);
}

.footer-bg-dark .footer-link:hover {
  color: hsl(var(--accent-glow));
}

.footer-bg-dark .footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

.footer-bg-dark p,
.footer-bg-dark a,
.footer-bg-dark li,
.footer-bg-dark span {
  color: rgba(255, 255, 255, 0.75) !important;
}

.footer-bg-dark .footer-social-link {
  background: rgba(255, 255, 255, 0.1);
  color: hsl(var(--background));
}

.footer-bg-dark .footer-social-link:hover {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

/* Footer Yellow Theme */
.footer-bg-yellow {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.footer-bg-yellow .footer-title {
  color: hsl(var(--accent-foreground)) !important;
}

.footer-bg-yellow h2,
.footer-bg-yellow h3,
.footer-bg-yellow h4 {
  color: hsl(var(--accent-foreground)) !important;
}

.footer-bg-yellow .footer-text,
.footer-bg-yellow .footer-link {
  color: hsl(var(--accent-foreground) / 0.85);
}

.footer-bg-yellow .footer-link:hover {
  color: hsl(var(--foreground));
}

.footer-bg-yellow .footer-bottom {
  border-top-color: hsl(var(--accent-foreground) / 0.15);
  color: hsl(var(--accent-foreground) / 0.85);
}

.footer-bg-yellow p,
.footer-bg-yellow a,
.footer-bg-yellow li,
.footer-bg-yellow span {
  color: hsl(var(--accent-foreground) / 0.85) !important;
}

.footer-bg-yellow .footer-social-link {
  background: hsl(var(--accent-foreground) / 0.15);
  color: hsl(var(--accent-foreground));
}

.footer-bg-yellow .footer-social-link:hover {
  background: hsl(var(--foreground));
  color: hsl(var(--background));
}




.footer-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Footer Columns */
.footer-columns {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}

/* Responsive grid layouts */
@media (min-width: 768px) {
  .footer-columns-1 {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }

  .footer-columns-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }

  .footer-columns-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }

  .footer-columns-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 2.5rem;
  }
}

@media (min-width: 1024px) {
  .footer-columns-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }

  .footer-columns-4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
  }
}

/* Footer Column */
.footer-column {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: start;
}

/* Remove default list styling */
.footer-widget ul,
.footer-widget ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-widget li {
  margin: 0;
  padding: 0;
}

/* Widget Title Styling */
.footer-widget .footer-title,
.footer-widget h2 {
  font-family: "Be Vietnam Pro", system-ui, sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  padding-bottom: 0.75rem;
  position: relative;
  min-height: 3.2rem;
  display: flex;
  align-items: flex-start;
}

/* Menu Links Styling */
.footer-widget .menu li {
  margin-bottom: 0.5rem;
}

.footer-widget .menu li:last-child {
  margin-bottom: 0;
}

.footer-widget .menu a {
  display: inline-block;
  font-size: 0.9375rem;
  line-height: 1.9;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 0;
}

.footer-widget .menu a:hover {
  color: hsl(var(--primary));
  padding-left: 0;
}

/* Xóa hoàn toàn arrow pseudo-element */
.footer-widget .menu a::before {
  content: none;
}

/* Text Widget */
.footer-widget p {
  font-size: 0.9375rem;
  line-height: 1.9;
  color: hsl(var(--muted-foreground));
  margin: 0 0 0.75rem 0;
}

.footer-widget p:last-child {
  margin-bottom: 0;
}

.footer-column-title {
  font-family: "Be Vietnam Pro", system-ui, sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid hsl(var(--primary));
  position: relative;
}

.footer-column-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 2rem;
  height: 2px;
  background: linear-gradient(135deg, hsl(var(--accent-glow)) 0%, hsl(var(--accent-dark)) 100%);
}

/* Footer Items */
.footer-column-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-item {
  margin: 0;
}

.footer-item-link,
.footer-item-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0.125rem 0;
  line-height: 1.3;
}

.footer-item-link {
  cursor: pointer;
}

.footer-item-link:hover {
  color: hsl(var(--primary));
  transform: translateX(4px);
}

.footer-item-text {
  cursor: default;
}

.footer-item-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  object-fit: contain;
}

/* Social Media */
.footer-social {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsl(var(--border));
}

.footer-social-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin: 0 0 1rem 0;
}

.footer-social-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.875rem;
  font-weight: 600;
}

.footer-social-link:hover {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px hsl(var(--primary) / 0.3);
}

.footer-social-link img {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
}

/* Footer Bottom */
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--border));
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.footer-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  background: linear-gradient(135deg, hsl(142 55% 32%) 0%, hsl(130 60% 45%) 100%);
  box-shadow: 0 4px 12px -2px hsl(142 55% 32% / 0.3);
}

.footer-logo-icon span {
  font-family: "Be Vietnam Pro", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: hsl(var(--primary-foreground));
}

.footer-copyright {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin: 0;
  text-align: center;
}

/* Mobile Responsive */
@media (max-width: 767px) {
  .site-footer {
    padding: 2rem 0 1rem;
  }

  .footer-content {
    gap: 2rem;
  }

  .footer-columns {
    gap: 2rem;
  }

  .footer-column-title {
    font-size: 1rem;
  }

  .footer-social {
    margin-top: 1rem;
    padding-top: 1rem;
  }

  .footer-logo {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Animation for footer items */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-column {
  animation: fadeInUp 0.6s ease-out;
}

.footer-column:nth-child(1) {
  animation-delay: 0.1s;
}

.footer-column:nth-child(2) {
  animation-delay: 0.2s;
}

.footer-column:nth-child(3) {
  animation-delay: 0.3s;
}

.footer-column:nth-child(4) {
  animation-delay: 0.4s;
}

/* Hover effects for better UX */
.footer-item-link:focus {
  outline: 2px solid hsl(var(--primary));
  outline-offset: 2px;
  border-radius: 4px;
}

.footer-social-link:focus {
  outline: 2px solid hsl(var(--primary));
  outline-offset: 2px;
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
  .footer-logo-icon {
    box-shadow: 0 4px 12px -2px hsl(142 55% 32% / 0.5);
  }

  .footer-social-link:hover {
    box-shadow: 0 10px 25px -5px hsl(var(--primary) / 0.4);
  }
}

.wave-container {
  margin-top: 6rem;
  line-height: 0;
}

/* Wave Colors */
.wave-bg-default {
  color: hsl(var(--background));
}

.wave-bg-light {
  color: hsl(142 30% 95%);
}

.wave-bg-dark {
  color: hsl(142 55% 32%);
}

.wave-bg-yellow {
  color: hsl(var(--accent));
}

.wave-svg {
  display: block;
  width: 100%;
  height: 48px;
  margin-bottom: -1px;
}



/* responsive giống lg:h-20 */
@media (min-width: 1024px) {
  .wave-svg {
    height: 80px;
  }
}