/* ملف volunteer_teams.css - تم التحديث بالألوان الجديدة */
:root {
  --primary-color: #a8c45b;
  --primary-dark: #84b400;
  --secondary-color: #00c4cc;
  --accent-color: #579192;
  --dark-color: #2c3e50;
  --light-color: #f8f9fa;
  --text-color: #333;
  --text-light: #6c757d;
  --border-color: #e9ecef;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.volunteer-teams-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
  direction: rtl;
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--dark-color);
  margin-bottom: 50px;
  font-weight: 700;
  position: relative;
  padding-bottom: 15px;
}

.page-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 50%;
  transform: translateX(50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  border-radius: 2px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 350px));
  gap: 30px;
  margin-top: 30px;
  justify-content: center;
}

.team-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  border: 1px solid var(--border-color);
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-color);
}

.team-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

.team-card:hover .team-image {
  transform: scale(1.05);
}

.more-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--primary-dark) 100%
  );
  color: white;
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(168, 196, 91, 0.3);
  opacity: 0;
  transform: translateY(-10px);
  border: 2px solid transparent;
}

.team-card:hover .more-btn {
  opacity: 1;
  transform: translateY(0);
}

.more-btn:hover {
  background: linear-gradient(
    135deg,
    var(--primary-dark) 0%,
    var(--primary-color) 100%
  );
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(132, 180, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.3);
}

.team-card-content {
  padding: 25px;
  background: white;
  position: relative;
}

.team-name {
  font-size: 1.4rem;
  color: var(--dark-color);
  margin-bottom: 10px;
  font-weight: 700;
  line-height: 1.3;
  transition: var(--transition);
}

.team-card:hover .team-name {
  color: var(--primary-dark);
}

.team-slogan {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  font-weight: 500;
}

/* تأثير إضافي للبطاقة */
.team-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.team-card:hover::before {
  transform: scaleX(1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .volunteer-teams-container {
    padding: 30px 15px;
  }

  .page-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
  }

  .team-card-content {
    padding: 20px;
  }

  .team-name {
    font-size: 1.2rem;
  }

  .more-btn {
    padding: 10px 20px;
    font-size: 13px;
  }

  .team-image {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr;
  }

  .page-title {
    font-size: 1.8rem;
  }

  .volunteer-teams-container {
    padding: 20px 10px;
  }

  .team-image {
    height: 180px;
  }
}

/* Loading State */
.team-card.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow);
  margin: 40px 0;
}

.empty-state i {
  font-size: 4rem;
  margin-bottom: 20px;
  color: var(--border-color);
}

.empty-state h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--dark-color);
}

.empty-state p {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* تحسينات إضافية للوصول */
.more-btn:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.team-card:focus-within {
  outline: 2px solid var(--primary-color);
  outline-offset: 4px;
}
