/* Advanced Magazine Posts Display - Új Verzió CSS */

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

/* Fő konténer */
.advanced-magazine-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

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

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

/* Másodlagos grid szekciók (ismétlődő 6-os blokkok) */
.featured-posts-section.secondary-grid {
    margin-top: 40px;
    margin-bottom: 40px;
}

.featured-post-item {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid #f1f3f4;
}

.featured-post-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

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

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

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

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

.post-category {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.post-category:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

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

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

.featured-post-title a:hover {
    color: #667eea;
}

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

/* Tovább link */
.read-more-link {
    display: inline-flex;
    align-items: center;
    margin: 0 25px 30px;
    color: #667eea;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 16px;
    border-radius: 25px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

.read-more-link:hover {
    color: #764ba2;
    transform: translateX(5px);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
}

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

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

/* ===== ÚJ HIBRID SZEKCIÓ (7-től) ===== */

.compact-posts-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

/* Nagy kiemelt post (bal oldal) */
.large-featured-post {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    transition: all 0.4s ease;
    border: 1px solid #f1f3f4;
}

.large-featured-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.18);
}

.large-featured-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

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

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

.large-featured-content {
    padding: 30px;
}

.large-featured-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.large-featured-meta .post-date {
    font-size: 14px;
    color: #6b7280;
}

.large-featured-meta .post-category {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 6px 16px;
    border-radius: 25px;
    box-shadow: 0 3px 12px rgba(240, 147, 251, 0.3);
}

.large-featured-title {
    margin: 0 0 20px 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    color: #1f2937;
}

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

.large-featured-title a:hover {
    color: #f5576c;
}

.large-featured-excerpt {
    font-size: 16px;
    line-height: 1.6;
    color: #4b5563;
    margin-bottom: 25px;
}

.large-featured-link {
    display: inline-flex;
    align-items: center;
    color: #f5576c;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    padding: 12px 20px;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(245, 87, 108, 0.1), rgba(240, 147, 251, 0.1));
}

.large-featured-link:hover {
    color: #f093fb;
    transform: translateX(5px);
    background: linear-gradient(135deg, rgba(245, 87, 108, 0.2), rgba(240, 147, 251, 0.2));
}

/* Kis postok oszlopa (jobb oldal) */
.small-posts-grid {
    display: grid;
    grid-template-rows: repeat(4, 1fr);
    gap: 20px;
}

.small-post-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f1f3f4;
    display: flex;
    min-height: 120px;
}

.small-post-item:hover {
    transform: translateX(5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.small-post-image {
    width: 100%;
    height: 120px;
    overflow: hidden;
    flex-shrink: 0;
}

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

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

.small-post-content {
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.small-post-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.small-post-meta .post-date {
    font-size: 11px;
    color: #9ca3af;
}

.small-post-meta .post-category {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 9px;
    box-shadow: 0 2px 8px rgba(79, 172, 254, 0.3);
}

.small-post-title {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #1f2937;
    transition: color 0.3s ease;
}

.small-post-excerpt {
    font-size: 12px;
    line-height: 1.4;
    color: #6b7280;
    margin: 0;
}

.small-post-item a {
    text-decoration: none;
    color: inherit;
}

.small-post-item:hover .small-post-title {
    color: #4facfe;
}

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

/* Tablet nézet */
@media (max-width: 1024px) {
    .advanced-magazine-container {
        margin: 30px 20px;
    }
    
    .featured-posts-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        margin-bottom: 50px;
    }
    
    .compact-posts-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .small-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }
    
    .featured-post-image {
        height: 220px;
    }
    
    .large-featured-image {
        height: 250px;
    }
}

/* Mobil nézet */
@media (max-width: 768px) {
    .advanced-magazine-container {
        margin: 20px 15px;
    }
    
    .featured-posts-section {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .compact-posts-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .small-posts-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .small-post-item {
        min-height: 100px;
    }
    
    .small-post-image {
        width: 80px;
        height: 100px;
    }
    
    .featured-post-image,
    .large-featured-image {
        height: 200px;
    }
    
    .featured-post-title {
        font-size: 20px;
        padding: 0 20px 12px;
    }
    
    .large-featured-title {
        font-size: 24px;
    }
    
    .featured-post-excerpt,
    .large-featured-excerpt {
        font-size: 14px;
        padding: 0 20px 15px;
    }
    
    .large-featured-content {
        padding: 25px 20px;
    }
    
    .featured-post-meta,
    .large-featured-meta {
        padding: 20px 20px 5px;
        gap: 10px;
    }
    
    .read-more-link,
    .large-featured-link {
        margin: 0 20px 25px;
        font-size: 13px;
    }
    
    .small-post-content {
        padding: 12px 15px;
    }
    
    .small-post-title {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .small-post-excerpt {
        font-size: 11px;
    }
}

/* Kis mobil nézet */
@media (max-width: 480px) {
    .featured-post-image,
    .large-featured-image {
        height: 180px;
    }
    
    .featured-post-title {
        font-size: 18px;
    }
    
    .large-featured-title {
        font-size: 22px;
    }
    
    .featured-post-excerpt,
    .large-featured-excerpt {
        font-size: 13px;
    }
    
    .featured-post-meta,
    .large-featured-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .small-post-item {
        flex-direction: column;
        min-height: auto;
    }
    
    .small-post-image {
        width: 100%;
        height: 120px;
    }
    
    .small-post-content {
        padding: 15px;
    }
    
    .small-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,
    .large-featured-post,
    .small-post-item {
        background: #1f2937;
        color: #f9fafb;
        border-color: #374151;
    }
    
    .featured-post-title,
    .large-featured-title,
    .small-post-title {
        color: #f9fafb;
    }
    
    .featured-post-title a:hover,
    .large-featured-title a:hover {
        color: #a78bfa;
    }
    
    .small-post-item:hover .small-post-title {
        color: #60a5fa;
    }
    
    .featured-post-excerpt,
    .large-featured-excerpt {
        color: #d1d5db;
    }
    
    .post-date {
        color: #9ca3af;
    }
}

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

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