/**
 * Community Search Plugin Styles
 * Version: 1.0.0
 */

.community-search-container {
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.community-search-header {
    background: #7bbd53;
    padding: 20px;
    color: #ffffff;
}

.community-search-header h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    color: #ffffff;
}

.community-search-box {
    padding: 20px;
    border-bottom: 2px solid #7bbd53;
}

.community-search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.community-search-input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid #595959;
    border-radius: 6px;
    font-size: 16px;
    color: #595959;
    outline: none;
    transition: border-color 0.3s;
}

.community-search-input:focus {
    border-color: #7bbd53;
}

.community-search-input::placeholder {
    color: #999;
}

.community-search-icon {
    position: absolute;
    right: 15px;
    color: #595959;
    pointer-events: none;
}

.community-results-container {
    max-height: 400px;
    overflow-y: auto;
}

.community-result-item {
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    transition: background-color 0.2s;
    color: #595959;
    text-decoration: none;
    display: block;
}

.community-result-item:hover {
    background-color: #f0f9ec;
}

.community-result-item:last-child {
    border-bottom: none;
}

.community-result-title {
    font-size: 16px;
    font-weight: 500;
    color: #595959;
    margin-bottom: 4px;
}

.community-result-path {
    font-size: 12px;
    color: #7bbd53;
}

.community-no-results {
    padding: 40px 20px;
    text-align: center;
    color: #999;
}

.community-results-count {
    padding: 10px 20px;
    background: #f9f9f9;
    color: #595959;
    font-size: 14px;
    border-bottom: 1px solid #e0e0e0;
}

.community-loading {
    padding: 20px;
    text-align: center;
    color: #595959;
}

.community-highlight {
    background-color: #7bbd53;
    color: #ffffff;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .community-search-container {
        border-radius: 0;
        margin: 0;
    }
    
    .community-search-header h2 {
        font-size: 20px;
    }
    
    .community-search-input {
        font-size: 14px;
    }
}