/* ==========================================================================
   FOOTER STYLES
   Modern footer with branding, links, and social media
   ========================================================================== */

.main-footer {
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
  color: var(--gray-300);
  margin-top: var(--space-20);
  position: relative;
  overflow: hidden;
}

.main-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--primary-500) 50%, transparent 100%);
}

/* Footer Content */
.footer-content {
  padding: var(--space-16) 0 var(--space-8);
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

/* Footer Brand Section */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.footer-logo img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
}

.footer-brand-text {
  font-family: 'Playfair Display', serif;
  font-size: var(--text-2xl);
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-400) 0%, var(--primary-600) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.footer-description {
  color: var(--gray-400);
  line-height: 1.6;
  margin-bottom: var(--space-4);
  max-width: 400px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--gray-400);
  font-size: var(--text-sm);
  transition: color var(--transition);
}

.footer-contact-item:hover {
  color: var(--primary-400);
}

.footer-contact-icon {
  width: 16px;
  height: 16px;
  color: var(--primary-500);
  flex-shrink: 0;
}

/* Footer Sections */
.footer-section {
  display: flex;
  flex-direction: column;
}

.footer-section-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-inverse);
  margin-bottom: var(--space-4);
  position: relative;
  padding-bottom: var(--space-2);
}

.footer-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary-500);
  border-radius: 2px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-link {
  color: var(--gray-400);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  position: relative;
  padding-left: var(--space-4);
}

.footer-link::before {
  content: '';
  position: absolute;
  left: 0;
  width: 12px;
  height: 1px;
  background: var(--primary-500);
  transition: width var(--transition);
}

.footer-link:hover {
  color: var(--primary-400);
  text-decoration: none;
  padding-left: var(--space-5);
}

.footer-link:hover::before {
  width: 16px;
}

/* Social Media */
.footer-social {
  margin-top: var(--space-6);
}

.footer-social-title {
  font-weight: 600;
  color: var(--text-inverse);
  margin-bottom: var(--space-4);
  font-size: var(--text-base);
}

.social-links {
  display: flex;
  gap: var(--space-3);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--gray-400);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all var(--transition);
  backdrop-filter: blur(10px);
}

.social-link:hover {
  background: var(--primary-500);
  color: var(--text-inverse);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.social-link i {
  font-size: var(--text-lg);
}

/* Newsletter Signup */
.newsletter-signup {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-top: var(--space-6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.newsletter-title {
  font-weight: 600;
  color: var(--text-inverse);
  margin-bottom: var(--space-2);
  font-size: var(--text-lg);
}

.newsletter-description {
  color: var(--gray-400);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

.newsletter-form {
  display: flex;
  gap: var(--space-2);
}

.newsletter-input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  color: var(--text-inverse);
  font-size: var(--text-sm);
  transition: all var(--transition);
}

.newsletter-input::placeholder {
  color: var(--gray-500);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--primary-500);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 2px rgba(230, 123, 46, 0.2);
}

.newsletter-button {
  padding: var(--space-3) var(--space-5);
  background: var(--primary-500);
  color: var(--text-inverse);
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.newsletter-button:hover {
  background: var(--primary-600);
  transform: translateY(-1px);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-6) 0;
  background: rgba(0, 0, 0, 0.2);
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copyright {
  color: var(--gray-500);
  font-size: var(--text-sm);
}

.footer-copyright a {
  color: var(--primary-400);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-copyright a:hover {
  color: var(--primary-300);
}

.footer-legal {
  display: flex;
  gap: var(--space-6);
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-legal a {
  color: var(--gray-500);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--transition);
}

.footer-legal a:hover {
  color: var(--primary-400);
}

/* Payment Methods */
.payment-methods {
  margin-top: var(--space-4);
}

.payment-methods-title {
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin-bottom: var(--space-3);
}

.payment-icons {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.payment-icon {
  width: 40px;
  height: 24px;
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  color: var(--text-secondary);
  border: 1px solid var(--border-primary);
  transition: all var(--transition);
}

.payment-icon:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-sm);
}

/* Social Icons - Bootstrap footer compatibility */
.social-icons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid #dee2e6;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.social-icons a:hover {
  background: #e67e22;
  border-color: #e67e22;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
}

/* Arabic text RTL */
.arabic-text {
  direction: rtl;
  text-align: right;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  margin-top: 0.25rem;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }
  
  .footer-brand {
    grid-column: 1 / -1;
    margin-bottom: var(--space-4);
  }
}

@media (max-width: 768px) {
  .footer-content {
    padding: var(--space-12) 0 var(--space-6);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  
  .footer-brand {
    margin-bottom: var(--space-6);
    text-align: center;
  }
  
  .footer-section {
    text-align: center;
  }
  
  .footer-links {
    align-items: center;
  }
  
  .footer-link {
    justify-content: center;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-legal {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .footer-content {
    padding: var(--space-8) 0 var(--space-4);
  }
  
  .footer-brand-text {
    font-size: var(--text-xl);
  }
  
  .footer-section-title {
    font-size: var(--text-base);
  }
  
  .social-links,
  .social-icons {
    gap: var(--space-2);
  }
  
  .social-link {
    width: 40px;
    height: 40px;
  }
  
  .footer-legal {
    flex-direction: column;
    gap: var(--space-3);
  }
  
  .payment-icons {
    justify-content: center;
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  .footer-link,
  .social-link,
  .newsletter-button,
  .payment-icon {
    transition: none;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .main-footer {
    background: var(--gray-900);
  }
  
  .footer-link::before {
    background: var(--text-inverse);
  }
  
  .social-link {
    border: 1px solid var(--gray-600);
  }
}

/* Print Styles */
@media print {
  .main-footer {
    background: none;
    color: black;
  }
  
  .social-links,
  .newsletter-signup {
    display: none;
  }
}
