
/* --- Find People Page Main Layout --- */
.find-people-main {
    padding: 8rem 2rem 2rem; /* Padding to clear header */
    max-width: 1200px;
    margin: 0 auto;
}

.page-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--secondary-text);
    text-align: center;
    margin-bottom: 2rem;
}

/* --- User Search Bar --- */
.user-search-bar {
    position: relative;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}
.user-search-bar i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-text);
}
.user-search-bar i.clear-search {
    left: auto;
    right: 15px;
    cursor: pointer;
}
.user-search-bar input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    font-size: 1rem;
    background-color: var(--secondary-bg);
    border: 1px solid var(--lighter-bg);
    border-radius: 8px;
    color: var(--primary-text);
}

/* --- User Section --- */
.user-section {
    margin-bottom: 3rem;
}
.user-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--lighter-bg);
    padding-bottom: 0.5rem;
}

/* --- User Grid --- */
.user-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* --- User Card --- */
.user-card {
    background-color: var(--secondary-bg);
    border: 1px solid var(--lighter-bg);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.user-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.user-card-header img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}
.user-card-header h3 {
    margin: 0;
    font-size: 1.2rem;
}
.user-card-header h3 a {
    color: var(--primary-text);
    text-decoration: none;
}
.user-card-header h3 a:hover {
    text-decoration: underline;
}
.user-card-header .username {
    color: var(--secondary-text);
    font-size: 0.9rem;
}

.user-bio {
    color: var(--secondary-text);
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1; /* Allows bio to take up space and push button to bottom */
}

.user-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.user-genres span {
    background-color: var(--lighter-bg);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--gray-text);
}

.user-follow-unfollow {
    border: none;
    padding: 0.7rem;
    width: 100%;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.user-follow-unfollow i {
    margin-right: 0.5rem;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .find-people-main {
        padding: 10rem 1rem 1rem;
    }
    .page-title {
        font-size: 2rem;
    }
    .user-grid {
        grid-template-columns: 1fr;
    }
}