/* ========================================
   MAAYAA SEARCH RESULTS PAGE CSS
   File: search-results.css
   ======================================== */

/* Container */
.maayaa-search-results {
    padding: 80px 0;
    background: #fafafa;
    min-height: 100vh;
}

.search-results-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header Section */
.search-results-header {
    margin-bottom: 40px;
}

.search-breadcrumb {
    font-size: 14px;
    color: #6e6e73;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-breadcrumb a {
    color: #06c;
    text-decoration: none;
    transition: opacity 0.2s;
}

.search-breadcrumb a:hover {
    opacity: 0.7;
}

.search-breadcrumb .separator {
    color: #d2d2d7;
}

.search-results-title {
    font-size: 48px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 12px;
    line-height: 1.1;
    letter-spacing: -0.025em;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
}

.search-term {
    color: #06c;
}

.search-results-count {
    font-size: 17px;
    color: #6e6e73;
    font-weight: 400;
}

/* Filter Tabs */
.search-filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 40px;
    padding-bottom: 16px;
    border-bottom: 1px solid #d2d2d7;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #1d1d1f;
    background: transparent;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.filter-tab:hover {
    background: rgba(0, 0, 0, 0.04);
}

.filter-tab.active {
    background: #1d1d1f;
    color: #ffffff;
}

/* Results Grid */
.search-results-grid {
    display: grid;
    gap: 32px;
    margin-bottom: 60px;
}

/* Result Item */
.search-result-item {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    transition: all 0.3s cubic-bezier(0.32, 0.08, 0.24, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.search-result-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

/* Thumbnail */
.result-thumbnail {
    position: relative;
    overflow: hidden;
    background: #f5f5f7;
}

.result-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.search-result-item:hover .result-thumbnail img {
    transform: scale(1.05);
}

.post-type-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: #1d1d1f;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Content */
.result-content {
    padding: 32px 32px 32px 0;
    display: flex;
    flex-direction: column;
}

.result-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6e6e73;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.result-category {
    font-weight: 600;
    color: #06c;
}

.meta-separator {
    color: #d2d2d7;
}

.result-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.result-title a {
    color: #1d1d1f;
    text-decoration: none;
    transition: color 0.2s;
}

.result-title a:hover {
    color: #06c;
}

.result-excerpt {
    font-size: 17px;
    line-height: 1.6;
    color: #6e6e73;
    margin-bottom: 20px;
    flex-grow: 1;
}

.result-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #f5f5f7;
}

.result-author {
    font-size: 14px;
    color: #6e6e73;
}

.result-read-more {
    font-size: 14px;
    font-weight: 600;
    color: #06c;
    text-decoration: none;
    transition: opacity 0.2s;
}

.result-read-more:hover {
    opacity: 0.7;
}

/* Pagination */
.search-pagination {
    margin: 60px 0 40px;
}

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

.pagination-prev,
.pagination-next {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #1d1d1f;
    background: #ffffff;
    border: 1px solid #d2d2d7;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination-prev:hover,
.pagination-next:hover {
    background: #f5f5f7;
    border-color: #86868b;
}

.pagination-numbers {
    display: flex;
    gap: 4px;
    margin: 0 8px;
}

.page-number {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    color: #1d1d1f;
    background: #ffffff;
    border: 1px solid #d2d2d7;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.page-number:hover {
    background: #f5f5f7;
    border-color: #86868b;
}

.page-number.active {
    background: #1d1d1f;
    color: #ffffff;
    border-color: #1d1d1f;
}

.pagination-ellipsis {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #86868b;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 24px;
}

.no-results-icon {
    margin-bottom: 24px;
    opacity: 0.3;
}

.no-results-icon svg {
    stroke: #1d1d1f;
}

.no-results-title {
    font-size: 32px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 12px;
}

.no-results-text {
    font-size: 17px;
    color: #6e6e73;
    margin-bottom: 32px;
}

.no-results-suggestions {
    margin-bottom: 32px;
}

.no-results-suggestions p {
    font-size: 15px;
    color: #86868b;
    margin-bottom: 16px;
}

.suggestion-tags {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.suggestion-tags a {
    padding: 10px 20px;
    background: #f5f5f7;
    color: #1d1d1f;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.suggestion-tags a:hover {
    background: #e8e8ed;
    transform: translateY(-2px);
}

.back-home-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: #1d1d1f;
    color: #ffffff;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.back-home-btn:hover {
    background: #06c;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .search-results-title {
        font-size: 40px;
    }
    
    .search-result-item {
        grid-template-columns: 240px 1fr;
        gap: 24px;
    }
    
    .result-title {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .maayaa-search-results {
        padding: 60px 0;
    }
    
    .search-results-container {
        padding: 0 16px;
    }
    
    .search-results-title {
        font-size: 32px;
    }
    
    .search-result-item {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .result-thumbnail {
        height: 200px;
    }
    
    .result-content {
        padding: 24px;
    }
    
    .result-title {
        font-size: 22px;
    }
    
    .result-excerpt {
        font-size: 16px;
    }
    
    .pagination-prev,
    .pagination-next {
        font-size: 0;
        padding: 10px;
    }
    
    .pagination-prev svg,
    .pagination-next svg {
        margin: 0;
    }
    
    .page-number {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .search-results-title {
        font-size: 28px;
    }
    
    .filter-tab {
        font-size: 13px;
        padding: 8px 16px;
    }
    
    .pagination-numbers .page-number:not(.active) {
        display: none;
    }
    
    .pagination-numbers .page-number:nth-child(-n+2),
    .pagination-numbers .page-number:nth-last-child(-n+2),
    .pagination-numbers .page-number.active {
        display: flex;
    }
}
