/* Blog Page Styles */

/* Override body overflow to allow scrolling */
body {
    overflow-y: auto;
}

/* Override fixed footer for scrollable pages */
.footer {
    position: relative;
    margin-top: 2rem;
}

.blog-container {
    position: relative;
    z-index: 3;
    min-height: calc(100vh - 150px);
    padding: 120px 2rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.blog-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeSlideIn 1s ease-out;
}

.blog-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;
    color: #f5f5f5;
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}

.blog-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    color: #d1d1d1;
    margin-bottom: 1.5rem;
    letter-spacing: 0.01em;
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.blog-post-preview {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 2rem;
    animation: fadeSlideIn 1s ease-out;
    animation-fill-mode: both;
    transition: all 0.3s ease;
    position: relative;
    z-index: 4;
}

.blog-post-preview:last-child {
    border-bottom: none;
}

.blog-post-preview:nth-child(1) { animation-delay: 0.1s; }
.blog-post-preview:nth-child(2) { animation-delay: 0.2s; }
.blog-post-preview:nth-child(3) { animation-delay: 0.3s; }
.blog-post-preview:nth-child(4) { animation-delay: 0.4s; }
.blog-post-preview:nth-child(5) { animation-delay: 0.5s; }

.post-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.01em;
}

.post-date {
    color: rgba(255, 255, 255, 0.45);
}

.post-divider {
    color: rgba(255, 255, 255, 0.25);
}

.post-read-time {
    color: rgba(255, 255, 255, 0.45);
}

.post-title {
    margin: 0 0 1rem 0;
    font-size: clamp(1.5rem, 4vw, 1.875rem);
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.3;
}

.post-title a {
    color: #f5f5f5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #a855f7;
}

.post-excerpt {
    color: #d1d1d1;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 1rem 0;
    letter-spacing: 0.01em;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: #a855f7;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #8b5cf6;
    transform: translateX(4px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-container {
        padding: 100px 1.5rem 100px;
    }

    .blog-header {
        margin-bottom: 2.5rem;
    }

    .blog-list {
        gap: 2.5rem;
    }

    .blog-post-preview {
        padding-bottom: 1.5rem;
    }

    .post-meta {
        flex-wrap: wrap;
    }
}

/* Animation for fade slide in (reuse from main style) */
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
