/* ═══════════════════════════════════════════════════
   MOH — Feed Styles
   الخلاصة الرئيسية
   ═══════════════════════════════════════════════════ */

/* ─── Feed Header ─── */
.feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.feed-header__title {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--text-primary);
  margin: 0;
}

/* ─── Create Post Prompt ─── */
.create-prompt {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-4);
  box-shadow: var(--card-shadow);
  transition: all var(--transition-base);
  cursor: pointer;
  text-decoration: none;
}

.create-prompt:hover {
  box-shadow: var(--card-shadow-hover);
  border-color: var(--primary-200);
}

.create-prompt__input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-tertiary);
  border: none;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.create-prompt__input:hover {
  background: var(--bg-secondary);
}

.create-prompt__actions {
  display: flex;
  gap: var(--space-2);
}

.create-prompt__action {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  cursor: pointer;
  background: none;
  border: none;
  white-space: nowrap;
}

.create-prompt__action:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.create-prompt__action svg {
  width: 18px;
  height: 18px;
}

.create-prompt__action--job svg { color: var(--secondary-500); }
.create-prompt__action--seek svg { color: var(--accent-500); }

/* ─── Feed Tabs ─── */
.feed-tabs {
  display: flex;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: var(--space-1);
  box-shadow: var(--card-shadow);
  overflow-x: auto;
}

.feed-tab {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-tertiary);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  cursor: pointer;
  text-align: center;
  border: none;
  background: none;
  white-space: nowrap;
}

.feed-tab:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.feed-tab--active {
  color: #fff;
  background: var(--gradient-primary);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.feed-tab--active:hover {
  color: #fff;
}

/* ─── Quick Filters ─── */
.feed-filters {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  overflow-x: auto;
  padding-bottom: var(--space-1);
}

.feed-filter {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.feed-filter:hover {
  border-color: var(--primary-300);
  color: var(--primary-600);
}

.feed-filter--active {
  background: var(--primary-50);
  border-color: var(--primary-300);
  color: var(--primary-700);
}

[data-theme="dark"] .feed-filter--active {
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--primary-600);
  color: var(--primary-400);
}

.feed-filter svg {
  width: 14px;
  height: 14px;
}

/* ─── Posts List ─── */
.feed-posts {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* ─── Loading More ─── */
.feed-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
}

/* ─── End of Feed ─── */
.feed-end {
  text-align: center;
  padding: var(--space-8);
  color: var(--text-tertiary);
  font-size: var(--text-sm);
}

.feed-end__icon {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-2);
}

/* ─── Post Skeleton ─── */
.post-skeleton {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
}

.post-skeleton__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.post-skeleton__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.post-skeleton__info {
  flex: 1;
}

.post-skeleton__name {
  height: 14px;
  width: 120px;
  margin-bottom: var(--space-2);
}

.post-skeleton__meta {
  height: 10px;
  width: 80px;
}

.post-skeleton__body {
  margin-bottom: var(--space-4);
}

.post-skeleton__line {
  height: 12px;
  margin-bottom: var(--space-2);
}

.post-skeleton__line:nth-child(1) { width: 100%; }
.post-skeleton__line:nth-child(2) { width: 85%; }
.post-skeleton__line:nth-child(3) { width: 60%; }

.post-skeleton__tags {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.post-skeleton__tag {
  height: 24px;
  width: 60px;
  border-radius: var(--radius-full);
}

.post-skeleton__footer {
  display: flex;
  justify-content: space-between;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-light);
}

.post-skeleton__action {
  height: 20px;
  width: 50px;
}
