/* ==========================================
   التذييل (Footer)
   ========================================== */

footer {
  background: linear-gradient(135deg, var(--dark-bg), #1a1a2e);
  color: white;
  padding: 60px 0 20px;
  margin-top: 80px;
  border-top: 2px solid rgba(91, 33, 182, 0.2);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

/* شعبة المعلومات */
.footer-section h3 {
  color: white;
  margin-bottom: 20px;
  font-size: 1.1rem;
  position: relative;
  padding-bottom: 15px;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.footer-section p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  margin-bottom: 15px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 12px;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-section ul li a:hover {
  color: white;
  transform: translateX(5px);
}

/* معلومات الاتصال */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.contact-item:hover {
  color: white;
  transform: translateX(5px);
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.contact-text {
  display: flex;
  flex-direction: column;
}

.contact-text strong {
  color: white;
  display: block;
  margin-bottom: 3px;
}

/* وسائل التواصل الاجتماعي */
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(91, 33, 182, 0.2);
  border: 1px solid rgba(91, 33, 182, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: var(--transition);
  font-size: 1.2rem;
}

.social-link:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-color: transparent;
  transform: translateY(-5px);
}

/* الخط الفاصل */
.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(91, 33, 182, 0.3), transparent);
  margin-bottom: 30px;
}

/* حقوق الطبع والنشر */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  flex-wrap: wrap;
  gap: 20px;
}

.copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-bottom-links {
  display: flex;
  gap: 25px;
  list-style: none;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-bottom-links a:hover {
  color: white;
}

/* الشعار في التذييل */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.footer-logo img {
  height: 40px;
  width: auto;
}

.footer-logo-text {
  font-size: 1.1rem;
  font-weight: 700;
}

.footer-logo-text span {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* الاستجابة للأجهزة الصغيرة */
@media (max-width: 768px) {
  footer {
    padding: 40px 0 20px;
  }

  .footer-content {
    gap: 30px;
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom-links {
    justify-content: center;
    flex-direction: column;
    gap: 10px;
  }

  .footer-logo {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  footer {
    padding: 30px 0 15px;
  }

  .footer-content {
    gap: 20px;
  }

  .footer-section h3 {
    font-size: 1rem;
  }

  .copyright {
    font-size: 0.85rem;
  }
}
