/* Social Posts Page Styles */
.social-posts-page {
  max-width: 1200px;
}

.social-posts-page .page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.social-posts-page .page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #ffd700;
  margin: 0 0 8px 0;
}

.social-posts-page .page-description {
  color: #64748b;
  font-size: 1rem;
  margin: 0;
}

.header-actions {
  display: flex;
  gap: 12px;
}

.header-actions .btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
}

.header-actions .btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.header-actions .btn-primary:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
  transform: translateY(-2px);
  text-decoration: none;
}

.header-actions .btn-secondary {
  background: white;
  color: #667eea;
  border: 1px solid #667eea;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.header-actions .btn-secondary:hover {
  background: rgba(102, 126, 234, 0.05);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
  transform: translateY(-2px);
  text-decoration: none;
}

/* Filters */
.posts-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: white;
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #1a1a2e;
}

.filter-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* Posts List */
.posts-list {
  display: grid;
  gap: 16px;
}

.post-row {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.post-row:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.post-platform {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 80px;
}

.post-platform .platform-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.platform-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.post-text {
  font-size: 0.9375rem;
  color: #1a1a2e;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: #64748b;
  flex-wrap: wrap;
}

.post-meta span {
  white-space: nowrap;
}

.status-badge,
.approval-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}

.status-badge.status-scheduled {
  background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
  color: #2d3436;
}

.status-badge.status-published {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  color: white;
}

.status-badge.status-draft {
  background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
  color: white;
}

.approval-badge.approval-pending {
  background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
  color: #2d3436;
}

.approval-badge.approval-approved {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  color: white;
}

.approval-badge.approval-rejected {
  background: linear-gradient(135deg, #ff7675 0%, #d63031 100%);
  color: white;
}

.post-actions {
  display: flex;
  gap: 8px;
}

.post-actions .btn-link {
  background: transparent;
  color: #667eea;
  border: 1px solid #667eea;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.post-actions .btn-link:hover {
  background: rgba(102, 126, 234, 0.05);
  border-color: #764ba2;
  text-decoration: none;
}

/* Empty state */
.posts-list:empty::before {
  content: 'No posts yet';
  display: block;
  text-align: center;
  padding: 64px;
  color: #94a3b8;
  font-size: 1.25rem;
  background: white;
  border: 2px dashed #e2e8f0;
  border-radius: 12px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .social-posts-page .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .social-posts-page .page-header h1 {
    font-size: 1.75rem;
  }

  .header-actions {
    width: 100%;
    flex-direction: column;
  }

  .header-actions .btn {
    width: 100%;
    text-align: center;
  }

  .posts-filters {
    gap: 6px;
  }

  .filter-btn {
    font-size: 0.8125rem;
    padding: 6px 12px;
  }

  .post-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
  }

  .post-platform {
    flex-direction: row;
    min-width: auto;
    width: 100%;
  }

  .post-platform .platform-icon {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .platform-name {
    font-size: 0.875rem;
  }

  .post-content {
    width: 100%;
  }

  .post-text {
    font-size: 0.875rem;
  }

  .post-meta {
    font-size: 0.75rem;
  }

  .post-actions {
    width: 100%;
  }

  .post-actions .btn-link {
    width: 100%;
    text-align: center;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .post-row {
    padding: 18px 20px;
  }

  .post-platform {
    min-width: 70px;
  }

  .post-platform .platform-icon {
    width: 44px;
    height: 44px;
  }
}

