/* ========================================
   BLOG / ARCHIVE / SEARCH STYLES
   ======================================== */

/* Blog Header */
.blog-header {
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(99, 102, 241, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e1b4b 100%);
    position: relative;
    overflow: hidden;
    padding: 120px 0 60px;
}

.blog-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236366f1' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.blog-header-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.blog-header-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.blog-header-title span {
    background: linear-gradient(135deg, #c084fc 0%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-header-description {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
}

/* Blog Section */
.blog-section {
    background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 100%);
    padding: 4rem 0 6rem;
    position: relative;
}

.blog-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent);
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

/* Blog Card */
.blog-card {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-10px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4), 0 0 40px rgba(99, 102, 241, 0.1);
}

.blog-card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.08);
}

.blog-card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.375rem 0.875rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9) 0%, rgba(139, 92, 246, 0.9) 100%);
    border-radius: 9999px;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    z-index: 2;
}

.blog-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: rgba(238, 242, 255, 0.5);
    margin-bottom: 0.75rem;
}

.blog-card-title {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.blog-card-title a {
    color: #eef2ff;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: #818cf8;
}

.blog-card-excerpt {
    color: rgba(238, 242, 255, 0.65);
    line-height: 1.7;
    flex: 1;
}

.blog-card-footer {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #818cf8;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

.read-more-link:hover {
    color: #a5b4fc;
    gap: 0.75rem;
}

.read-more-link svg {
    width: 18px;
    height: 18px;
}

/* Pagination */
.pagination {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
}

.pagination .nav-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    color: rgba(238, 242, 255, 0.7);
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.4);
    color: white;
    transform: translateY(-2px);
}

.pagination .current {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-color: transparent;
    color: white;
}

.pagination .prev,
.pagination .next {
    padding: 0 1.25rem;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 24px;
}

.no-results-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-results-icon svg {
    width: 40px;
    height: 40px;
    color: #818cf8;
}

.no-results h2 {
    font-size: 1.75rem;
    color: white;
    margin-bottom: 0.75rem;
}

.no-results p {
    color: rgba(238, 242, 255, 0.6);
    margin-bottom: 1.5rem;
}

/* Search Form in No Results */
.no-results .search-form {
    max-width: 500px;
    margin: 0 auto;
}

.search-form {
    display: flex;
    gap: 0.75rem;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 0.875rem 1.25rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-form input[type="search"]::placeholder {
    color: rgba(238, 242, 255, 0.4);
}

.search-form input[type="search"]:focus {
    outline: none;
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(255,255,255,0.08);
}

.search-form button {
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .blog-header {
        padding: 100px 0 50px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-card {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .pagination a,
    .pagination span {
        min-width: 40px;
        height: 40px;
        font-size: 0.875rem;
    }
}
