/* Blog Search Widget Styles */

.blog-search-widget-container {
    width: 100%;
    font-family: 'Inter', 'Roboto', sans-serif;
}

/* Header Panel - Search & Filters inline */
.blog-search-header-panel {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 40px;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 15px;
}

/* Hide scrollbar for header */
.blog-search-header-panel::-webkit-scrollbar {
    display: none;
}

.blog-search-header-panel {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Search Input */
.blog-search-input-wrapper {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border-radius: 12px;
    padding: 8px 16px;
    min-width: 250px;
    flex-shrink: 0;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.blog-search-input-wrapper:focus-within {
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.blog-search-input-wrapper .search-icon {
    color: #64748b;
    margin-right: 10px;
    transition: color 0.3s;
}

.blog-search-input-wrapper:focus-within .search-icon {
    color: #3b82f6;
}

.blog-search-input {
    border: none !important;
    background: transparent !important;
    outline: none !important;
    font-size: 14px;
    color: #334155;
    width: 100%;
    padding: 0 !important;
    box-shadow: none !important;
}

.blog-search-input::placeholder {
    color: #94a3b8;
}

/* Filters */
.blog-search-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.blog-search-filter-btn {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 8px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.blog-search-filter-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

.blog-search-filter-btn.active {
    background: #eff6ff;
    color: #2563eb;
    border-color: transparent;
    font-weight: 600;
}

/* Results Grid */
.blog-search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* Cards */
.blog-search-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #f1f5f9;
    height: 100%;
}

.blog-search-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.blog-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.blog-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-right: 16px;
    flex-shrink: 0;
}

.blog-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
	padding: 6px;
}

.blog-card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-title {
    font-size: 20px !important;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
    margin: 0;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: #3b82f6;
}

.blog-card-excerpt {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 20px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 8px;
}

.meta-author {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #3b82f6;
    font-weight: 500;
}

.meta-dot {
    color: #cbd5e1;
    font-size: 16px;
}

.blog-card-footer {
    margin-top: auto;
}

.blog-card-btn {
    display: inline-flex;
    align-items: center;
    background: #3b82f6;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.blog-card-btn:hover {
    background: #2563eb;
    color: #ffffff;
    transform: translateX(4px);
}

.blog-search-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border-radius: 16px;
    color: #64748b;
    font-size: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.blog-search-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #3b82f6;
    font-size: 16px;
    font-weight: 500;
}

/* Pagination */
.blog-search-pagination-wrapper {
    margin-top: 40px;
    width: 100%;
}

.blog-search-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.blog-search-pagination a,
.blog-search-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: #475569;
    transition: all 0.2s;
}

.blog-search-pagination a:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.blog-search-pagination span.current {
    background: #3b82f6;
    color: #ffffff;
}

.blog-search-pagination span.disabled {
    color: #cbd5e1;
    cursor: not-allowed;
}

.page-prev,
.page-next {
    background: transparent !important;
}

.page-prev:not(.disabled):hover,
.page-next:not(.disabled):hover {
    background: transparent !important;
    color: #3b82f6 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blog-search-header-panel {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        border-radius: 20px;
    }

    .blog-search-input-wrapper {
        min-width: 100%;
        margin-bottom: 12px;
    }

    .blog-search-filters {
        overflow-x: auto;
        padding-bottom: 4px;
    }
}