/* Blog-specific styles extending main styles.css */

/* Override main site overflow hidden */
body {
    overflow: auto !important;
    height: auto !important;
    position: static !important;
}

html {
    overflow: auto !important;
    height: auto !important;
}

/* Container */
.blog-container {
    min-height: 100vh;
    background: var(--bg);
    padding: 2rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.blog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4rem;
    animation: fadeIn 0.8s ease;
}

.back-home {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    transition: all 0.2s ease;
    text-decoration: none;
}

.back-home:hover {
    background: var(--glass-hover);
    transform: translateX(-2px);
}

.back-home svg {
    width: 18px;
    height: 18px;
}

.header-content {
    flex: 1;
    text-align: center;
}

.header-content h1 {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.header-content .subtitle {
    font-size: 0.9375rem;
    color: var(--text-dim);
    font-weight: 400;
}

.blog-header .theme-toggle {
    width: 40px;
    height: 40px;
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.blog-header .theme-toggle:hover {
    background: var(--glass-hover);
}

.blog-header .theme-toggle svg {
    width: 16px;
    height: 16px;
    color: var(--text);
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

/* Post Card */
.post-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.75rem;
    transition: all 0.3s ease;
    animation: fadeIn 0.8s ease;
    cursor: pointer;
    position: relative;
}

.post-card:hover {
    background: var(--glass-hover);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px var(--shadow);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.8125rem;
    color: var(--text-dim);
}

.post-meta time {
    font-weight: 500;
}

.reading-time::before {
    content: "•";
    margin-right: 0.75rem;
}

.post-card h2 {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.post-card h2 a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-card h2 a:hover {
    color: var(--text-dim);
}

.post-excerpt {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-dim);
    margin-bottom: 1.25rem;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-dim);
    font-weight: 500;
}

/* Footer */
.blog-footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 0.875rem;
}

/* Desktop */
@media (min-width: 1024px) {
    .blog-container {
        padding: 3rem 2rem;
    }
    
    .blog-header {
        margin-bottom: 5rem;
    }
    
    .header-content h1 {
        font-size: 2.5rem;
    }
    
    .posts-grid {
        gap: 2rem;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .blog-header {
        margin-bottom: 3rem;
    }
    
    .header-content h1 {
        font-size: 1.5rem;
    }
    
    .header-content .subtitle {
        font-size: 0.875rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[data-aos="fade-up"] {
    animation: fadeIn 0.8s ease;
}

[data-aos-delay="100"] {
    animation-delay: 0.1s;
}

[data-aos-delay="200"] {
    animation-delay: 0.2s;
}

