/* ===================================
   CUSTOM FOOTER STYLES
   =================================== */

/* Footer Wrapper */
.custom-footer-wrapper {
  width: 100%;
  margin-top: auto;
}

/* Main Footer */
.custom-footer-main {
  background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
  color: #ffffff;
  padding: 60px 0 40px;
  position: relative;
}

.custom-footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Footer Columns */
.footer-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-column h3.footer-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 20px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Column 1: Logo + Newsletter */
.footer-column-1 {
  max-width: 350px;
}

/* Footer Logo */
.footer-logo {
  margin-bottom: 20px;
}

.logo-default {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

/* Fallback nếu không có hình */
.logo-icon.no-image {
  background: linear-gradient(135deg, #FF6B35, #F7931E, #FFD23F, #06FFA5, #2196F3, #9C27B0);
  border-radius: 50%;
  position: relative;
  overflow: hidden;
}

.logo-icon.no-image::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  background: #2196F3;
  border-radius: 50%;
}

.logo-q {
  position: relative;
  z-index: 2;
  font-size: 24px;
  font-weight: bold;
  color: #ffffff;
  display: none; /* Ẩn chữ Q mặc định */
}

.logo-icon.no-image .logo-q {
  display: block; /* Chỉ hiện khi không có hình */
}

.logo-text {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.2;
}

/* Footer Description */
.footer-description {
  margin-bottom: 25px;
}

.footer-description p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* Newsletter */
.footer-newsletter {
  margin-bottom: 25px;
}

.newsletter-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 15px 0;
  text-transform: uppercase;
}

.newsletter-form {
  width: 100%;
}

.newsletter-input-group {
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.newsletter-input {
  flex: 1;
  padding: 12px 20px;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 14px;
  outline: none;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.newsletter-button {
  padding: 12px 25px;
  background: #ffffff;
  color: #2196F3;
  border: none;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.newsletter-button:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

/* Social Links */
.footer-social {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.social-link {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
  background: #ffffff;
  color: #2196F3;
  transform: translateY(-2px);
}

.social-link i {
  font-size: 18px;
}

/* DMCA Badge */
.footer-dmca {
  margin-top: 10px;
}

.dmca-badge {
  height: 40px;
  width: auto;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.dmca-badge:hover {
  opacity: 1;
}

/* Column 2: Company Info */
.footer-column-2 {
  max-width: 400px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.info-item i {
  color: #ffffff;
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

.info-item span,
.info-item a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.3s ease;
}

.info-item a:hover {
  color: #ffffff;
}

/* Column 3: Footer Menu */
.footer-column-3 {
  max-width: 300px;
}

.footer-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-menu-list li {
  margin: 0;
}

.footer-menu-list a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  transition: all 0.3s ease;
  display: block;
  padding: 5px 0;
}

.footer-menu-list a:hover {
  color: #ffffff;
  padding-left: 10px;
}

/* Copyright Bar */
.custom-footer-copyright {
  background: rgba(0, 0, 0, 0.2);
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright-content {
  text-align: center;
}

.copyright-content p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Tablet */
@media (max-width: 768px) {
  .custom-footer-main {
    padding: 40px 0 30px;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .footer-column-3 {
    grid-column: 1 / -1;
    max-width: none;
  }

  .footer-column h3.footer-title {
    font-size: 16px;
    margin-bottom: 15px;
  }

  .newsletter-input-group {
    flex-direction: column;
    border-radius: 8px;
  }

  .newsletter-input {
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .newsletter-button {
    border-radius: 0 0 8px 8px;
    padding: 15px;
  }

  .footer-social {
    justify-content: center;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .custom-footer-main {
    padding: 30px 0 20px;
  }

  .custom-footer-container {
    padding: 0 15px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .footer-column-1,
  .footer-column-2,
  .footer-column-3 {
    max-width: none;
  }

  .logo-default {
    justify-content: center;
    text-align: center;
  }

  .logo-icon {
    width: 45px;
    height: 45px;
  }

  .logo-icon img {
    border-radius: 6px;
  }

  .logo-q {
    font-size: 20px;
  }

  .logo-text {
    font-size: 16px;
  }

  .footer-description {
    text-align: center;
  }

  .newsletter-title {
    text-align: center;
    font-size: 14px;
  }

  .footer-social {
    justify-content: center;
    margin: 20px 0;
  }

  .social-link {
    width: 40px;
    height: 40px;
  }

  .social-link i {
    font-size: 16px;
  }

  .footer-dmca {
    text-align: center;
  }

  .footer-column h3.footer-title {
    text-align: center;
    font-size: 15px;
  }

  .info-item {
    font-size: 13px;
  }

  .footer-menu-list {
    text-align: center;
  }

  .footer-menu-list a {
    font-size: 13px;
  }

  .copyright-content p {
    font-size: 12px;
  }
}