/* footer.css */

/* Base Footer Styles */
.footer {
  background-color: var(--card);
  padding: 36px 24px;
  font-family: Arial, sans-serif;
  color: var(--text);
  border-top: 1px solid var(--border);
}
/* copy disable in desktop  */
.footer-copy-disable{
  display: none;
}
.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
  align-items: start;
}

/* Brand */
.footer-brand {
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-brand .brand-link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.footer-brand .brand-logo {
  height: 220px;
  width: auto;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.12));
  opacity: 0;
  transform: translateY(6px) scale(0.98);
  animation: footerBrandEnter 650ms cubic-bezier(.2,.7,.2,1) forwards;
}

@keyframes footerBrandEnter { to { opacity: 1; transform: translateY(0) scale(1);} }

.footer-brand .brand-logo:hover {
  transform: translateY(-2px) scale(1.03);
  transition: transform 200ms ease, filter 200ms ease;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.18));
}

.footer-brand p {
  font-size: 16px;
  color: var(--muted);
}

/* Center Column */
.footer-center {
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.footer-links a {
  text-decoration: none;
  color: var(--link);
  font-size: 16px;
  font-weight: 600;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--link-hover);
}

.footer-copy {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  margin-top: 5px;
}

/* Social Media */
.footer-social {
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-social h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--link);
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-icons a {
  color: var(--text);
  font-size: 22px;
  transition: color 0.3s, transform .15s ease, text-shadow .15s ease;
}

.social-icons a:hover {
  color: var(--link);
  transform: translateY(-2px);
  text-shadow: 0 6px 16px rgba(79,70,229,.25);
}

/* Dark mode tweaks for footer contrast */
html[data-theme='dark'] .footer { background: var(--card); }
html[data-theme='dark'] .footer-links a { color: #ffffff; }
html[data-theme='dark'] .footer-links a:hover { color: #cbd5e1; }
html[data-theme='dark'] .footer-brand a { color: #ffffff; }
html[data-theme='dark'] .social-icons a { color: #e5e7eb; }
html[data-theme='dark'] .social-icons a:hover { color: #93c5fd; }

/* Tablet Responsive */
@media screen and (max-width: 1024px) {
  .footer-copy-disable-phone{
    display: none;
  }
  .footer-container { grid-template-columns: 1fr; gap: 16px; text-align: center; }
  /* Brand */
.footer-brand {
  flex: 1 1 1px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-center {
  flex: 1 1 1px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-social {
  flex: 1 1 1px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

  .footer-brand .brand-logo { height: 60px; }

  .footer-links a {
    font-size: 14px;
  }
}

/* Legal Links Styling */
.footer-legal {
  display: flex;
  gap: 20px;
  margin: 12px 0;
  flex-wrap: wrap;
  justify-content: center;
}

.legal-link {
  color: var(--text-secondary, #64748b);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 4px 8px;
  border-radius: 4px;
  position: relative;
}

.legal-link:hover {
  color: var(--primary-color, #3b82f6);
  background: var(--primary-light, rgba(59, 130, 246, 0.1));
  transform: translateY(-1px);
}

.legal-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-color, #3b82f6);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.legal-link:hover::after {
  width: 100%;
}

/* Dark theme support for legal links */
[data-theme='dark'] .legal-link {
  color: #94a3b8;
}

[data-theme='dark'] .legal-link:hover {
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.1);
}

[data-theme='dark'] .legal-link::after {
  background: #60a5fa;
}

/* Mobile responsive for legal links */
@media screen and (max-width: 768px) {
  .footer-legal {
    gap: 12px;
    margin: 8px 0;
  }
  
  .legal-link {
    font-size: 13px;
    padding: 3px 6px;
  }
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .footer-copy-disable-phone{
    display: none;
  }
  .footer {
    padding: 18px 12px;
  }

  .footer-container { gap: 10px; }

  .footer-brand .brand-logo { height: 52px; }

  .footer-brand p {
    font-size: 14px;
  }

  .footer-links {
    gap: 8px;
  }

  .footer-links a {
    font-size: 14px;
  }

  .footer-copy {
    font-size: 12px;
  }

  .social-icons a { font-size: 18px; }
}
