/* Blog Listing Styles */
.blog-hero {
    background: linear-gradient(135deg, #6d5dd9 0%, #7b2ff7 25%, #ff006b 75%, #ff7961 100%);
    color: white;
    padding: 10rem 0 5rem;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.blog-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.blog-hero p {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

.blog-filters {
    display: flex;
    gap: 1rem;
    margin: 2.5rem 0;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-item {
    padding: 0.6rem 1.8rem;
    background: rgba(0, 212, 255, 0.08);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
    font-weight: 500;
    color: var(--text);
    backdrop-filter: blur(5px);
}

.filter-item:hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: var(--primary);
}

.filter-item.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--bg);
    border-color: var(--primary);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.3);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    margin: 3.5rem 0;
    animation: fadeInUp 0.6s ease-out;
}

.blog-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 25px 60px rgba(0, 212, 255, 0.15), 0 0 30px rgba(0, 212, 255, 0.08);
}

.card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(123, 47, 247, 0.1));
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover .card-image img {
    transform: scale(1.08);
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-warm));
    color: var(--bg);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.card-meta .category {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 212, 255, 0.08);
    border-radius: 4px;
}

.blog-card h2 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    font-weight: 700;
    color: var(--text);
}

.blog-card h2 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card h2 a:hover {
    color: var(--primary);
}

.excerpt {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 0.95rem;
    flex-grow: 1;
}

.read-more {
    color: var(--primary);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    text-decoration: none;
}

.read-more:hover {
    gap: 0.75rem;
    color: var(--primary-light);
}

.pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin: 3rem 0;
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.page-btn.active {
    background: var(--primary);
    color: white;
}

.page-btn.next {
    width: auto;
    padding: 0 1.5rem;
}

/* Blog Detail Styles */
.blog-detail {
    padding: 4rem 0;
}

.blog-header {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.breadcrumb {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
}

.blog-meta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.blog-meta .category {
    background: rgba(108, 92, 231, 0.1);
    color: var(--primary);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-weight: 600;
}

.blog-detail h1 {
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 2rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.author-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 0.2rem;
}

.author-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.featured-image {
    margin: 3rem 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 1.1rem;
}

.blog-content p {
    margin-bottom: 1.5rem;
}

.blog-content h2,
.blog-content h3 {
    margin: 2.5rem 0 1.5rem;
    line-height: 1.4;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.blog-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    flex-wrap: wrap;
    gap: 1.5rem;
}

.tags {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex-wrap: wrap;
}

.tags span {
    font-weight: 600;
}

.tags a {
    background: rgba(108, 92, 231, 0.1);
    color: var(--primary);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}

.tags a:hover {
    background: var(--primary);
    color: white;
}

.social-share {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-share span {
    font-weight: 600;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary);
    color: white;
}

.related-blogs {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.related-blogs h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .blog-detail h1 {
        font-size: 2rem;
    }
    
    .blog-content {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .social-share {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 576px) {
    .blog-hero h1 {
        font-size: 2rem;
    }
    
    .blog-detail h1 {
        font-size: 1.8rem;
    }
    
    .featured-image {
        margin: 2rem 0;
    }
}