/* ============================================================
   📸 fan-corner.css — تصميم ركن المشجعين على طريقة إنستغرام
   ULTRAS STORE
   ============================================================ */

.insta-feed {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2xl);
  max-width: 500px;
  margin: 0 auto;
  padding: var(--space-md) 0;
}

.insta-post {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.insta-post:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* --- Header --- */
.insta-post__header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  gap: 12px;
}

.insta-post__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  padding: 2px; /* For the "story" ring effect */
}

.insta-post__avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px solid var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 1.2rem;
}

.insta-post__user {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.insta-post__username {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  text-decoration: none;
}

.insta-post__badge {
  font-size: 0.7rem;
  color: var(--primary-color);
  font-weight: 700;
  margin-top: 2px;
}

/* --- Image --- */
.insta-post__image {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--bg-surface-2);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.insta-post__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

/* --- Actions --- */
.insta-post__actions {
  display: flex;
  padding: 12px 16px 8px;
  gap: 16px;
}

.insta-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 1.6rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.insta-btn:hover {
  transform: scale(1.15);
}

.insta-btn.liked {
  color: #ed4956;
  animation: heart-burst 0.4s ease forwards;
}

@keyframes heart-burst {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* --- Likes & Caption --- */
.insta-post__likes {
  padding: 0 16px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.insta-post__caption-wrapper {
  padding: 0 16px;
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 12px;
}

.insta-post__caption-wrapper .insta-post__username {
  margin-inline-end: 6px;
}

.insta-post__text {
  color: var(--text-secondary);
}

/* --- Shop Button --- */
.insta-post__shop {
  padding: 0 16px 16px;
}

.insta-post__shop .btn {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-md);
  font-weight: 700;
  padding: 10px;
  font-size: 0.95rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  color: var(--primary-contrast);
  border: none;
}

.insta-post__shop .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--primary-color) 40%, transparent);
}

/* Skeleton Loading */
.insta-post.skeleton {
  pointer-events: none;
}
.insta-post.skeleton .insta-post__image {
  background: var(--bg-surface-2);
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}
