/* Modern Magazine Posts Display - Frissített Verzió CSS */

/* Alapértelmezett betűtípus */
* {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Fő konténer */
.advanced-magazine-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 20px;
    border-radius: 24px;
}

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

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

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

.featured-post-item {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 20px 40px rgba(15, 23, 42, 0.08),
        0 8px 16px rgba(15, 23, 42, 0.04);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border: 2px solid transparent;
    position: relative;
}

.featured-post-item::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: linear-gradient(135deg, #06b6d4, #3b82f6, #8b5cf6);
    border-radius: inherit;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.featured-post-item:hover::before {
    opacity: 1;
}

.featured-post-item:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 
        0 32px 64px rgba(15, 23, 42, 0.15),
        0 16px 32px rgba(15, 23, 42, 0.08);
}

/* Kiemelt kép */
.featured-post-image {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: linear-gradient(45deg, #e2e8f0, #cbd5e1);
}

.featured-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    filter: brightness(1.05) contrast(1.1);
}

.featured-post-image:hover img {
    transform: scale(1.12) rotate(1deg);
}

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

.post-date {
    font-size: 14px;
    color: #64748b;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    padding: 6px 12px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.post-category {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 50%, #0e7490 100%);
    color: white;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 
        0 8px 16px rgba(6, 182, 212, 0.3),
        0 4px 8px rgba(6, 182, 212, 0.2);
    position: relative;
    overflow: hidden;
}

.post-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.post-category:hover::before {
    left: 100%;
}

.post-category:hover {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 50%, #22d3ee 100%);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 12px 24px rgba(6, 182, 212, 0.4),
        0 6px 12px rgba(6, 182, 212, 0.3);
}

/* Kiemelt cím */
.featured-post-title {
    margin: 0;
    padding: 0 30px 18px;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
    color: #0f172a;
    letter-spacing: -0.5px;
}

.featured-post-title a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    background-size: 0% 3px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.3s ease;
}

.featured-post-title a:hover {
    color: #0891b2;
    background-size: 100% 3px;
}

/* Kivonat */
.featured-post-excerpt {
    padding: 0 30px 25px;
    font-size: 16px;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 10px;
    font-weight: 400;
}

/* Tovább link */
.read-more-link {
    display: inline-flex;
    align-items: center;
    margin: 0 30px 35px;
    color: #0f172a;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    padding: 12px 20px;
    border-radius: 30px;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border: 2px solid #e2e8f0;
    overflow: hidden;
}

.read-more-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    transition: left 0.3s ease;
    z-index: -1;
}

.read-more-link:hover::before {
    left: 0;
}

.read-more-link:hover {
    color: white;
    transform: translateX(8px) scale(1.05);
    border-color: #06b6d4;
    box-shadow: 0 8px 16px rgba(6, 182, 212, 0.3);
}

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

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

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

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

/* Nagy kiemelt post (bal oldal) */
.large-featured-post {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 
        0 24px 48px rgba(15, 23, 42, 0.1),
        0 12px 24px rgba(15, 23, 42, 0.05);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border: 2px solid #f1f5f9;
    position: relative;
}

.large-featured-post::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: linear-gradient(135deg, #ec4899, #f59e0b, #ef4444);
    border-radius: inherit;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.large-featured-post:hover::before {
    opacity: 1;
}

.large-featured-post:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 
        0 36px 72px rgba(15, 23, 42, 0.15),
        0 18px 36px rgba(15, 23, 42, 0.08);
}

.large-featured-image {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: linear-gradient(45deg, #fde68a, #fed7aa);
}

.large-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    filter: brightness(1.05) contrast(1.1);
}

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

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

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

.large-featured-meta .post-date {
    font-size: 15px;
    color: #64748b;
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
    border: 1px solid #fbbf24;
}

.large-featured-meta .post-category {
    background: linear-gradient(135deg, #ec4899 0%, #be185d 50%, #9d174d 100%);
    padding: 8px 20px;
    border-radius: 30px;
    box-shadow: 
        0 8px 16px rgba(236, 72, 153, 0.3),
        0 4px 8px rgba(236, 72, 153, 0.2);
}

.large-featured-meta .post-category:hover {
    background: linear-gradient(135deg, #f472b6 0%, #ec4899 50%, #db2777 100%);
}

.large-featured-title {
    margin: 0 0 25px 0;
    font-size: 32px;
    font-weight: 900;
    line-height: 1.2;
    color: #0f172a;
    letter-spacing: -1px;
}

.large-featured-title a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ec4899, #f59e0b);
    background-size: 0% 4px;
    background-repeat: no-repeat;
    background-position: left bottom;
    transition: background-size 0.3s ease;
}

.large-featured-title a:hover {
    color: #be185d;
    background-size: 100% 4px;
}

.large-featured-excerpt {
    font-size: 18px;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 30px;
    font-weight: 400;
}

.large-featured-link {
    display: inline-flex;
    align-items: center;
    color: #0f172a;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    padding: 14px 24px;
    border-radius: 35px;
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
    border: 2px solid #fbbf24;
    position: relative;
    overflow: hidden;
}

.large-featured-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ec4899, #f59e0b);
    transition: left 0.3s ease;
    z-index: -1;
}

.large-featured-link:hover::before {
    left: 0;
}

.large-featured-link:hover {
    color: white;
    transform: translateX(8px) scale(1.05);
    border-color: #ec4899;
    box-shadow: 0 8px 16px rgba(236, 72, 153, 0.3);
}

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

.small-post-item {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 
        0 12px 24px rgba(15, 23, 42, 0.06),
        0 6px 12px rgba(15, 23, 42, 0.04);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border: 2px solid #f1f5f9;
    display: flex;
    min-height: 130px;
    position: relative;
}

.small-post-item::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: linear-gradient(135deg, #10b981, #059669, #047857);
    border-radius: inherit;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.small-post-item:hover::before {
    opacity: 1;
}

.small-post-item:hover {
    transform: translateX(8px) scale(1.02);
    box-shadow: 
        0 16px 32px rgba(15, 23, 42, 0.1),
        0 8px 16px rgba(15, 23, 42, 0.06);
}

.small-post-image {
    width: 100%;
    height: 130px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(45deg, #d1fae5, #a7f3d0);
}

.small-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    filter: brightness(1.05) contrast(1.1);
}

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

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

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

.small-post-meta .post-date {
    font-size: 12px;
    color: #64748b;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 1px solid #10b981;
    padding: 4px 8px;
}

.small-post-meta .post-category {
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 10px;
    box-shadow: 
        0 4px 8px rgba(16, 185, 129, 0.3),
        0 2px 4px rgba(16, 185, 129, 0.2);
}

.small-post-meta .post-category:hover {
    background: linear-gradient(135deg, #34d399 0%, #10b981 50%, #059669 100%);
}

.small-post-title {
    margin: 0 0 10px 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: #0f172a;
    transition: color 0.3s ease;
    letter-spacing: -0.3px;
}

.small-post-excerpt {
    font-size: 13px;
    line-height: 1.5;
    color: #64748b;
    margin: 0;
    font-weight: 400;
}

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

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

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

/* Tablet nézet */
@media (max-width: 1024px) {
    .advanced-magazine-container {
        margin: 20px 15px;
        padding: 15px;
    }
    
    .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: 240px;
    }
    
    .large-featured-image {
        height: 280px;
    }
}

/* Mobil nézet */
@media (max-width: 768px) {
    .advanced-magazine-container {
        margin: 15px 10px;
        padding: 10px;
        border-radius: 16px;
    }
    
    .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: 110px;
    }
    
    .small-post-image {
        width: 90px;
        height: 110px;
    }
    
    .featured-post-image,
    .large-featured-image {
        height: 220px;
    }
    
    .featured-post-title {
        font-size: 22px;
        padding: 0 25px 15px;
    }
    
    .large-featured-title {
        font-size: 28px;
    }
    
    .featured-post-excerpt,
    .large-featured-excerpt {
        font-size: 15px;
        padding: 0 25px 20px;
    }
    
    .large-featured-content {
        padding: 25px 20px;
    }
    
    .featured-post-meta,
    .large-featured-meta {
        padding: 25px 25px 10px;
        gap: 12px;
    }
    
    .read-more-link,
    .large-featured-link {
        margin: 0 25px 30px;
        font-size: 14px;
    }
    
    .small-post-content {
        padding: 15px 18px;
    }
    
    .small-post-title {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .small-post-excerpt {
        font-size: 12px;
    }
}

/* Kis mobil nézet */
@media (max-width: 480px) {
    .featured-post-image,
    .large-featured-image {
        height: 200px;
    }
    
    .featured-post-title {
        font-size: 20px;
    }
    
    .large-featured-title {
        font-size: 26px;
    }
    
    .featured-post-excerpt,
    .large-featured-excerpt {
        font-size: 14px;
    }
    
    .featured-post-meta,
    .large-featured-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .small-post-item {
        flex-direction: column;
        min-height: auto;
    }
    
    .small-post-image {
        width: 100%;
        height: 140px;
    }
    
    .small-post-content {
        padding: 18px;
    }
    
    .small-post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 12px;
    }
}

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

/* Sötét mód támogatás */
@media (prefers-color-scheme: dark) {
    .advanced-magazine-container {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    }
    
    .featured-post-item,
    .large-featured-post,
    .small-post-item {
        background: linear-gradient(145deg, #1e293b 0%, #334155 100%);
        color: #f8fafc;
        border-color: #475569;
    }
    
    .featured-post-title,
    .large-featured-title,
    .small-post-title {
        color: #f8fafc;
    }
    
    .featured-post-title a:hover,
    .large-featured-title a:hover {
        color: #22d3ee;
    }
    
    .small-post-item:hover .small-post-title {
        color: #34d399;
    }
    
    .featured-post-excerpt,
    .large-featured-excerpt {
        color: #cbd5e1;
    }
    
    .post-date {
        color: #94a3b8;
        background: linear-gradient(135deg, #334155, #475569);
        border-color: #64748b;
    }
}

/* 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;
        background: white;
        padding: 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: 2px solid #e2e8f0;
        background: white;
    }
    
    .featured-post-image,
    .large-featured-image {
        height: auto;
        max-height: 180px;
    }
    
    .read-more-link,
    .large-featured-link {
        display: none;
    }
}