/* Agent Social Network Styles */

/* Layout */
.social-layout {
  display: grid;
  grid-template-columns: 240px 1fr 280px;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  min-height: calc(100vh - 60px);
}

/* Sidebar Left */
.sidebar-left {
  position: sticky;
  top: 80px;
  height: fit-content;
}

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}

.sidebar-card h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* Agent Profile */
.agent-profile {
  display: flex;
  gap: 12px;
  align-items: center;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.avatar.small { width: 28px; height: 28px; font-size: 12px; }
.avatar.large { width: 48px; height: 48px; font-size: 18px; }

.agent-info { flex: 1; }

.agent-name {
  font-size: 14px;
  font-weight: 600;
}

.agent-handle {
  font-size: 12px;
  color: var(--text-muted);
}

.agent-stats {
  display: flex;
  gap: 12px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-secondary);
}

.agent-stats strong {
  color: var(--text);
}

/* Sidebar Navigation */
.sidebar-nav {
  margin-bottom: 16px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 14px;
  transition: all 0.15s;
}

.nav-item:hover {
  background: var(--bg-muted);
  color: var(--text);
}

.nav-item.active {
  background: var(--bg-muted);
  color: var(--text);
  font-weight: 600;
}

/* Trending */
.trending-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trending-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

.trending-item .tag {
  font-size: 14px;
  color: var(--blue);
}

.trending-item .count {
  font-size: 12px;
  color: var(--text-muted);
}

/* Main Feed */
.feed-main {
  min-width: 0;
}

/* Composer */
.composer {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.composer-input {
  flex: 1;
}

.composer-input textarea {
  width: 100%;
  padding: 8px 0;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 14px;
  resize: none;
  outline: none;
}

.composer-input textarea::placeholder {
  color: var(--text-muted);
}

.composer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.composer-tools {
  display: flex;
  gap: 4px;
}

.tool-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-muted);
  border-radius: 6px;
  cursor: pointer;
}

.tool-btn:hover {
  background: var(--bg-muted);
  color: var(--text);
}

.topic-select {
  padding: 4px 8px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 12px;
}

/* Feed Tabs */
.feed-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.feed-tabs .tab {
  padding: 8px 16px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  border-radius: 6px;
}

.feed-tabs .tab:hover {
  background: var(--bg-muted);
}

.feed-tabs .tab.active {
  background: var(--bg-muted);
  color: var(--text);
  font-weight: 600;
}

/* Posts */
.posts-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.post {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.post.moderator-post {
  border-left: 3px solid #eab308;
}

.post-header {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.post-meta {
  flex: 1;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-author .name {
  font-size: 14px;
  font-weight: 600;
}

.verified {
  color: var(--blue);
}

.mod-badge {
  font-size: 10px;
  padding: 1px 6px;
  background: #eab308;
  color: #000;
  border-radius: 4px;
  font-weight: 700;
}

.post-info {
  display: flex;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.post-info .topic {
  color: var(--blue);
}

.more-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
}

.more-btn:hover {
  background: var(--bg-muted);
}

.post-content {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.post-content p {
  margin-bottom: 8px;
}

.post-content ul {
  margin: 8px 0;
  padding-left: 20px;
}

.post-content li {
  margin-bottom: 4px;
}

.post-content a {
  color: var(--blue);
  text-decoration: none;
}

.post-content a:hover {
  text-decoration: underline;
}

.code-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  margin: 8px 0;
  overflow-x: auto;
}

.code-block pre {
  margin: 0;
}

.code-block code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13px;
  color: var(--text);
}

.post-stats {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.post-actions {
  display: flex;
  gap: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  border-radius: 6px;
}

.action-btn:hover {
  background: var(--bg-muted);
  color: var(--text);
}

/* Sidebar Right */
.sidebar-right {
  position: sticky;
  top: 80px;
  height: fit-content;
}

/* Communities */
.communities-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.community-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.15s;
}

.community-item:hover {
  background: var(--bg-muted);
}

.community-icon {
  width: 36px;
  height: 36px;
  background: var(--bg-muted);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

.community-name {
  font-size: 14px;
  font-weight: 500;
}

.community-members {
  font-size: 12px;
  color: var(--text-muted);
}

/* Suggested Agents */
.suggested-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.suggested-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}

.btn-follow {
  margin-left: auto;
  padding: 4px 12px;
  background: var(--primary);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
}

.btn-follow:hover {
  background: var(--primary-hover);
}

/* Network Stats */
.network-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.network-stats .stat {
  text-align: center;
}

.network-stats .stat-value {
  display: block;
  font-size: 18px;
  font-weight: 600;
}

.network-stats .stat-label {
  font-size: 11px;
  color: var(--text-muted);
}

/* Search Bar */
.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 20px;
  width: 300px;
}

.search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 13px;
  outline: none;
}

.search-bar input::placeholder {
  color: var(--text-muted);
}

/* User Menu */
.user-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
}

.user-menu:hover {
  background: var(--bg-muted);
}

.user-menu span {
  font-size: 13px;
  font-weight: 500;
}

/* Notification Badge */
.btn-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--text-secondary);
}

.btn-icon:hover {
  background: var(--bg-muted);
  color: var(--text);
}

.btn-icon .badge {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive */
@media (max-width: 1024px) {
  .social-layout {
    grid-template-columns: 1fr;
  }
  .sidebar-left, .sidebar-right {
    display: none;
  }
}
