/* ============================================
   FOOTER STYLES - Shared across all pages
   ============================================ */

.footer {
  background: -webkit-gradient(linear, left top, right bottom, from(#1B2A7A), to(#1E2B8C));
  background: -webkit-linear-gradient(top left, #1B2A7A 0%, #1E2B8C 100%);
  background: -o-linear-gradient(top left, #1B2A7A 0%, #1E2B8C 100%);
  background: linear-gradient(135deg, #1B2A7A 0%, #1E2B8C 100%);
  color: var(--color-white);
  padding: var(--spacing-16) 0 var(--spacing-8);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: -webkit-gradient(linear, left top, right top, from(transparent), color-stop(#2339A3), to(transparent));
  background: -webkit-linear-gradient(left, transparent, #2339A3, transparent);
  background: -o-linear-gradient(left, transparent, #2339A3, transparent);
  background: linear-gradient(90deg, transparent, #2339A3, transparent);
}

.footer-content {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (minmax(250px, 1fr))[auto-fit];
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-8);
  padding-bottom: var(--spacing-12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Fallback للمتصفحات التي لا تدعم Grid */
@supports not (display: grid) {
  .footer-content {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
  }
  .footer-col {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 250px;
    flex: 1 1 250px;
  }
}

.footer-col {
  padding: var(--spacing-4);
}

.footer-title {
  color: var(--color-white);
  margin-bottom: var(--spacing-6);
  font-size: var(--font-xl);
  position: relative;
  padding-bottom: var(--spacing-3);
  font-weight: 700;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: #FFD700;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.5);
}

html[lang="ar"] .footer-title::after {
  left: auto;
  right: 0;
}

.footer-text {
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.8;
  font-weight: 400;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--spacing-3);
}

.footer-links a, .footer-links span {
  color: rgba(255, 255, 255, 0.95);
  -webkit-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
  display: inline-block;
  font-weight: 500;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.footer-links a:hover {
  color: #FFD700;
  -webkit-transform: translateX(5px);
  -ms-transform: translateX(5px);
  transform: translateX(5px);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

html[lang="ar"] .footer-links a:hover {
  -webkit-transform: translateX(-5px);
  -ms-transform: translateX(-5px);
  transform: translateX(-5px);
}

.footer-contact {
  list-style: none;
}

.footer-contact li {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: flex-start;
  gap: var(--spacing-3);
  margin-bottom: var(--spacing-4);
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.footer-contact i {
  color: #FFD700;
  margin-top: 4px;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5));
}

.footer-contact a {
  color: inherit;
  transition: all 0.3s ease;
}

.footer-contact a:hover {
  color: #FFD700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.footer-social {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: var(--spacing-3);
  margin-top: var(--spacing-6);
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--color-white);
  -webkit-transition: all 0.4s ease;
  -o-transition: all 0.4s ease;
  transition: all 0.4s ease;
}

.footer-social a:hover {
  background: #2339A3;
  -webkit-transform: translateY(-4px) rotate(360deg);
  -ms-transform: translateY(-4px) rotate(360deg);
  transform: translateY(-4px) rotate(360deg);
}

.footer-bottom {
  padding-top: var(--spacing-8);
  text-align: center;
}

.copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--font-sm);
}

/* Responsive */
@media (max-width: 768px) {
  .footer-content {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
    gap: var(--spacing-6);
  }
  
  .footer-col {
    text-align: center;
  }
  
  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  html[lang="ar"] .footer-title::after {
    right: auto;
    left: 50%;
  }
  
  .footer-social {
    justify-content: center;
  }
}
