/* Advanced Magazine Posts Display - CSS */

/* Alapértelmezett betűtípus */
* {
    font-family: 'Poppins', sans-serif;
}

/* Fő konténer */
.advanced-magazine-container {
    width: 100%;
}

/* ===== KIEMELT SZEKCIÓ (Első 6 bejegyzés) ===== */

.featured-posts-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.featured-post-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* Kiemelt kép */
.featured-post-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

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

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

/* Meta információk */
.featured-post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 20px 10px;
    flex-wrap: wrap;
}

.post-date {
    font-size: 13px;
    color: #7f8c8d;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.post-category {
    background: #3498db;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.3s ease;
}

.post-category:hover {
    background: #2980b9;
    color: white;
}

/* Kiemelt cím */
.featured-post-title {
    margin: 0;
    padding: 0 20px 15px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: #2c3e50;
}

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

.featured-post-title a:hover {
    color: #3498db;
}

/* Kivonat */
.featured-post-excerpt {
    padding: 0 20px 20px;
    font-size: 15px;
    line-height: 1.6;
    color: #5d6d7e;
    margin-bottom: 10px;
}

/* Tovább link */
.read-more-link {
    display: inline-block;
    margin: 0 20px 25px;
    color: #3498db;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
}

.read-more-link:hover {
    color: #2980b9;
    transform: translateX(5px);
}

.read-more-link::after {
    content: '→';
    margin-left: 8px;
    transition: margin-left 0.3s ease;
}

.read-more-link:hover::after {
    margin-left: 12px;
}

/* ===== KOMPAKT SZEKCIÓ (7-től) ===== */

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

.compact-post-item {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #ecf0f1;
}

.compact-post-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #d5dbdb;
}

.compact-post-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Kompakt meta */
.compact-post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.compact-post-meta .post-date {
    font-size: 12px;
    color: #95a5a6;
}

.compact-post-meta .post-category {
    background: #e8f4fd;
    color: #3498db;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Kompakt cím */
.compact-post-title {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: #2c3e50;
    transition: color 0.3s ease;
}

.compact-post-link:hover .compact-post-title {
    color: #3498db;
}

/* Kompakt kivonat */
.compact-post-excerpt {
    font-size: 13px;
    line-height: 1.5;
    color: #7f8c8d;
    margin: 0;
}

/* ===== RESZPONZÍV DESIGN ===== */

/* Tablet nézet */
@media (max-width: 1024px) {
    .advanced-magazine-container {
        margin: 30px 0;
    }
    
    .featured-posts-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        margin-bottom: 40px;
    }
    
    .compact-posts-section {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .featured-post-image {
        height: 200px;
    }
    
    .featured-post-title {
        font-size: 18px;
        padding: 0 18px 12px;
    }
    
    .featured-post-excerpt {
        font-size: 14px;
        padding: 0 18px 18px;
    }
    
    .featured-post-meta {
        padding: 18px 18px 8px;
    }
    
    .read-more-link {
        margin: 0 18px 20px;
    }
}

/* Mobil nézet */
@media (max-width: 768px) {
    .advanced-magazine-container {
        margin: 20px 0;
    }
    
    .featured-posts-section {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 35px;
    }
    
    .compact-posts-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .featured-post-image {
        height: 180px;
    }
    
    .featured-post-title {
        font-size: 17px;
        padding: 0 15px 10px;
    }
    
    .featured-post-excerpt {
        font-size: 13px;
        padding: 0 15px 15px;
    }
    
    .featured-post-meta {
        padding: 15px 15px 5px;
        gap: 10px;
    }
    
    .read-more-link {
        margin: 0 15px 18px;
        font-size: 13px;
    }
    
    .compact-post-item {
        padding: 15px;
    }
    
    .compact-post-title {
        font-size: 15px;
    }
    
    .compact-post-excerpt {
        font-size: 12px;
    }
}

/* Kis mobil nézet */
@media (max-width: 480px) {
    .compact-posts-section {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .featured-post-image {
        height: 160px;
    }
    
    .featured-post-title {
        font-size: 16px;
    }
    
    .featured-post-excerpt {
        font-size: 12px;
    }
    
    .featured-post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .compact-post-item {
        padding: 12px;
    }
    
    .compact-post-title {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .compact-post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin-bottom: 10px;
    }
}

/* ===== SPECIÁLIS MEGJELENÍTÉSEK ===== */

/* Sötét mód támogatás */
@media (prefers-color-scheme: dark) {
    .featured-post-item,
    .compact-post-item {
        background: #34495e;
        color: #ecf0f1;
        border-color: #566573;
    }
    
    .featured-post-title,
    .compact-post-title {
        color: #ecf0f1;
    }
    
    .featured-post-title a:hover,
    .compact-post-link:hover .compact-post-title {
        color: #5dade2;
    }
    
    .featured-post-excerpt,
    .compact-post-excerpt {
        color: #bdc3c7;
    }
    
    .post-date {
        color: #95a5a6;
    }
    
    .compact-post-meta .post-category {
        background: #2c3e50;
        color: #5dade2;
    }
}

/* Mozgás csökkentése */
@media (prefers-reduced-motion: reduce) {
    .featured-post-item,
    .compact-post-item,
    .featured-post-image img,
    .read-more-link,
    .post-category {
        transition: none;
    }
    
    .featured-post-item:hover,
    .compact-post-item:hover {
        transform: none;
    }
    
    .featured-post-image:hover img {
        transform: none;
    }
    
    .read-more-link:hover {
        transform: none;
    }
}

/* Printelhető nézet */
@media print {
    .advanced-magazine-container {
        margin: 0;
    }
    
    .featured-posts-section,
    .compact-posts-section {
        display: block;
    }
    
    .featured-post-item,
    .compact-post-item {
        break-inside: avoid;
        margin-bottom: 20px;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .featured-post-image {
        height: auto;
        max-height: 150px;
    }
    
    .read-more-link {
        display: none;
    }
}