/* Offcanvas Search Styles */
.offcanvas-search {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.offcanvas-search.open {
    opacity: 1;
    visibility: visible;
}

.offcanvas-search-inner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 30px;
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.offcanvas-search.open .offcanvas-search-inner {
    transform: translateY(0);
}

.offcanvas-btn-close {
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    font-size: 24px;
    color: #333;
    background: none;
    border: none;
    z-index: 1001;
}

.offcanvas-btn-close:hover {
    color: #000;
}

.offcanvas-search-form {
    display: flex;
    gap: 10px;
    position: relative;
}

.offcanvas-search-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.offcanvas-search-input:focus {
    border-color: #333;
}

.offcanvas-search-btn {
    padding: 12px 20px;
    background: #333;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.offcanvas-search-btn:hover {
    background: #555;
}

.offcanvas-search-btn i {
    pointer-events: none;
}

/* Search Results Styles */
.search-results {
    margin: 30px 0;
}

.search-results .post {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.search-results .post:last-child {
    border-bottom: none;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #333;
}

.no-results p {
    font-size: 16px;
    color: #666;
    max-width: 500px;
    margin: 0 auto;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: #333;
    color: white;
    border-color: #333;
}

.pagination .current {
    background-color: #333;
    color: white;
    border-color: #333;
}
