/* Search Page Styles */
.search-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.search-header {
    text-align: center;
    margin-bottom: 40px;
}

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

.search-query {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 5px;
}

.search-count {
    font-size: 0.9rem;
    color: #999;
}

/* Search Form */
.search-form-container {
    max-width: 600px;
    margin: 0 auto 50px;
}

.search-form-main {
    display: flex;
    gap: 0;
    border: 2px solid #f0f0f0;
    border-radius: 0;
    overflow: hidden;
    background: #fff;
}

.search-input-main {
    flex: 1;
    padding: 15px 20px;
    border: none;
    outline: none;
    font-size: 1rem;
    background: transparent;
}

.search-submit-main {
    padding: 15px 25px;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: background 0.2s;
}

.search-submit-main:hover {
    background: #333;
}

/* Search Results */
.search-results {
    margin-bottom: 40px;
}

.search-result-item {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}

.search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 2rem;
}

.search-result-content h2 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.3;
}

.search-result-content h2 a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s;
}

.search-result-content h2 a:hover {
    opacity: 0.7;
}

.search-result-date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.search-result-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.search-result-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.category-tag {
    display: inline-block;
    padding: 4px 10px;
    background: #f0f0f0;
    color: #666;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Pagination */
.search-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    border-top: 1px solid #f0f0f0;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #000;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s;
}

.pagination-link:hover {
    background: #333;
}

.pagination-info {
    font-size: 0.9rem;
    color: #666;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results-icon {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 20px;
}

.no-results h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.no-results p {
    color: #666;
    margin-bottom: 30px;
}

.search-suggestions {
    max-width: 400px;
    margin: 0 auto;
    text-align: left;
}

.search-suggestions h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 15px;
}

.search-suggestions ul {
    list-style: none;
    padding: 0;
}

.search-suggestions li {
    padding: 5px 0;
    color: #666;
    position: relative;
    padding-left: 20px;
}

.search-suggestions li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #ccc;
}

.search-suggestions a {
    color: #000;
    text-decoration: none;
}

.search-suggestions a:hover {
    text-decoration: underline;
}

/* Search Welcome */
.search-welcome {
    text-align: center;
    padding: 60px 20px;
}

.search-welcome-icon {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 20px;
}

.search-welcome h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 10px;
}

.search-welcome p {
    color: #666;
    margin-bottom: 40px;
}

.search-categories h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 20px;
}

.category-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.category-link {
    padding: 10px 20px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.category-link:hover {
    background: #000;
    color: #fff;
}

/* Dark Mode Support for Search */
body.dark-mode .search-header h1 {
    color: #fff;
}

body.dark-mode .search-query {
    color: #ccc;
}

body.dark-mode .search-count {
    color: #999;
}

body.dark-mode .search-form-main {
    border-color: #333;
    background: #111;
}

body.dark-mode .search-input-main {
    color: #fff;
    background: transparent;
}

body.dark-mode .search-input-main::placeholder {
    color: #666;
}

body.dark-mode .search-submit-main {
    background: #fff;
    color: #000;
}

body.dark-mode .search-submit-main:hover {
    background: #ddd;
}

body.dark-mode .search-result-item {
    border-bottom-color: #333;
}

body.dark-mode .search-result-date,
body.dark-mode .search-result-excerpt {
    color: #ccc;
}

body.dark-mode .category-tag {
    background: #333;
    color: #ccc;
}

body.dark-mode .pagination-link {
    background: #fff;
    color: #000;
}

body.dark-mode .pagination-link:hover {
    background: #ddd;
}

body.dark-mode .pagination-info {
    color: #ccc;
}

body.dark-mode .no-results h2,
body.dark-mode .search-welcome h2,
body.dark-mode .search-suggestions h3,
body.dark-mode .search-categories h3 {
    color: #fff;
}

body.dark-mode .no-results p,
body.dark-mode .search-welcome p {
    color: #ccc;
}

body.dark-mode .category-link {
    background: #333;
    color: #ccc;
}

body.dark-mode .category-link:hover {
    background: #fff;
    color: #000;
}

/* Responsive Search Styles */
@media (max-width: 768px) {
    .search-container {
        padding: 30px 15px;
    }
    
    .search-header h1 {
        font-size: 1.5rem;
    }
    
    .search-result-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .search-result-image {
        height: 180px;
    }
    
    .search-pagination {
        flex-direction: column;
        gap: 15px;
    }
    
    .category-links {
        flex-direction: column;
        align-items: center;
    }
    
    .category-link {
        width: 200px;
        text-align: center;
    }
} 