/* Friends Management Page */

.friends-page {
    display: flex;
    height: 100vh;
    background: var(--bg-dark);
}

.friends-sidebar {
    width: 350px;
    background: rgba(42, 42, 42, 0.8);
    backdrop-filter: blur(10px);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.friends-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.friends-header h2 {
    flex: 1;
    font-size: 1.25rem;
    font-weight: 600;
}

.friends-tabs {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--border);
}

.friends-tab {
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.friends-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.friends-tab.active {
    background: rgba(102, 126, 234, 0.15);
    color: var(--primary);
}

.badge {
    background: var(--primary);
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
}

.pending-request-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
}

.request-actions {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.btn-accept,
.btn-decline {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.2s;
}

.btn-accept {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
}

.btn-accept:hover {
    background: rgba(74, 222, 128, 0.3);
}

.btn-decline {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.btn-decline:hover {
    background: rgba(239, 68, 68, 0.3);
}

.friends-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
}

.friend-item-page {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: var(--radius-md);
    margin-bottom: 0.25rem;
}

.friend-item-page:hover {
    background: rgba(255, 255, 255, 0.05);
}

.friend-item-page.active {
    background: rgba(102, 126, 234, 0.2);
}

.friend-detail {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.friend-profile {
    width: 100%;
    max-width: 500px;
}

.friend-profile-header {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

.friend-profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--primary);
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.friend-profile-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.friend-tag {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.friend-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
}

.friend-profile-bio {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

.friend-profile-bio p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.friend-profile-actions {
    display: flex;
    gap: 1rem;
}

.friend-profile-actions button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
}

.btn-icon {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    color: var(--primary);
}


/* Mobile Responsive */
@media (max-width: 768px) {
    .friends-page-container {
        padding: 0;
    }

    .friends-page-header {
        padding: 1rem;
    }

    .friends-page-header h1 {
        font-size: 1.5rem;
    }

    .friends-page-content {
        flex-direction: column;
    }

    .friends-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
        max-height: 40vh;
    }

    .friends-main {
        width: 100%;
    }

    .friend-detail-card {
        padding: 1.25rem;
    }

    .friend-profile-header {
        flex-direction: column;
        text-align: center;
    }

    .friend-profile-avatar {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

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

    .friend-profile-actions button {
        width: 100%;
    }
}
