/* Social Directory Styles */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}

.directory-container {
    max-width: 1200px;
    margin: 20px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    padding: 20px;
}

.directory-container h1 {
    color: #2a7f40;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.2rem;
}

/* Filter Panel Styles */
.filter-panel {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-panel h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.filter-group {
    margin-bottom: 15px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.filter-group h4 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    color: #555;
}

.filter-group select,
.filter-group input[type="text"] {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    background-color: white;
    transition: border-color 0.3s;
}

.filter-group select:focus,
.filter-group input[type="text"]:focus {
    outline: none;
    border-color: #2a7f40;
    box-shadow: 0 0 0 2px rgba(42, 127, 64, 0.1);
}

.filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.btn {
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: #2a7f40;
    color: white;
    border-color: #2a7f40;
}

.btn-primary:hover {
    background-color: #1e6a34;
    border-color: #1a5f2e;
}

.btn-outline {
    background-color: transparent;
    color: #2a7f40;
    border-color: #2a7f40;
}

.btn-outline:hover {
    background-color: #2a7f40;
    color: white;
}

/* Search Box */
.search-box {
    position: relative;
    margin-bottom: 20px;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.search-box input[type="text"] {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.search-box input[type="text"]:focus {
    outline: none;
    border-color: #2a7f40;
    box-shadow: 0 0 0 2px rgba(42, 127, 64, 0.1);
}

/* User Grid Styles */
.user-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.user-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.user-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.user-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid #2a7f40;
    float: left;
}

.user-info {
    overflow: hidden;
}

.user-name {
    font-weight: bold;
    color: #2a7f40;
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

.user-location {
    color: #666;
    font-size: 0.9em;
    margin: 0 0 5px 0;
}

.user-profiles {
    font-size: 0.8em;
    color: #777;
    clear: both;
    padding-top: 10px;
}

.view-profile {
    display: inline-block;
    margin-top: 10px;
    color: #2a7f40;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s;
}

.view-profile:hover {
    color: #1e6a34;
    text-decoration: underline;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 40px 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin: 30px 0;
}

.no-results h3 {
    margin-top: 0;
    color: #333;
}

.no-results p {
    margin-bottom: 20px;
    color: #6c757d;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .filter-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-actions {
        justify-content: center;
    }
    
    .directory-container {
        padding: 15px;
    }
    
    .user-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .directory-container h1 {
        font-size: 1.8rem;
    }
    
    .filter-panel h3 {
        font-size: 1.3rem;
    }
    
    .user-card {
        padding: 10px;
    }
    
    .user-image {
        width: 60px;
        height: 60px;
    }
}