/* ===== Search Overlay ===== */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-overlay.active {
    display: flex;
    opacity: 1;
}

.search-overlay-content {
    width: 100%;
    max-width: 680px;
    padding: 0 20px;
}

.search-overlay-form {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-overlay-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 50px;
    padding: 14px 24px;
    gap: 12px;
}

.search-overlay-input-wrap i {
    color: #999;
    font-size: 18px;
}

.search-overlay-input-wrap input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    background: transparent;
    color: #333;
}

.search-overlay-input-wrap input::placeholder {
    color: #bbb;
}

.search-overlay-close {
    width: 48px;
    height: 48px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.search-overlay-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ===== Search Page ===== */
.search-page {
    min-height: 60vh;
}

.search-header {
    padding: 30px 0 20px;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
}

.search-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    padding: 12px 20px;
    gap: 10px;
    transition: border-color 0.2s;
}

.search-input-wrap:focus-within {
    border-color: var(--color-primary, #ff6b6b);
}

.search-input-wrap i {
    color: #999;
    font-size: 16px;
}

.search-input-wrap input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    background: transparent;
    color: #333;
}

.search-input-wrap input::placeholder {
    color: #bbb;
}

.search-clear {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px;
    font-size: 14px;
}

.search-clear:hover {
    color: #666;
}

.btn-search {
    padding: 12px 28px;
    background: var(--color-primary, #ff6b6b);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.btn-search:hover {
    opacity: 0.9;
}

/* Search Info */
.search-info {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 10px 0 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.search-info h1 {
    font-size: 20px;
    font-weight: 400;
    color: #333;
}

.search-info h1 strong {
    font-weight: 700;
    color: var(--color-primary, #ff6b6b);
}

.search-info .result-count {
    font-size: 14px;
    color: #999;
}

/* Search Empty */
.search-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.search-empty i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 20px;
}

.search-empty p {
    font-size: 16px;
    color: #999;
}

/* Pagination */
.pagination-wrap {
    display: flex;
    justify-content: center;
    padding: 30px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .search-overlay {
        padding-top: 80px;
    }

    .search-overlay-input-wrap {
        padding: 12px 18px;
    }

    .search-overlay-input-wrap input {
        font-size: 14px;
    }

    .search-form {
        padding: 0 10px;
    }

    .search-input-wrap {
        padding: 10px 16px;
    }

    .search-info {
        flex-direction: column;
        gap: 4px;
    }

    .search-info h1 {
        font-size: 17px;
    }
}
