/**
 * Account Components CSS
 * Styles for account cards, lists, grids, and related components
 */

/* =========================
   ACCOUNT CARD (Grid Layout)
   ========================= */
.accounts-grid-container {
    width: 100%;
}

.accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

@media (max-width: 640px) {
    .accounts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

.account-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}

.account-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.account-card-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 0.75rem;
    border: 2px solid var(--border-color);
}

.account-card-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-card-username {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-card-mutual {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-bottom: 0.75rem;
}

.account-card-follow-btn {
    width: 100%;
    padding: 0.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.account-card-follow-btn:hover {
    opacity: 0.9;
}

.account-card-follow-btn.following {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

/* =========================
   ACCOUNT LIST (List Layout)
   ========================= */
.accounts-list-container {
    width: 100%;
}

.account-list-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 0.5rem;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.15s;
    text-decoration: none;
    color: inherit;
}

.account-list-item:hover {
    background: var(--bg-secondary);
}

.account-list-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.account-list-info {
    flex: 1;
    min-width: 0;
}

.account-list-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.125rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.account-list-username {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.account-list-meta {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

/* =========================
   FOLLOW BUTTONS
   ========================= */
.btn-follow,
.follow-account {
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-follow:hover,
.follow-account:hover {
    opacity: 0.9;
}

.btn-following,
.follow-account.following {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-following:hover,
.follow-account.following:hover {
    background: var(--bg-hover);
    border-color: var(--text-tertiary);
}

/* =========================
   VERIFIED BADGE
   ========================= */
.verified-badge {
    color: var(--primary);
    font-size: 0.875rem;
}

/* =========================
   SKELETON LOADERS
   ========================= */
.skeleton-account-card {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 12px;
    height: 200px;
}

.skeleton-account-list {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 0.5rem;
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-text-block {
    flex: 1;
}

.skeleton-line {
    height: 12px;
    margin-bottom: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-line:last-child {
    width: 60%;
    margin-bottom: 0;
}

@media (prefers-color-scheme: dark) {
    .skeleton-account-card,
    .skeleton-avatar,
    .skeleton-line {
        background: linear-gradient(90deg, #2a2a2a 25%, #333333 50%, #2a2a2a 75%);
        background-size: 200% 100%;
    }
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* =========================
   EMPTY STATES
   ========================= */
.empty-accounts {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.empty-accounts i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-accounts p {
    font-size: 0.9375rem;
    margin: 0;
}

/* =========================
   SECTION HEADERS
   ========================= */
.people-may-know-section,
.who-to-follow-section,
.suggested-section {
    padding: 1.5rem 1rem;
    background: var(--bg-primary);
    border-top: 8px solid var(--bg-secondary);
    margin-top: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.see-all-link {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.see-all-link:hover {
    text-decoration: underline;
}
