/* ===================================
   Modern Footer Styles
   =================================== */

.custom-footer-section {
  background: #111 url('../images/footer_bg.svg') repeat;
  background-size: 30px auto;
  color: #fff;
  padding: 48px 0 0 0;
  font-family: 'Poppins', sans-serif;
  position: relative;
}

.custom-footer-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0f2481, #3554d1, #0f2481);
}

.custom-footer-section .container {
  max-width: 1400px;
}

/* Footer Navigation */
.custom-footer-section nav {
  font-size: 1em;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.custom-footer-section nav a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 2px;
}

.custom-footer-section nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #3554d1, #4fd1c5);
  transition: width 0.3s ease;
}

.custom-footer-section nav a:hover,
.custom-footer-section nav a:focus {
  color: #4fd1c5 !important;
  outline: none;
}

.custom-footer-section nav a:hover::after {
  width: 100%;
}

.footer-divider {
  color: #444;
  margin: 0 8px;
  opacity: 0.5;
}

/* Country Selector */
.custom-footer-section label {
  font-weight: 500;
  margin-right: 8px;
  color: #ccc;
}

#country-flag {
  width: 24px;
  height: auto;
  vertical-align: middle;
  margin: 0 8px 2px 0;
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#country-select {
  background: #222;
  color: #fff;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 1em;
  min-width: 180px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#country-select:hover,
#country-select:focus {
  border-color: #3554d1;
  background: #2a2a2a;
  outline: none;
}

#country-select option {
  background: #222;
  color: #fff;
}

/* Copyright */
.custom-footer-section .row > div:first-child > div:last-child {
  margin-top: 20px;
  font-size: 0.95em;
  color: #999;
  padding-top: 20px;
  border-top: 1px solid #333;
}

/* Social Media Icons */
.custom-footer-section .d-inline-flex a {
  background: linear-gradient(135deg, #222, #1a1a1a);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.custom-footer-section .d-inline-flex a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #3554d1, #4fd1c5);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 50%;
}

.custom-footer-section .d-inline-flex a:hover,
.custom-footer-section .d-inline-flex a:focus {
  transform: translateY(-4px) scale(1.1);
  border-color: #3554d1;
  box-shadow: 0 8px 20px rgba(53, 84, 209, 0.4);
}

.custom-footer-section .d-inline-flex a:hover::before {
  opacity: 1;
}

.custom-footer-section .d-inline-flex a i {
  color: #fff;
  font-size: 1.3em;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.custom-footer-section .d-inline-flex a:hover i {
  transform: scale(1.2) rotate(5deg);
}

/* App Store Buttons */
.custom-footer-section .d-inline-flex img {
  transition: all 0.3s ease;
  filter: brightness(0.9);
  border-radius: 8px;
}

.custom-footer-section .d-inline-flex a:hover img {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(53, 84, 209, 0.3);
}

/* App Store & Play Store specific sizing */
.custom-footer-section .d-inline-flex a[aria-label="App Store"] img {
  height: 40px;
  width: auto;
}

.custom-footer-section .d-inline-flex a[aria-label="Google Play"] img {
  height: 40px;
  width: auto;
  background: white;
  padding: 2px 8px;
  border-radius: 6px;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
  .custom-footer-section nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .custom-footer-section nav a {
    margin: 8px 12px;
  }

  .footer-divider {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .custom-footer-section {
    padding: 36px 0 0 0;
  }

  .custom-footer-section .row > div {
    text-align: center !important;
  }

  .custom-footer-section nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    gap: 12px;
  }

  .custom-footer-section nav a {
    margin: 0 !important;
  }

  .custom-footer-section .d-inline-flex {
    flex-direction: row !important;
    justify-content: center !important;
    margin-bottom: 16px !important;
    flex-wrap: wrap;
  }

  .custom-footer-section .d-inline-flex.mt-3 {
    margin-left: 0 !important;
    margin-top: 16px !important;
  }

  #country-select {
    min-width: 160px;
  }
}

@media (max-width: 480px) {
  .custom-footer-section {
    padding: 28px 0 0 0;
  }

  .custom-footer-section nav a {
    font-size: 0.95em;
  }

  .custom-footer-section .d-inline-flex a {
    width: 40px;
    height: 40px;
  }

  .custom-footer-section .d-inline-flex a i {
    font-size: 1.2em;
  }

  .custom-footer-section .d-inline-flex a[aria-label="App Store"] img,
  .custom-footer-section .d-inline-flex a[aria-label="Google Play"] img {
    height: 36px;
  }
}

/* Accessibility */
.custom-footer-section a:focus {
  outline: 2px solid #3554d1;
  outline-offset: 2px;
}
