/**
 * ============================================
 * STYLE DLA STRONY WYSZUKIWANIA
 * ============================================
 * Dołącz do głównego wyglad.css lub użyj osobno
 */

/* Hero Search */
.search-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 20px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 40px;
}

.search-hero h1 {
    margin: 0 0 10px 0;
    font-size: 42px;
}

.search-subtitle {
    margin: 0 0 30px 0;
    font-size: 18px;
    opacity: 0.9;
}

/* Formularz wyszukiwania */
.search-form {
    max-width: 700px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    background: white;
}

.search-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}

.search-button {
    padding: 15px 30px;
    background: #333;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.search-button:hover {
    background: #000;
}

.search-filters {
    display: flex;
    justify-content: center;
}

.filter-select {
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    background: rgba(255,255,255,0.9);
    color: #333;
    font-size: 14px;
}

/* Sekcja wyników */
.search-results-section {
    margin-top: 40px;
}

.results-header {
    margin-bottom: 30px;
}

.results-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    color: #333;
}

.results-count {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* Lista wyników */
.results-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.result-item {
    display: flex;
    gap: 20px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s;
}

.result-item:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.result-content {
    flex: 1;
}

.result-title {
    margin: 0 0 12px 0;
    font-size: 24px;
    line-height: 1.3;
}

.result-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.result-title a:hover {
    color: #667eea;
}

.result-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    font-size: 14px;
    color: #666;
}

.result-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.result-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s;
}

.result-link:hover {
    color: #5568d3;
}

.result-image {
    width: 200px;
    flex-shrink: 0;
}

.result-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

/* Podświetlenie */
mark {
    background: #fff59d;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

/* Brak wyników */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
}

.no-results-icon {
    font-size: 72px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.no-results h3 {
    margin: 0 0 15px 0;
    font-size: 24px;
    color: #333;
}

.no-results p {
    color: #666;
    font-size: 16px;
    margin: 0 0 30px 0;
}

.search-suggestions {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.search-suggestions h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
}

.search-suggestions ul {
    margin: 0;
    padding-left: 20px;
}

.search-suggestions li {
    margin-bottom: 8px;
    color: #555;
}

/* Popularne tematy */
.popular-topics {
    margin-top: 40px;
    background: white;
    padding: 40px;
    border-radius: 12px;
}

.popular-topics h2 {
    margin: 0 0 25px 0;
    font-size: 28px;
    text-align: center;
}

.topics-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.topic-tag {
    display: inline-block;
    padding: 10px 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.topic-tag:hover {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

/* Stronicowanie */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding: 20px;
}

.pagination-link {
    padding: 10px 20px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
}

.pagination-link:hover {
    border-color: #667eea;
    color: #667eea;
}

.pagination-info {
    color: #666;
    font-size: 14px;
}

/* Responsywność */
@media (max-width: 768px) {
    .search-hero {
        padding: 40px 15px;
    }
    
    .search-hero h1 {
        font-size: 32px;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .search-button {
        width: 100%;
    }
    
    .result-item {
        flex-direction: column;
    }
    
    .result-image {
        width: 100%;
    }
    
    .result-image img {
        height: 200px;
    }
    
    .result-title {
        font-size: 20px;
    }
    
    .result-meta {
        font-size: 13px;
    }
    
    .pagination {
        flex-direction: column;
        gap: 10px;
    }
    
    .pagination-link {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .search-hero h1 {
        font-size: 28px;
    }
    
    .result-title {
        font-size: 18px;
    }
}
