/* ============================================
   BLOG SHARED STYLES
   Inherits from styles.css
   ============================================ */

/* HEADER SECTION (Blog Specific) */
:root {
    --font-serif: 'Newsreader', serif;
}

.header-section {
    padding-top: 8rem;
    /* Account for fixed nav */
    padding-bottom: 2rem;
    animation: fadeUp 0.6s ease-out;
}

.header-section h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--color-sea);
    margin-bottom: 1rem;
}

/* POSTS LIST */
.posts-section {
    padding-bottom: 6rem;
}

.posts-list {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.post-item {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: transform 0.3s ease;
    animation: fadeUp 0.6s ease-out both;
}

.post-item:hover {
    transform: translateX(10px);
}

.post-link {
    text-decoration: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.post-image {
    width: 200px;
    height: 140px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 50px 50px 0 0;
    opacity: 1;
    transition: all 0.5s ease;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.5s ease;
}

.post-link:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    flex-grow: 1;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-grasshopper);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.post-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--color-sea);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.post-link:hover .post-title {
    color: var(--color-grasshopper);
}

.post-excerpt {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 800px;
}

/* ARTICLE PAGE STYLES */
.article-header {
    padding-top: 8rem;
    padding-bottom: 3rem;
    text-align: center;
    animation: fadeUp 0.6s ease-out;
}

.article-header h1 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--color-sea);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    color: var(--color-grasshopper);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.cover-section {
    padding-bottom: 4rem;
    animation: fadeUp 0.6s ease-out 0.1s both;
}

.cover-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cover-image {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.cover-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-body {
    padding-bottom: 6rem;
    animation: fadeUp 0.6s ease-out 0.2s both;
}

.content-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 2rem;
}

.article-body p {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.article-body h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--color-sea);
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.article-body strong {
    color: var(--color-sea);
    font-weight: 600;
}

.article-body em {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--color-sea);
}

/* ANIMATIONS */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-item:nth-child(1) {
    animation-delay: 0.1s;
}

.post-item:nth-child(2) {
    animation-delay: 0.2s;
}

.post-item:nth-child(3) {
    animation-delay: 0.3s;
}

/* RESPONSIVE POST LIST */
@media (max-width: 768px) {
    .post-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .post-image {
        width: 100%;
        height: 200px;
        border-radius: 50px 50px 0 0;
    }

    .cover-section {
        padding-bottom: 1.5rem;
    }

    .cover-container {
        padding: 0 1.5rem;
    }

    .content-container {
        padding: 1.5rem;
    }

    .article-body p {
        font-size: 1rem;
    }
}