:root {
  --primary-color: #a8c45b;
  --dark-color: #2c3e50;
  --light-color: #f8f9fa;
  --gray-color: #6c757d;
  --text-light: #6c757d;
  --border-radius: 12px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "IBM Plex Sans Arabic", sans-serif;
}

body {
  background-color: #f5f7fa;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* الهيدر الأبيض المبسط */
.clubs-header {
  background: white;
  padding: 20px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 15px;
  border-radius: var(--border-radius);
  background: rgba(168, 196, 91, 0.1);
  transition: var(--transition);
}

.back-btn:hover {
  background: rgba(168, 196, 91, 0.2);
  transform: translateX(-3px);
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark-color);
  margin: 0;
}

/* التنبيهات */
.notification {
  padding: 15px 20px;
  border-radius: var(--border-radius);
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border-right: 4px solid;
  background: white;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.notification.success {
  background: rgba(40, 167, 69, 0.1);
  border-color: #28a745;
  color: #155724;
}

.notification.error {
  background: rgba(220, 53, 69, 0.1);
  border-color: #dc3545;
  color: #721c24;
}

.notification.warning {
  background: rgba(255, 193, 7, 0.1);
  border-color: #ffc107;
  color: #856404;
}

.notification.hiding {
  opacity: 0;
  transform: translateX(100%);
}

/* محتوى النوادي */
.clubs-content {
  min-height: 60vh;
  padding-bottom: 50px;
}

/* حالة عدم وجود نوادي */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin: 40px 0;
}

.empty-icon {
  font-size: 5rem;
  color: #dee2e6;
  margin-bottom: 30px;
}

.empty-title {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--dark-color);
  font-weight: 700;
}

.empty-text {
  color: var(--gray-color);
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.create-club-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  background: var(--primary-dark);
  color: white;
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.create-club-btn:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(168, 196, 91, 0.3);
}

/* شبكة النوادي */
.clubs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.club-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.club-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* صورة النادي */
.club-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.club-image-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
}

/* معلومات النادي */
.club-info {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.club-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 5px;
}

.club-description {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 10px;
  flex-grow: 1;
}

/* إحصائيات النادي */
.club-stats {
  display: flex;
  gap: 20px;
  margin: 10px 0;
}

.stat {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
  font-size: 0.9rem;
}

.stat i {
  color: var(--primary-color);
  width: 16px;
}

/* قادة النادي */
.leaders-section {
  margin: 15px 0;
}

.leaders-title {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 10px;
  font-weight: 600;
}

.leaders-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.leader-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 8px;
  transition: var(--transition);
}

.leader-item:hover {
  background: #f8f9fa;
}

.leader-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.leader-avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1rem;
}

.leader-info {
  flex: 1;
}

.leader-name {
  font-weight: 600;
  color: var(--dark-color);
  font-size: 0.9rem;
}

.leader-role {
  color: var(--text-light);
  font-size: 0.8rem;
}

/* أزرار الإجراءات */
.club-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.club-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  flex: 1;
  justify-content: center;
  min-width: 120px;
}

.view-btn {
  background: var(--primary-dark);
  color: white;
}

.view-btn:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
}

.join-btn {
  background: #007bff;
  color: white;
}

.join-btn:hover {
  background: #0056b3;
  transform: translateY(-2px);
}

.member-btn {
  background: #28a745;
  color: white;
  cursor: not-allowed;
  opacity: 0.8;
}

.pending-btn {
  background: #ffc107;
  color: #212529;
  cursor: not-allowed;
  opacity: 0.8;
}

/* تأثيرات الظهور */
.club-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

/* التجاوب */
@media (max-width: 768px) {
  .clubs-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-title {
    font-size: 1.6rem;
  }

  .header-left {
    gap: 15px;
  }

  .club-info {
    padding: 20px;
  }

  .club-stats {
    flex-direction: column;
    gap: 10px;
  }

  .club-actions {
    flex-direction: column;
  }

  .club-btn {
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .page-title {
    font-size: 1.4rem;
  }

  .empty-icon {
    font-size: 4rem;
  }

  .empty-title {
    font-size: 1.5rem;
  }

  .club-card {
    margin: 0 -10px;
    border-radius: 0;
  }

  .club-card:hover {
    transform: none;
  }
}

/* تحسينات إضافية للواجهة */
.clubs-header {
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  border-bottom: 1px solid #e9ecef;
}

.empty-state {
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
}

.club-card {
  border: 1px solid #e9ecef;
}

.leader-item {
  border: 1px solid #f1f3f4;
}

/* تأثيرات التركيز للوصول */
.club-btn:focus,
.back-btn:focus,
.create-club-btn:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* تحسينات للقراءة */
.club-description {
  line-height: 1.7;
}

.leader-name {
  line-height: 1.4;
}

/* تحسينات للألوان لتتناسب مع اللونين الأساسيين */
.stat i {
  color: var(--primary-dark);
}

.leader-avatar-placeholder {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
}

.club-image-placeholder {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
}
