/* ZSearch Page Styles */
.search-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.search-header {
    text-align: center;
    margin-bottom: 30px;
}

.search-header h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.search-form-main {
    margin: 20px 0;
}

.search-input-container {
    display: flex;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    font-size: 1.1em;
    border: 2px solid #ddd;
    border-radius: 25px;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-btn {
    padding: 15px 40px;
    font-size: 1.1em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Version Toggle */
.version-toggle {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
}

.version-btn {
    padding: 15px 30px;
    border: 2px solid #ddd;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1em;
    min-width: 180px;
}

.version-btn small {
    display: block;
    font-size: 0.85em;
    color: #666;
    margin-top: 5px;
}

.version-btn:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

margin: 30px 0;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filters-panel h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.filter-item {
    display: flex;
    flex-direction: column;
}

.filter-item label {
    font-weight: bold;
    margin-bottom: 8px;
    color: #555;
    font-size: 0.95em;
}

.filter-item input[type="text"],
.filter-item input[type="date"],
.filter-item select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.filter-item input:focus,
.filter-item select:focus {
    outline: none;
    border-color: #667eea;
}

.filter-item input[type="range"] {
    width: 100%;
    margin-top: 5px;
}

.filter-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.apply-filters-btn,
.reset-filters-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.apply-filters-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.apply-filters-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.reset-filters-btn {
    background: #f0f0f0;
    color: #333;
}

.reset-filters-btn:hover {
    background: #e0e0e0;
}

/* Search Results */
.search-results {
    margin-top: 40px;
}

.search-results h2 {
    margin-bottom: 30px;
    color: #333;
}

.search-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.search-posts,
.search-users {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-posts h3,
.search-users h3 {
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.user-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.user-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.user-item:hover {
    background-color: #f5f5f5;
}

.user-icon-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-item a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.user-item a:hover {
    text-decoration: underline;
}

.no-results {
    text-align: center;
    color: #999;
    padding: 40px 20px;
    font-size: 1.1em;
}

.search-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 1.2em;
}

/* Dark Mode */
html.dark-mode .search-input,
html.dark-mode .filter-item input,
html.dark-mode .filter-item select {
    background-color: #2c2c2c;
    border-color: #444;
    color: #e0e0e0;
}

html.dark-mode .version-btn {
    background-color: #2c2c2c;
    border-color: #444;
    color: #e0e0e0;
}

html.dark-mode .version-btn small {
    color: #999;
}

html.dark-mode .version-btn.active small {
    color: rgba(255, 255, 255, 0.9);
}

html.dark-mode .filters-panel,
html.dark-mode .search-posts,
html.dark-mode .search-users {
    background-color: #1e1e1e;
    border-color: #444;
}

html.dark-mode .filters-panel h3,
html.dark-mode .search-posts h3,
html.dark-mode .search-users h3,
html.dark-mode .filter-item label {
    color: #e0e0e0;
}

html.dark-mode .user-item:hover {
    background-color: #2c2c2c;
}

html.dark-mode .reset-filters-btn {
    background-color: #2c2c2c;
    color: #e0e0e0;
}

html.dark-mode .reset-filters-btn:hover {
    background-color: #3a3a3a;
}

/* Responsive */
@media (max-width: 768px) {
    .search-layout {
        grid-template-columns: 1fr;
    }

    .filter-grid {
        grid-template-columns: 1fr;
    }

    .version-toggle {
        flex-direction: column;
    }

    .version-btn {
        width: 100%;
    }

    .search-input-container {
        flex-direction: column;
    }

    .search-btn {
        width: 100%;
    }
}