/* Egyszerű Related Posts CSS */

/* Fő konténer */
.related-posts-container {
    margin-bottom: 40px;

}

/* Fejléc */
.related-posts-header {
    text-align: center;
    margin-bottom: 30px;
}

.related-posts-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.related-posts-divider {
    width: 80px;
    height: 4px;
    background: #dc2626;
    margin: 0 auto;
    border-radius: 2px;
}

/* Grid elrendezés */
.related-posts-grid {
    display: grid;
    gap: 25px;
}

.related-posts-grid[data-columns="1"] { grid-template-columns: 1fr; }
.related-posts-grid[data-columns="2"] { grid-template-columns: repeat(2, 1fr); }
.related-posts-grid[data-columns="3"] { grid-template-columns: repeat(3, 1fr); }
.related-posts-grid[data-columns="4"] { grid-template-columns: repeat(4, 1fr); }

/* Bejegyzés elem */
.related-post-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.related-post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.2);
    border-color: #dc2626;
}

/* Kiemelt kép */
.related-post-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f3f4f6;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Tartalom */
.related-post-content {
    padding: 20px;
}

/* Meta információk */
.related-post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.related-post-date {
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
    background: #f3f4f6;
    padding: 4px 8px;
    border-radius: 8px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.related-post-date:hover {
    background: #dc2626;
    color: white;
}

.related-post-category {
    background: #dc2626;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.related-post-category:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}

/* Cím */
.related-post-title {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

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

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

/* Kivonat */
.related-post-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #6b7280;
    margin-bottom: 15px;
}

/* Tovább link */
.related-post-read-more {
    display: inline-flex;
    align-items: center;
    color: #dc2626;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 20px;
    background: #fef2f2;
    border: 2px solid #fecaca;
}

.related-post-read-more:hover {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
    transform: translateX(3px);
}

.related-post-read-more::after {
    content: '→';
    margin-left: 6px;
    transition: margin-left 0.3s ease;
}

.related-post-read-more:hover::after {
    margin-left: 10px;
}

/* Kategória specifikus színek */
.related-post-category.tech {
    background: #3b82f6;
}

.related-post-category.tech:hover {
    background: #2563eb;
}

.related-post-category.sport {
    background: #10b981;
}

.related-post-category.sport:hover {
    background: #059669;
}

.related-post-category.fashion {
    background: #ec4899;
}

.related-post-category.fashion:hover {
    background: #be185d;
}

.related-post-category.food {
    background: #f59e0b;
}

.related-post-category.food:hover {
    background: #d97706;
}

.related-post-category.travel {
    background: #8b5cf6;
}

.related-post-category.travel:hover {
    background: #7c3aed;
}

/* Tablet nézet */
@media (max-width: 1024px) {
    .related-posts-container {
        margin: 30px 0;
        padding: 25px;
    }
    
    .related-posts-title {
        font-size: 26px;
    }
    
    .related-posts-grid[data-columns="4"] {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .related-posts-grid[data-columns="3"] {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .related-posts-grid {
        gap: 20px;
    }
    
    .related-post-image {
        height: 180px;
    }
    
    .related-post-content {
        padding: 18px;
    }
    
    .related-post-title {
        font-size: 17px;
    }
}

/* Mobil nézet */
@media (max-width: 768px) {
    .related-posts-container {
        margin: 25px 0;
        padding: 20px;
    }
    
    .related-posts-title {
        font-size: 24px;
    }
    
    .related-posts-grid[data-columns="2"],
    .related-posts-grid[data-columns="3"],
    .related-posts-grid[data-columns="4"] {
        grid-template-columns: 1fr;
    }
    
    .related-posts-grid {
        gap: 18px;
    }
    
    .related-post-image {
        height: 160px;
    }
    
    .related-post-content {
        padding: 16px;
    }
    
    .related-post-title {
        font-size: 16px;
    }
    
    .related-post-excerpt {
        font-size: 13px;
    }
    
    .related-post-meta {
        gap: 10px;
        margin-bottom: 12px;
    }
    
    .related-post-date {
        font-size: 11px;
        padding: 3px 6px;
    }
    
    .related-post-category {
        font-size: 10px;
        padding: 3px 10px;
    }
    
    .related-post-read-more {
        font-size: 13px;
        padding: 6px 14px;
    }
}

/* Kis mobil nézet */
@media (max-width: 480px) {
    .related-posts-container {
        margin: 20px 0;
        padding: 15px;
    }
    
    .related-posts-title {
        font-size: 22px;
    }
    
    .related-posts-grid {
        gap: 15px;
    }
    
    .related-post-image {
        height: 140px;
    }
    
    .related-post-content {
        padding: 14px;
    }
    
    .related-post-title {
        font-size: 15px;
    }
    
    .related-post-excerpt {
        font-size: 12px;
    }
    
    .related-post-read-more {
        font-size: 12px;
        padding: 5px 12px;
    }
}

/* Extra kis mobil */
@media (max-width: 360px) {
    .related-posts-title {
        font-size: 20px;
    }
    
    .related-post-image {
        height: 120px;
    }
    
    .related-post-title {
        font-size: 14px;
    }
    
    .related-post-content {
        padding: 12px;
    }
}