/* ===============================
   Premium Footer Styles
   Jungle Mart - Enhanced Design
================================= */

.footer {
  background: linear-gradient(135deg, var(--gray-dark) 0%, var(--gray-dark) 100%);
  color: var(--white);
  padding: 60px 0 20px;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 2px, transparent 2px),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 100px 100px, 80px 80px;
  pointer-events: none;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 100%;
  margin: 0;
  padding: 0 var(--page-gap, 20px);
  position: relative;
  z-index: 2;
}

.fcol {
  padding: 20px;
}

.fcol h3 {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.fcol h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--gold-accent);
  border-radius: 2px;
}

.fcol p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 1rem;
}

.fcol a {
  display: block;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  margin: 12px 0;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 20px;
}

.fcol a::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold-accent);
  transition: transform 0.3s ease;
}

.fcol a:hover {
  color: var(--white);
  transform: translateX(5px);
}

.fcol a:hover::before {
  transform: translateX(3px);
}

/* Footer logo and description */
.footer-logo {
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  display: inline-block;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 30px;
}

/* Social media icons */
.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.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: var(--white);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
  background: var(--gold-accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 179, 0, 0.3);
  border-color: transparent;
}

/* Newsletter form */
.newsletter-form {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.newsletter-input {
  flex: 1;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 14px;
  transition: all 0.3s ease;
}

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

.newsletter-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--gold-accent);
  box-shadow: 0 0 0 2px rgba(255, 179, 0, 0.2);
}

.newsletter-btn {
  background: var(--gold-accent);
  color: var(--white);
  border: none;
  border-radius: 25px;
  padding: 12px 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.newsletter-btn:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 179, 0, 0.4);
}

/* Contact info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  color: rgba(255, 255, 255, 0.9);
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-accent);
  font-size: 18px;
}

/* Footer bottom */
.footer-bottom {
  text-align: center;
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  z-index: 2;
}

.footer-bottom p {
  margin: 5px 0;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Payment methods */
.payment-methods {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

.payment-method {
  width: 50px;
  height: 30px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.payment-method:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--jungle-green);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(46, 125, 50, 0.3);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--jungle-dark);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(46, 125, 50, 0.4);
}

/* Responsive design */
@media (max-width: 768px) {
  .footer {
    padding: 40px 0 20px;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  
  .fcol h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .social-links {
    justify-content: center;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 15px;
  }
  
  .contact-item {
    justify-content: center;
  }
  
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 30px 0 15px;
  }
  
  .fcol {
    padding: 15px;
  }
  
  .fcol h3 {
    font-size: 1.3rem;
  }
  
  .social-link {
    width: 40px;
    height: 40px;
  }
  
  .newsletter-btn {
    padding: 10px 20px;
  }
  
  .back-to-top {
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
  }
}

/* Animation for footer elements */
.fcol {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.fcol:nth-child(1) { animation-delay: 0.1s; }
.fcol:nth-child(2) { animation-delay: 0.2s; }
.fcol:nth-child(3) { animation-delay: 0.3s; }
.fcol:nth-child(4) { animation-delay: 0.4s; }

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