/* Related Posts Shortcode Stílusok */

.related-posts-container {
    margin: 40px 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.related-posts-title {
    font-size: 28px;
    font-weight: 900;
    color: #000000;
    text-transform: uppercase;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.related-post-item {
    background: #f7f7f7;
    border-radius: 6px;
    overflow: hidden;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.related-post-image-container {
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.related-post-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-post-no-image {
    width: 100%;
    height: 100%;
    background: #f9fafb;
    border: 2px dashed #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
}

.related-post-category {
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff;
    font-size: 8px;
    font-weight: 600;
    background-color: #034001;
    padding: 5px 10px;
    border-radius: 50px;
    margin: 10px 10px;
}

.related-post-title {
    padding: 0 16px 12px 16px;
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    color: #111827;
}

.related-post-link {
    padding: 0 16px 16px 16px;
}

.related-post-read-link {
    display: inline-block;
    color: #111827;
    font-size: 13px;
    font-weight: 700;
}

.related-post-read-link:hover {
    color: #111827;

}

/* Responsive design */
@media (max-width: 1024px) {
    .related-posts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .related-posts-container {
        margin: 32px 0;
    }
    
    .related-posts-title {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .related-post-image-container {
        height: 140px;
    }
    
    .related-post-title {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .related-posts-container {
        margin: 24px 0;
    }
    
    .related-posts-title {
        font-size: 16px;
        margin-bottom: 16px;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .related-post-image-container {
        height: 120px;
    }
    
    .related-post-category {
        padding: 10px 12px 6px 12px;
        font-size: 11px;
    }
    
    .related-post-title {
        padding: 0 12px 10px 12px;
        font-size: 12px;
    }
    
    .related-post-link {
        padding: 0 12px 12px 12px;
    }
    
    .related-post-read-link {
        font-size: 12px;
        padding: 5px 10px;
    }
}