/* تخصيص الخطوط العربية */
@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&display=swap");

body {
  font-family: "Cairo", sans-serif;
}

/* تحسين عرض النصوص العربية */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* تحسين الأزرار */
.btn-primary {
  background: linear-gradient(135deg, #10b981, #059669);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* تحسين البطاقات */
.pet-card {
  transition: all 0.3s ease;
}

.pet-card:hover {
  transform: translateY(-2px);
}

/* تحسين الإعلانات */
.ad-banner {
  border-radius: 12px;
  overflow: hidden;
  margin: 1rem 0;
}

.native-ad {
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}

.native-ad:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* تحسين النماذج */
.form-input {
  transition: all 0.3s ease;
}

.form-input:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* تحسين الإشعارات */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  max-width: 400px;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-left: 4px solid #10b981;
}

/* تحسين المودال */
.modal-overlay {
  backdrop-filter: blur(4px);
}

/* تحسين الإعلان العائم */
#floatingAd {
  animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* تحسين الاستجابة للشاشات الصغيرة */
@media (max-width: 768px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .grid-cols-2 {
    grid-template-columns: 1fr;
  }

  #floatingAd {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    max-width: none;
  }
}

/* تحسين التحميل */
.loading-spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #10b981;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* تحسين معاينة الصور */
.image-preview {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.image-preview img {
  transition: transform 0.3s ease;
}

.image-preview:hover img {
  transform: scale(1.05);
}

/* تحسين الإحصائيات */
.stats-card {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border: 1px solid #e2e8f0;
}

/* تحسين الفلاتر */
.filter-section {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}
