/* Blog Listing Page */
.blog-listing {
    padding-top: calc(var(--nav-height) + 2rem);
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem 2rem;
}

.blog-listing h1 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, var(--primary), #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    transition: transform 0.3s;
    position: relative;
    overflow: hidden;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #60a5fa);
    transform: scaleX(0);
    transition: transform 0.3s;
    transform-origin: left;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card:hover::before {
    transform: scaleX(1);
}

.blog-card-date {
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.blog-card h2 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.tag {
    background: rgba(45, 212, 191, 0.1);
    color: var(--primary);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Individual Blog Post */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
    padding: calc(var(--nav-height) + 2rem) 2rem 2rem;
}

.blog-header {
    text-align: center;
    margin-bottom: 4rem;
}

.blog-header h1 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: var(--primary);
    font-size: 0.9rem;
}

.blog-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.blog-content h2 {
    color: white;
    font-size: 1.8rem;
    margin: 2.5rem 0 1rem;
}

.blog-content p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.blog-content code {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9em;
}

.blog-content pre {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.blog-content pre code {
    background: none;
    padding: 0;
}

@media (max-width: 768px) {
    .blog-listing {
        padding: 4rem 1rem 2rem;
    }
    
    .blog-listing h1 {
        font-size: 2rem;
    }
    
    .blog-card {
        padding: 1.5rem;
    }
    
    .blog-post {
        padding: calc(var(--nav-height) + 1rem) 1rem 1rem;
    }
    
    .blog-header h1 {
        font-size: 2rem;
    }
    
    .blog-meta {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
}
