/* Footer Component - Cuttack Shanti Committee */
/* Footer with committee info, social links, and festive styling */

/* ===== FOOTER CONTAINER ===== */
.footer {
  background: linear-gradient(135deg, var(--primary-maroon) 0%, var(--neutral-black) 100%);
  color: var(--neutral-white);
  padding: var(--spacing-3xl) 0 var(--spacing-lg);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-red), var(--accent-gold), var(--primary-orange), var(--primary-yellow));
}

.footer__container {
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* ===== FOOTER MAIN CONTENT ===== */
.footer__main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-2xl);
}

/* ===== FOOTER SECTIONS ===== */
.footer__section {
  display: flex;
  flex-direction: column;
}

.footer__section-title {
  font-family: var(--font-secondary);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--accent-gold);
  margin-bottom: var(--spacing-lg);
  position: relative;
}

.footer__section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent-gold);
  border-radius: var(--border-radius-sm);
}

/* ===== COMMITTEE INFO SECTION ===== */
.footer__about {
  max-width: 400px;
}

.footer__logo {
  width: 80px;
  height: 80px;
  border-radius: var(--border-radius-lg);
  margin-bottom: var(--spacing-lg);
  border: 3px solid var(--accent-gold);
  object-fit: cover;
}

.footer__description {
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  color: var(--neutral-cream);
  margin-bottom: var(--spacing-lg);
}

.footer__established {
  font-size: var(--font-size-sm);
  color: var(--accent-gold);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--spacing-md);
}

.footer__bengali-text {
  font-family: var(--font-bengali);
  font-size: var(--font-size-lg);
  color: var(--primary-yellow);
  font-style: italic;
  margin-bottom: var(--spacing-lg);
}

/* ===== QUICK LINKS SECTION ===== */
.footer__links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__links-item {
  margin-bottom: var(--spacing-sm);
}

.footer__link {
  color: var(--neutral-cream);
  text-decoration: none;
  font-size: var(--font-size-base);
  transition: var(--transition-all);
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0;
}

.footer__link:hover,
.footer__link:focus {
  color: var(--accent-gold);
  text-decoration: underline;
  transform: translateX(5px);
}

.footer__link::before {
  content: '→';
  margin-right: var(--spacing-sm);
  opacity: 0;
  transition: var(--transition-all);
  transform: translateX(-10px);
}

.footer__link:hover::before,
.footer__link:focus::before {
  opacity: 1;
  transform: translateX(0);
}

/* ===== CONTACT INFO SECTION ===== */
.footer__contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--spacing-md);
  padding: var(--spacing-sm) 0;
}

.footer__contact-icon {
  width: 20px;
  height: 20px;
  margin-right: var(--spacing-md);
  margin-top: 2px;
  color: var(--accent-gold);
  flex-shrink: 0;
}

.footer__contact-text {
  color: var(--neutral-cream);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
}

.footer__contact-link {
  color: var(--neutral-cream);
  text-decoration: none;
  transition: var(--transition-all);
}

.footer__contact-link:hover,
.footer__contact-link:focus {
  color: var(--accent-gold);
  text-decoration: underline;
}

/* ===== SOCIAL MEDIA SECTION ===== */
.footer__social {
  margin-top: var(--spacing-lg);
}

.footer__social-list {
  display: flex;
  gap: var(--spacing-md);
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.footer__social-item {
  flex-shrink: 0;
}

.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--neutral-white);
  text-decoration: none;
  border-radius: var(--border-radius-md);
  transition: var(--transition-all);
  font-size: var(--font-size-xl);
  border: 2px solid transparent;
}

.footer__social-link:hover,
.footer__social-link:focus {
  background: var(--accent-gold);
  color: var(--neutral-black);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
  border-color: var(--primary-yellow);
}

.footer__social-link--facebook:hover {
  background: #1877F2;
  color: var(--neutral-white);
}

.footer__social-link--instagram:hover {
  background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4);
  color: var(--neutral-white);
}

.footer__social-link--youtube:hover {
  background: #FF0000;
  color: var(--neutral-white);
}

.footer__social-link--whatsapp:hover {
  background: #25D366;
  color: var(--neutral-white);
}

/* Screen reader text for social icons */
.footer__social-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== EVENTS/UPDATES SECTION ===== */
.footer__events {
  background: rgba(255, 255, 255, 0.05);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.footer__event-item {
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__event-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.footer__event-date {
  font-size: var(--font-size-sm);
  color: var(--accent-gold);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--spacing-xs);
}

.footer__event-title {
  font-size: var(--font-size-base);
  color: var(--neutral-white);
  margin: 0;
  line-height: var(--line-height-normal);
}

/* ===== FOOTER BOTTOM ===== */
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--spacing-md);
}

.footer__copyright {
  font-size: var(--font-size-sm);
  color: var(--neutral-cream);
  margin: 0;
}

.footer__copyright-year {
  color: var(--accent-gold);
  font-weight: var(--font-weight-medium);
}

.footer__bottom-links {
  display: flex;
  gap: var(--spacing-lg);
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__bottom-link {
  color: var(--neutral-cream);
  text-decoration: none;
  font-size: var(--font-size-sm);
  transition: var(--transition-all);
}

.footer__bottom-link:hover,
.footer__bottom-link:focus {
  color: var(--accent-gold);
  text-decoration: underline;
}

.footer__credits {
  font-size: var(--font-size-xs);
  color: var(--neutral-gray);
  text-align: center;
  margin-top: var(--spacing-md);
}

.footer__credits-link {
  color: var(--accent-gold);
  text-decoration: none;
  transition: var(--transition-all);
}

.footer__credits-link:hover {
  text-decoration: underline;
}

/* ===== DECORATIVE ELEMENTS ===== */
.footer__decoration {
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.footer__decoration::before {
  content: '🪷';
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  opacity: 0.3;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 767px) {
  .footer {
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
  }
  
  .footer__main {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }
  
  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer__bottom-links {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .footer__social-list {
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  
  .footer__bottom-links {
    justify-content: flex-end;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .footer {
    background: transparent;
    color: #000;
    padding: var(--spacing-lg) 0;
  }
  
  .footer::before,
  .footer__decoration {
    display: none;
  }
  
  .footer__social,
  .footer__events {
    display: none;
  }
  
  .footer__section-title {
    color: #000;
  }
  
  .footer__link,
  .footer__contact-text,
  .footer__description,
  .footer__copyright {
    color: #000;
  }
}

/* ===== ACCESSIBILITY ENHANCEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
  .footer__decoration::before {
    animation: none;
  }
  
  .footer__link:hover::before,
  .footer__social-link:hover {
    transform: none;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .footer {
    background: #000;
    border-top: 2px solid #fff;
  }
  
  .footer__link,
  .footer__social-link {
    border: 1px solid;
  }
}

/* ===== BACK TO TOP BUTTON ===== */
.footer__back-to-top {
  position: fixed;
  bottom: var(--spacing-xl);
  right: var(--spacing-xl);
  width: 50px;
  height: 50px;
  background: var(--primary-red);
  color: var(--neutral-white);
  border: none;
  border-radius: var(--border-radius-full);
  cursor: pointer;
  transition: var(--transition-all);
  z-index: var(--z-sticky);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(100px);
  box-shadow: var(--shadow-lg);
}

.footer__back-to-top--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.footer__back-to-top:hover,
.footer__back-to-top:focus {
  background: var(--primary-maroon);
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.footer__back-to-top:focus {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}