/**
 * minimal-footer.css - Minimalist creative footer for EventsXP Rwanda
 * Created: October 5, 2025
 */

/* Minimal Footer Structure */
.minimal-footer {
  position: relative;
  background: linear-gradient(to bottom, #ffffff, #f9fcfd);
  color: var(--color-text-soft);
  overflow: hidden;
  margin-top: 4rem;
  font-family: var(--font-family-base);
  border-top: 1px solid rgba(var(--color-brand-primary-rgb), 0.1);
  width: 100%; /* Ensure footer uses full width */
  box-sizing: border-box; /* Include padding and border in the width */
}

/* Creative Wave Separator */
.minimal-footer-wave {
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  line-height: 0;
  overflow: hidden;
}

.minimal-footer-wave svg {
  display: block;
  width: 100%;
  height: 100px;
}

/* Main Content */
.minimal-footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem; /* Increased gap between footer sections */
  max-width: 100%; /* Use full width */
  width: calc(100% - 1rem); /* Full width minus a small margin */
  margin: 0 auto;
  padding: 5rem 0.5rem 3rem; /* Minimal left/right padding */
  position: relative;
}

@media (min-width: 768px) {
  .minimal-footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .minimal-footer-content {
    grid-template-columns: 1.5fr 1fr 1fr 1fr; /* Slightly less width for branding */
    column-gap: 0.75rem; /* Tighter column spacing */
    padding-left: 0.25rem; /* Minimal left padding */
    padding-right: 0.25rem; /* Minimal right padding */
    max-width: 98%; /* Use almost the full width of the container */
  }
}

/* Branding Section */
.minimal-footer-branding {
  margin-bottom: 1.5rem;
}

@media (min-width: 992px) {
  .minimal-footer-branding {
    padding-right: 1.5rem; /* Add some spacing to match the other sections */
  }
}

.minimal-footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.minimal-footer-logo img {
  height: auto;
  max-height: 65px;
  width: auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.minimal-footer-logo:hover img {
  transform: translateY(-2px);
  opacity: 0.8;
}

/* Legacy styles for backward compatibility */
.logo-mark {
  display: none;
}

.logo-text {
  display: none;
}

.minimal-footer-tagline {
  color: var(--color-text-soft);
  font-size: var(--text-md);
  margin-bottom: 1.5rem;
  max-width: 350px;
}

/* Footer Links */
.minimal-footer-links,
.minimal-footer-services,
.minimal-footer-contact {
  margin-bottom: 1.5rem;
}

/* Mobile dividers */
@media (max-width: 991px) {
  .minimal-footer-branding,
  .minimal-footer-links,
  .minimal-footer-services {
    padding-bottom: 2rem; /* More space below each section */
    padding-top: 0.5rem; /* Add a bit of space above each section */
    position: relative;
  }

  .minimal-footer-branding::after,
  .minimal-footer-links::after,
  .minimal-footer-services::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(
      to right,
      transparent,
      rgba(var(--color-brand-primary-rgb), 0.3) 20%,
      rgba(var(--color-brand-primary-rgb), 0.3) 80%,
      transparent
    );
  }

  /* Add decorative dots to the horizontal dividers */
  .minimal-footer-branding::before,
  .minimal-footer-links::before,
  .minimal-footer-services::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    background-color: var(--color-brand-primary);
    border-radius: 50%;
    box-shadow: var(
      --divider-glow,
      0 0 5px rgba(var(--color-brand-primary-rgb), 0.5)
    );
    transition: box-shadow 0.3s ease;
    z-index: 1;
  }
}

/* Services section has no special styling to match other sections */

/* Footer Titles */
.minimal-footer-title {
  color: var(--color-brand-primary);
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
  transition: transform 0.3s ease;
}

.minimal-footer-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--color-brand-primary);
  border-radius: 3px;
}

/* Utility class for margin top */
.mt-4 {
  margin-top: 1.5rem;
}

.minimal-footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.minimal-footer-nav a {
  color: var(--color-brand-primary);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  position: relative;
  padding-left: 1rem;
  transition: all 0.3s ease;
  display: block;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.minimal-footer-nav a:before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background-color: var(--color-brand-primary);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.minimal-footer-nav a:hover {
  color: var(--color-brand-primary-soft);
  transform: translateX(5px);
}

.minimal-footer-nav a:hover:before {
  background-color: var(--color-brand-primary-soft);
  width: 8px;
  height: 8px;
}

/* Contact Information */
.minimal-footer-contact {
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.contact-item i {
  color: var(--color-brand-primary);
  margin-right: 0.75rem;
  font-size: 1rem;
  margin-top: 0.25rem;
  width: 1rem;
  text-align: center;
}

.contact-item span,
.contact-item a {
  color: var(--color-text-soft);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: var(--font-weight-medium);
}

.contact-item a:hover {
  color: var(--color-brand-primary);
  text-decoration: underline;
}

/* Social Links */
.minimal-footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.minimal-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--color-brand-tint);
  color: var(--color-brand-primary);
  transition: all 0.3s ease;
}

.minimal-footer-social a:hover {
  background-color: var(--color-brand-primary);
  color: white;
  transform: translateY(-3px) rotate(5deg);
  box-shadow: 0 5px 15px rgba(19, 142, 158, 0.3);
}

.minimal-footer-social a:nth-child(even):hover {
  transform: translateY(-3px) rotate(-5deg);
}

.minimal-footer-social a:active {
  transform: translateY(0) scale(0.95);
  transition: transform 0.1s ease;
}

/* Bottom Bar */
.minimal-footer-bottom {
  background-color: var(--color-brand-primary);
  padding: 1.25rem 0.75rem; /* Less padding on sides */
  text-align: center;
  width: 100%; /* Ensure it uses full width */
}

.minimal-footer-copyright {
  color: white;
  font-size: var(--text-sm);
  margin: 0;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.01em;
}

/* Accessibility enhancements */
.minimal-footer a:focus,
.minimal-footer-social a:focus {
  outline: 2px solid white;
  outline-offset: 2px;
}

.minimal-footer-nav a:focus:before {
  background-color: white;
}

/* Creative Animation Effects */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

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

.minimal-footer-logo img {
  animation: pulse 3s infinite ease-in-out;
}

/* Animation for scroll reveal effect */
.footer-item-hidden {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.footer-item-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation effect for footer items */
.minimal-footer-branding.footer-item-visible {
  transition-delay: 0s;
}
.minimal-footer-links.footer-item-visible {
  transition-delay: 0.1s;
}
.minimal-footer-services.footer-item-visible {
  transition-delay: 0.2s;
}
.minimal-footer-contact.footer-item-visible {
  transition-delay: 0.3s;
}
.minimal-footer-social.footer-item-visible {
  transition-delay: 0.4s;
}

/* Creative hover effects */
.minimal-footer-logo:hover img {
  animation: pulse 0.8s infinite ease-in-out;
}

.contact-item i {
  transition: transform 0.3s ease;
}

/* Ensure footer links are readable with white color on brand color */
.minimal-footer-bottom a {
  color: white;
}

/* Responsive adjustment for smaller screens */
@media (max-width: 767px) {
  .minimal-footer-content {
    padding-top: 4rem;
    padding-bottom: 2rem;
  }

  .minimal-footer-branding,
  .minimal-footer-links,
  .minimal-footer-services,
  .minimal-footer-contact,
  .minimal-footer-social {
    margin-bottom: 2rem;
  }

  /* Services section links now match other links on mobile */
}
.footer-cta-container {
  margin-top: 1.5rem;
}

.footer-cta {
  background: var(--color-brand-primary);
  background: linear-gradient(
    135deg,
    var(--color-brand-primary),
    var(--color-brand-primary-soft)
  );
  color: var(--color-text-invert);
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(19, 142, 158, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
}

.footer-cta::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    225deg,
    var(--color-brand-primary),
    var(--color-brand-primary-soft),
    var(--color-brand-primary)
  );
  z-index: -1;
  border-radius: 6px;
  background-size: 200% 200%;
  animation: gradient 5s ease infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.footer-cta:hover::before {
  opacity: 1;
}

.footer-cta:hover {
  box-shadow: 0 6px 15px rgba(19, 142, 158, 0.3);
  transform: translateY(-2px);
}

.footer-cta:active {
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(19, 142, 158, 0.2);
}

/* Add right arrow icon after the text */
.footer-cta:after {
  content: '\f061'; /* Font Awesome arrow-right icon */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  margin-left: 0.5rem;
  font-size: 0.8rem;
}

@media (max-width: 767px) {
  .footer-cta {
    display: inline-block;
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
} /* Add dividers between footer sections */
@media (min-width: 992px) {
  .minimal-footer-links,
  .minimal-footer-services,
  .minimal-footer-contact {
    position: relative;
    padding-left: 2rem; /* More space for the divider */
    padding-right: 0.5rem; /* Less padding on the right to save space */
  }

  .minimal-footer-links::before,
  .minimal-footer-services::before,
  .minimal-footer-contact::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 1px;
    background: linear-gradient(
      to bottom,
      transparent,
      rgba(var(--color-brand-primary-rgb, 19, 142, 158), 0.3) 15%,
      rgba(var(--color-brand-primary-rgb, 19, 142, 158), 0.3) 85%,
      transparent
    );
  }

  /* Add decorative dots to the dividers */
  .minimal-footer-links::after,
  .minimal-footer-services::after,
  .minimal-footer-contact::after {
    content: '';
    position: absolute;
    left: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background-color: var(--color-brand-primary);
    border-radius: 50%;
    box-shadow: var(
      --divider-glow,
      0 0 5px rgba(var(--color-brand-primary-rgb), 0.5)
    );
    transition: box-shadow 0.3s ease;
  }
}

/* Add RGB color variable for gradient use */
:root {
  --color-brand-primary-rgb: 19, 142, 158;
}

@keyframes dividerGlow {
  0% {
    box-shadow: 0 0 5px rgba(var(--color-brand-primary-rgb), 0.5);
  }
  50% {
    box-shadow: 0 0 12px rgba(var(--color-brand-primary-rgb), 0.8);
  }
  100% {
    box-shadow: 0 0 5px rgba(var(--color-brand-primary-rgb), 0.5);
  }
}

@media (min-width: 992px) {
  .minimal-footer-links::after,
  .minimal-footer-services::after,
  .minimal-footer-contact::after {
    animation: dividerGlow 5s infinite ease-in-out;
    animation-delay: 0.5s; /* Stagger the animations */
  }

  .minimal-footer-services::after {
    animation-delay: 1s;
  }

  .minimal-footer-contact::after {
    animation-delay: 1.5s;
  }
}
