/* ==============================================
   FOOTER CUSTOM STYLES - VVA CUNG ỨNG
   Styling cho Contact Info, YouTube, TikTok embeds
   ============================================== */

/* --- Footer chung --- */
.footer {
  background-color: var(--vva-footer-bg, #BA0000);
  color: #ffffff;
}

.footer-title {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: #ffffff;
  border-radius: 2px;
}

/* --- Thông tin liên hệ --- */
.footer-contact-info {
  line-height: 1.8;
  font-size: 0.95rem;
}

.footer-contact-info p {
  margin-bottom: 0.75rem;
}

.footer-contact-info strong {
  color: #ffffff;
  font-weight: 600;
}

.footer-contact-info a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact-info a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* --- YouTube Embed --- */
.footer-youtube-wrapper {
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.footer-youtube-wrapper iframe {
  display: block;
}

/* --- TikTok Embed --- */
.footer-tiktok-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.footer-tiktok-wrapper .tiktok-embed {
  margin: 0 auto;
  max-width: 100% !important;
  border-radius: 8px;
  overflow: hidden;
}

.footer-tiktok-profile {
  padding: 2rem 1rem;
}

.footer-tiktok-profile .btn {
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.footer-tiktok-profile .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* --- Facebook Embed --- */
.footer-facebook-wrapper {
  background: #ffffff;
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.footer-facebook-wrapper .fb-page,
.footer-facebook-wrapper .fb-page > span,
.footer-facebook-wrapper .fb-page > span > iframe {
  width: 100% !important;
}

/* --- Menu hỗ trợ --- */
.footer-support-menu ul {
  padding: 0;
  margin: 0;
}

.footer-support-menu li {
  list-style: none;
}

.footer-support-menu a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.footer-support-menu a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* --- Social icons --- */
.footer-social .social-icons {
  flex-wrap: wrap;
}

.footer-social .social-icon {
  display: inline-block;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.9;
}

.footer-social .social-icon:hover {
  transform: scale(1.1);
  opacity: 1;
}

.footer-social .social-icon img {
  display: block;
  border-radius: 4px;
}

/* --- Copyright --- */
.footer p.text-white-50 {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer a.text-white {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.footer a.text-white:hover {
  border-bottom-color: #ffffff;
}

/* --- Responsive --- */
@media (max-width: 767px) {
  .footer-title {
    font-size: 1rem;
    text-align: center;
  }
  
  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-youtube-wrapper,
  .footer-facebook-wrapper {
    max-width: 100%;
    margin: 0 auto;
  }
  
  .footer-tiktok-profile .btn {
    font-size: 0.9rem;
    padding: 10px 20px;
  }
  
  .footer-support-menu ul {
    justify-content: center !important;
  }
  
  .footer-social {
    text-align: center !important;
  }
  
  .footer-social .social-icons {
    justify-content: center !important;
  }
}

/* --- Dark mode support (optional) --- */
@media (prefers-color-scheme: dark) {
  .footer-facebook-wrapper {
    background: #18191a;
  }
}

/* --- Loading animation cho embeds --- */
.footer-youtube-wrapper iframe,
.footer-tiktok-wrapper .tiktok-embed,
.footer-facebook-wrapper .fb-page {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Placeholder khi chưa cấu hình --- */
.footer p em {
  display: block;
  padding: 2rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  text-align: center;
}