/* Skeleton Loader Styles - Effet shimmer comme Glovo */

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
  overflow: hidden;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Skeleton Cards */
.skeleton-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid #e0e0e0;
}

.skeleton-card-image {
  width: 100%;
  height: 120px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.skeleton-card-title {
  height: 20px;
  width: 80%;
  margin-bottom: 8px;
}

.skeleton-card-subtitle {
  height: 16px;
  width: 60%;
  margin-bottom: 8px;
}

.skeleton-card-price {
  height: 18px;
  width: 40%;
  margin-bottom: 8px;
}

.skeleton-card-rating {
  height: 16px;
  width: 30%;
}

/* Skeleton Rows */
.skeleton-row {
  background: white;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.skeleton-row-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}

.skeleton-row-content {
  flex: 1;
}

.skeleton-row-title {
  height: 18px;
  width: 70%;
  margin-bottom: 6px;
}

.skeleton-row-subtitle {
  height: 14px;
  width: 50%;
  margin-bottom: 4px;
}

.skeleton-row-meta {
  height: 12px;
  width: 30%;
}

/* Skeleton pour les listes */
.skeleton-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Skeleton pour les grilles */
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* Skeleton pour les grilles de menu */
.menu-grid .skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* Skeleton pour les petits éléments */
.skeleton-small {
  height: 12px;
  width: 60%;
  border-radius: 4px;
}

.skeleton-medium {
  height: 16px;
  width: 80%;
  border-radius: 6px;
}

.skeleton-large {
  height: 20px;
  width: 90%;
  border-radius: 8px;
}

/* Skeleton pour les boutons */
.skeleton-button {
  height: 40px;
  width: 120px;
  border-radius: 20px;
}

/* Skeleton pour les images de profil */
.skeleton-profile-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin: 0 auto 12px;
}

/* Skeleton pour les statistiques */
.skeleton-stat {
  text-align: center;
  padding: 16px;
  background: white;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.skeleton-stat-number {
  height: 24px;
  width: 60%;
  margin: 0 auto 8px;
}

.skeleton-stat-label {
  height: 14px;
  width: 80%;
  margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
  .skeleton-grid {
    grid-template-columns: 1fr;
  }
  
  .skeleton-card {
    padding: 12px;
  }
  
  .skeleton-row {
    padding: 12px;
  }
}
