/**
 * Related Posts Section Styles
 */

.related-posts-section {
    padding: 4rem 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
}

.related-posts-section.related-archetype {
    background: rgba(2, 11, 19, 0.3);
}

.related-posts-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.related-posts-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.related-posts-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 500;
    color: rgba(250, 247, 242, 0.92);
    margin: 0;
    letter-spacing: -0.01em;
}

.related-posts-rule {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(212, 175, 55, 0.3), rgba(212, 175, 55, 0), transparent);
}

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

.related-post-item {
    display: flex;
    flex-direction: column;
    background: rgba(10, 10, 10, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.related-post-item:hover {
    border-color: rgba(212, 175, 55, 0.35);
    background: rgba(10, 10, 10, 0.4);
    transform: translateY(-2px);
}

.related-post-image {
    overflow: hidden;
    height: 280px;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.5);
}

.related-post-image a {
    display: block;
    height: 100%;
    width: 100%;
}

.related-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.related-post-item:hover .related-thumb {
    transform: scale(1.05);
}

.related-post-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.related-post-title {
    margin: 0 0 0.75rem 0;
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;
}

.related-post-title a {
    color: rgba(250, 247, 242, 0.92);
    text-decoration: none;
    transition: color 0.2s ease;
}

.related-post-title a:hover {
    color: var(--sovereign, #D4AF37);
}

.related-post-meta {
    font-size: 12px;
    color: rgba(250, 247, 242, 0.52);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.related-post-cta {
    align-self: flex-start;
    margin-top: auto;
    color: var(--sovereign, #D4AF37);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.related-post-cta:hover {
    gap: 0.75rem;
    color: rgba(250, 247, 242, 0.92);
}

/* Light background pages */
.about-page .related-posts-title,
.contact-page .related-posts-title {
    color: rgba(10, 10, 10, 0.92);
}

.about-page .related-post-title a,
.contact-page .related-post-title a {
    color: rgba(10, 10, 10, 0.92);
}

.about-page .related-post-title a:hover,
.contact-page .related-post-title a:hover {
    color: #8B2635;
}

.about-page .related-post-meta,
.contact-page .related-post-meta {
    color: rgba(10, 10, 10, 0.62);
}

.about-page .related-post-cta,
.contact-page .related-post-cta {
    color: #8B2635;
}

.about-page .related-post-cta:hover,
.contact-page .related-post-cta:hover {
    color: rgba(10, 10, 10, 0.92);
}

/* Mobile */
@media (max-width: 768px) {
    .related-posts-section {
        padding: 2.5rem 1rem;
    }

    .related-posts-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .related-posts-rule {
        display: none;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .related-posts-title {
        font-size: 22px;
    }
}
