.friends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1rem;
    width: 100%;
}

#friends-list {
    width: 100%;
    max-width: var(--content-width);
}

.friend-cards-container {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin: 1rem 0;
    width: 100%;
}

.friend-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    min-height: 200px;
}

.friend-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
}

.friend-card .this-view-card-title {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.friend-card .this-view-actions-grid {
    width: calc(100% - 2rem);
    position: absolute;
    bottom: 1rem;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.friend-card .this-view-action-button {
    padding: 0.75rem;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.friend-card .this-view-action-button:hover {
    transform: translateY(-2px);
}

.list-navigation-sort {
    margin-top: 1rem;
}

.this-view-card-title a, a:hover, a:active, a:visited {
    text-decoration: none;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .friends-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.list-navigation-buttons.horizontal {
    display: flex;
    gap: 1rem;
    flex-direction: row;
}