/* Search Page Styles */

.main-content {
    padding-top: 80px;
    min-height: 100vh;
    background: var(--bg-dark);
}

.page-header {
    text-align: center;
    padding: 4rem 0 3rem;
}

.page-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-red), var(--accent-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Search Wrapper */
.search-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 4rem;
}

/* Search Box */
.search-box {
    position: relative;
    margin-bottom: 3rem;
}

.search-box i.fa-search {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.25rem;
    pointer-events: none;
}

.search-box input {
    width: 100%;
    padding: 1.25rem 4rem 1.25rem 4rem;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 16px;
    color: var(--text-primary);
    font-size: 1.125rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px rgba(139, 0, 0, 0.1);
}

.search-box input::placeholder {
    color: var(--text-secondary);
}

.clear-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(139, 0, 0, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--primary-red);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clear-btn:hover {
    background: var(--primary-red);
    color: white;
}

/* Search Results */
.search-results {
    min-height: 300px;
}

.search-hint {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.search-hint i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.search-hint p {
    font-size: 1.125rem;
}

/* Results Header */
.results-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--glass-border);
}

.results-count {
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 600;
}

.results-count span {
    color: var(--primary-red);
}

/* Result Item */
.result-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.result-item:hover {
    transform: translateX(8px);
    border-color: var(--primary-red);
}

.result-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.result-type {
    padding: 0.375rem 0.875rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-type.blog {
    background: rgba(139, 0, 0, 0.2);
    border: 1px solid var(--primary-red);
    color: var(--primary-red);
}

.result-type.news {
    background: rgba(255, 165, 0, 0.2);
    border: 1px solid var(--accent-orange);
    color: var(--accent-orange);
}

.result-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.result-date i {
    margin-right: 0.375rem;
}

.result-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.result-excerpt {
    color: var(--text-secondary);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.result-excerpt mark {
    background: rgba(139, 0, 0, 0.3);
    color: var(--primary-red);
    padding: 0.125rem 0.25rem;
    border-radius: 3px;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 4rem 0;
    color: var(--text-secondary);
}

.loading i {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 1rem;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.no-results i {
    font-size: 4rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.no-results p {
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .result-item {
        padding: 1.25rem;
    }

    .result-title {
        font-size: 1.25rem;
    }

    .search-box input {
        padding: 1rem 3.5rem 1rem 3.5rem;
        font-size: 1rem;
    }

    .page-header {
        padding: 2rem 0 2rem;
    }
}
