/* Search Results Page Styles */

/* Main search results container */
.search-results-container {
    padding: 30px 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* Search header */
.search-header {
    margin-bottom: 30px;
    padding: 0 20px;
}

.search-header h1 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.search-query {
    color: #e74c3c;
    font-weight: bold;
}

.results-count {
    font-size: 1rem;
    color: #7f8c8d;
    font-style: italic;
}

/* Results grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 0 20px;
}

/* Individual tool card */
.tool-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.tool-category {
    display: inline-block;
    background: #f1f2f6;
    color: #7f8c8d;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.tool-card h3 {
    font-size: 1.25rem;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.4;
}

.tool-card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.tool-link {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.3s;
}

.tool-link:hover {
    background: #2980b9;
}

/* Highlight matching text */
.highlight {
    background-color: #fffde7;
    padding: 0 2px;
    font-weight: bold;
    border-radius: 2px;
    color: #e74c3c;
}

/* No results message */
.no-results {
    text-align: center;
    padding: 50px 20px;
    background: #f9f9f9;
    border-radius: 8px;
    margin: 30px 20px;
    border: 1px dashed #ddd;
}

.no-results p {
    color: #555;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.no-results a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.no-results a:hover {
    text-decoration: underline;
}

/* Loading state */
.loading {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
    font-style: italic;
}

/* Error state */
.error-message {
    text-align: center;
    padding: 40px;
    background: #ffebee;
    border-radius: 8px;
    margin: 0 20px;
    border-left: 4px solid #e74c3c;
}

.error-message p {
    color: #c0392b;
    margin-bottom: 20px;
}

.error-message button {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.error-message button:hover {
    background: #c0392b;
}

/* Search suggestions */
.search-suggestions {
    display: none;
    position: absolute;
    background: white;
    width: calc(100% - 40px);
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 4px 4px;
    z-index: 100;
}

.search-suggestion {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.search-suggestion:hover {
    background: #f5f5f5;
}

/* Responsive design */
@media (max-width: 768px) {
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .search-header h1 {
        font-size: 1.5rem;
    }
    
    .tool-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .search-header, .results-grid {
        padding: 0 15px;
    }
    
    .tool-card h3 {
        font-size: 1.1rem;
    }
}