/*
 * Theme: theme-Serenity
 * Author: Serenity
 * Build: 2026-06-03 10:28:07
 * Fingerprint: 18f8d0015be24d2b
 * Copyright (c) 2026 Serenity. All rights reserved.
 */

.friends-circle-page {
  padding-top: calc(var(--header-height) + var(--space-8));
  padding-bottom: var(--space-8);
}

.friends-circle-header {
  text-align: center;
  padding-bottom: var(--space-6);
  margin-bottom: var(--space-6);
}

/* 标题样式已提取到 base.css */

.friends-circle-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.friend-post-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  min-height: 100px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--duration-normal);
  overflow: hidden;
}

[data-theme="light"] .friend-post-card {
  background: rgba(0, 0, 0, 0.01);
}

.friend-post-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .friend-post-card:hover {
  background: rgba(0, 0, 0, 0.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.friend-post-author {
  flex-shrink: 0;
  width: 200px;
}

.friend-author-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: inherit;
}

.friend-author-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--color-border);
  transition: all var(--duration-fast);
}

.friend-post-card:hover .friend-author-avatar {
  border-color: var(--color-accent);
  transform: scale(1.05);
}

.friend-author-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.friend-author-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--duration-fast);
}

.friend-author-link:hover .friend-author-name {
  color: var(--color-accent);
}

.friend-post-time {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--color-text-muted);
}

.friend-post-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.friend-post-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--duration-fast);
  margin: 0;
}

.friend-post-card:hover .friend-post-title {
  color: var(--color-accent);
}

.friend-post-desc {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.friend-post-arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast);
  text-decoration: none;
}

.friend-post-arrow svg {
  width: 20px;
  height: 20px;
  color: white;
}

.friend-post-card:hover .friend-post-arrow {
  background: var(--color-accent-secondary);
  transform: translateX(4px);
}

.friends-circle-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-10) 0;
  color: var(--color-text-muted);
}

.friends-circle-empty svg {
  width: 64px;
  height: 64px;
  margin-bottom: var(--space-3);
  opacity: 0.5;
}

.friends-circle-empty p {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.friends-circle-empty span {
  font-size: 0.9rem;
}

.friends-circle-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-6);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--color-border);
}

.pagination-info {
  font-size: 13px;
  color: var(--color-text-muted);
}

.pagination-info strong {
  color: var(--color-accent);
  font-weight: 600;
  font-family: var(--font-mono);
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.pagination-current {
  font-size: 13px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  min-width: 60px;
  text-align: center;
}

.pagination-arrow {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration-fast);
  text-decoration: none;
  cursor: pointer;
}

.pagination-arrow svg {
  width: 18px;
  height: 18px;
  color: white;
}

.pagination-arrow:hover {
  background: var(--color-accent-secondary);
  transform: scale(1.1);
}

.pagination-arrow-disabled {
  background: var(--color-bg-mute);
  cursor: not-allowed;
  opacity: 0.5;
}

.pagination-arrow-disabled svg {
  color: var(--color-text-muted);
}

.pagination-arrow-disabled:hover {
  transform: none;
}

@media (max-width: 1024px) {
  .friend-post-author {
    width: 180px;
  }
}

@media (max-width: 768px) {
  .friends-circle-page {
    padding-top: calc(var(--header-height) + var(--space-6));
  }
  
  .friends-circle-title {
    font-size: 1.4rem;
  }
  
  .friends-circle-subtitle {
    font-size: 12px;
  }
  
  .friend-post-card {
    flex-direction: row;
    align-items: center;
    min-height: auto;
    padding: var(--space-2) var(--space-3);
    gap: var(--space-2);
  }
  
  .friend-post-author {
    width: auto;
    flex-shrink: 0;
  }

  .friend-author-link {
    gap: var(--space-2);
  }

  .friend-author-avatar {
    width: 32px;
    height: 32px;
    border-width: 1px;
  }

  .friend-author-name {
    font-size: 11px;
    max-width: 60px;
  }

  .friend-post-time {
    font-size: 9px;
  }
  
  .friend-post-content {
    flex: 1;
    min-width: 0;
  }
  
  .friend-post-title {
    font-size: 12px;
  }
  
  .friend-post-desc {
    font-size: 10px;
  }
  
  .friend-post-arrow {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    position: static;
    transform: none;
  }

  .friend-post-arrow svg {
    width: 14px;
    height: 14px;
  }
  
  .friend-post-card:hover .friend-post-arrow {
    transform: translateX(2px);
  }
}

@media (max-width: 640px) {
  .friends-circle-pagination {
    flex-direction: column;
    gap: var(--space-3);
    align-items: center;
  }
  
  .pagination-info {
    order: 2;
  }
  
  .pagination-controls {
    order: 1;
  }
}
