/* Archive and Search Pages Styles */

.archive-content,
.search-content {
    min-height: 100vh;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #FAFAFA 0%, #F1F5F9 50%, #E2E8F0 100%);
}

.archive-header,
.search-header {
    text-align: center;
    margin-bottom: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.archive-title,
.search-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
}

.search-title span {
    color: #9f63e9;
}

.archive-description {
    font-size: 1.125rem;
    color: #64748b;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.search-form-container {
    max-width: 500px;
    margin: 24px auto 0;
}

.search-form {
    position: relative;
}

.search-input-group {
    display: flex;
    align-items: center;
    background: rgba(248, 250, 252, 0.9);
    border-radius: 50px;
    border: 2px solid transparent;
    transition: all 0.3s;
    overflow: hidden;
}

.search-input-group:focus-within {
    border-color: #9f63e9;
    box-shadow: 0 0 0 3px rgba(159, 99, 233, 0.1);
}

.search-field {
    flex: 1;
    padding: 16px 20px;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: #1e293b;
    outline: none;
}

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

.search-submit {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #9f63e9 0%, #832ced 100%);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.search-submit:hover {
    background: linear-gradient(135deg, #832ced 0%, #6d28d9 100%);
    transform: translateX(-2px);
}

.search-text {
    display: none;
}

.screen-reader-text {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.post-card,
.search-result {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.post-card:hover,
.search-result:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.post-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-content,
.result-content {
    padding: 24px;
}

.post-meta,
.result-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.875rem;
    color: #64748b;
}

.post-date,
.result-date {
    color: #9f63e9;
    font-weight: 500;
}

.post-categories a,
.result-type {
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s;
}

.post-categories a:hover {
    color: #9f63e9;
}

.result-type {
    background: rgba(159, 99, 233, 0.1);
    color: #9f63e9;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-title,
.result-title {
    margin-bottom: 12px;
}

.post-title a,
.result-title a {
    color: #1e293b;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.3;
    transition: color 0.3s;
}

.post-title a:hover,
.result-title a:hover {
    color: #9f63e9;
}

.post-excerpt,
.result-excerpt {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
}

.read-more,
.result-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #9f63e9;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.read-more:hover,
.result-link:hover {
    color: #832ced;
    transform: translateX(4px);
}

.results-count {
    margin-bottom: 32px;
    color: #64748b;
    font-size: 0.875rem;
    text-align: center;
}

.search-results {
    max-width: 1000px;
    margin: 0 auto;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    margin: 0 4px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: #9f63e9;
    color: white;
    transform: translateY(-2px);
}

.pagination .page-numbers.dots {
    background: transparent;
    cursor: default;
}

.pagination .page-numbers.dots:hover {
    transform: none;
}

.no-posts,
.no-results {
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    max-width: 600px;
    margin: 0 auto;
}

.no-posts h2,
.no-results h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
}

.no-posts p,
.no-results p {
    color: #64748b;
    font-size: 1.125rem;
    margin-bottom: 32px;
    line-height: 1.6;
}

.search-suggestions {
    background: rgba(248, 250, 252, 0.8);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    text-align: left;
}

.search-suggestions h3 {
    color: #1e293b;
    font-size: 1.125rem;
    margin-bottom: 12px;
}

.search-suggestions ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.search-suggestions li {
    color: #64748b;
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.search-suggestions li::before {
    content: '•';
    color: #9f63e9;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.search-cta {
    margin-top: 32px;
}

.search-cta h3 {
    color: #1e293b;
    font-size: 1.125rem;
    margin-bottom: 16px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

@media (max-width: 768px) {
    .archive-header,
    .search-header {
        padding: 24px;
        margin-bottom: 40px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .search-input-group {
        flex-direction: column;
        border-radius: 16px;
    }
    
    .search-field {
        border-radius: 16px 16px 0 0;
    }
    
    .search-submit {
        width: 100%;
        justify-content: center;
        border-radius: 0 0 16px 16px;
    }
    
    .search-text {
        display: inline;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .no-posts,
    .no-results {
        padding: 40px 24px;
    }
}

@media (max-width: 480px) {
    .archive-content,
    .search-content {
        padding: 100px 0 60px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .pagination .page-numbers {
        min-width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }
}