/*!
 * Blog List Page Styles - Isolated CSS for blog listing
 * Matches home page dark theme with transparent glass effect
 * No external dependencies
 */

/* Reset and base styles for blog */
.blog-page * {
    box-sizing: border-box;
}

.blog-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: #1a202c;
    background-image: url('/assets/images/background-desktop-2000x1328.webp');
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #e2e8f0;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .blog-page {
        background-image: url('/assets/images/mobile-view-450x768.webp');
    }
}

/* Background overlay for better readability */
.blog-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 32, 44, 0.7);
    backdrop-filter: blur(2px);
    z-index: -1;
}

/* Container and layout */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

/* Blog header section */
.blog-header {
    text-align: center;
    padding: 8rem 0 4rem;
}

.blog-title {
    font-size: 3rem;
    font-weight: 300;
    color: #ffffff;
    margin: 0 0 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.blog-subtitle {
    font-size: 1.25rem;
    color: #cbd5e0;
    margin: 0 0 3rem;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Search and filter section */
.blog-search-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    color: #ffffff;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.search-input::placeholder {
    color: #a0aec0;
}

.search-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

/* Filter tags */
.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.filter-tag {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 2rem;
    padding: 0.5rem 1.25rem;
    color: #e2e8f0;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-decoration: none;
}

.filter-tag:hover,
.filter-tag.active {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Results info */
.results-info {
    text-align: center;
    margin-bottom: 2rem;
    color: #a0aec0;
    font-size: 1rem;
}

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

/* Blog card styling */
.blog-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Image styling */
.blog-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: rgba(0, 0, 0, 0.3);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

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

.blog-card-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(210, 71, 42, 0.6), rgba(233, 134, 40, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 300;
    opacity: 0.8;
    backdrop-filter: blur(10px);
}

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

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #a0aec0;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.blog-card-date,
.blog-card-author,
.blog-card-reading-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.blog-card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 1rem;
    line-height: 1.3;
}

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

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

.blog-card-description {
    color: #cbd5e0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

/* Tags */
.blog-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.blog-card-tag {
    background: rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Read more link */
.blog-card-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.blog-card-link:hover {
    color: #f7fafc;
    transform: translateX(4px);
}

/* No results state */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: #a0aec0;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #cbd5e0;
}

.no-results-text {
    font-size: 1rem;
    color: #a0aec0;
}

/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 3rem 0;
}

.pagination-link {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #e2e8f0;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.pagination-link:hover,
.pagination-link.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
    transform: translateY(-2px);
}

.pagination-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive design */
@media (max-width: 768px) {
    .blog-title {
        font-size: 2.5rem;
    }
    
    .blog-header {
        padding: 6rem 0 3rem;
    }
    
    .blog-search-section {
        padding: 1.5rem;
    }
    
    .filter-tags {
        justify-content: flex-start;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-card-meta {
        font-size: 0.8rem;
    }
    
    .blog-card-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .blog-container {
        padding: 0 0.75rem;
    }
    
    .blog-title {
        font-size: 2rem;
    }
    
    .blog-search-section {
        padding: 1rem;
    }
    
    .filter-tag {
        font-size: 0.85rem;
        padding: 0.4rem 1rem;
    }
}

/* Loading states */
.blog-loading {
    text-align: center;
    padding: 2rem;
    color: #a0aec0;
}

.blog-loading-spinner {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
