/* Modern Category Page - Frissített Verzió CSS */

/* Alapértelmezett betűtípus */
* {
    font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ===== FŐ KONTÉNER ===== */
.category-page-container {
    margin: 60px 0;
    padding: 0;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border-radius: 24px;
    padding: 30px;
}

/* ===== KATEGÓRIA FEJLÉC ===== */
.category-header {
    text-align: center;
    margin-bottom: 80px;
    padding: 60px 40px;
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 50%, #0e7490 100%);
    border-radius: 28px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 25px 50px rgba(6, 182, 212, 0.25),
        0 12px 24px rgba(6, 182, 212, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.category-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(6,182,212,0.2) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.category-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M20 20c0-5.5-4.5-10-10-10s-10 4.5-10 10 4.5 10 10 10 10-4.5 10-10zm10 0c0-5.5-4.5-10-10-10s-10 4.5-10 10 4.5 10 10 10 10-4.5 10-10z'/%3E%3C/g%3E%3C/svg%3E") repeat;
    z-index: 1;
}

.category-header > * {
    position: relative;
    z-index: 3;
}

.category-title {
    font-size: 52px;
    font-weight: 900;
    margin: 0 0 30px 0;
    line-height: 1.1;
    text-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    background: linear-gradient(45deg, #ffffff, #f0fdff, #cffafe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    position: relative;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    border-radius: 2px;
}

.category-description {
    font-size: 22px;
    line-height: 1.7;
    margin: 0 auto 40px;
    max-width: 800px;
    opacity: 0.95;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.category-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.category-post-count {
    font-size: 18px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    padding: 16px 32px;
    border-radius: 30px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(15px);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.category-post-count::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.6s ease;
}

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

.category-post-count:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 24px rgba(255, 255, 255, 0.2);
}

.category-divider {
    width: 100px;
    height: 6px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    border-radius: 3px;
    position: relative;
}

.category-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* ===== BEJEGYZÉSEK GRID ===== */
.category-posts-grid {
    display: grid;
    gap: 40px;
    margin-bottom: 80px;
}

/* Grid oszlopok */
.category-posts-grid[data-columns="1"] {
    grid-template-columns: 1fr;
}

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

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

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

/* ===== BEJEGYZÉS ELEM ===== */
.category-post-item {
    background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 
        0 20px 40px rgba(15, 23, 42, 0.08),
        0 10px 20px rgba(15, 23, 42, 0.04);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border: 2px solid transparent;
    position: relative;
}

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

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

.category-post-item:hover {
    transform: translateY(-16px) scale(1.02);
    box-shadow: 
        0 40px 80px rgba(6, 182, 212, 0.15),
        0 20px 40px rgba(6, 182, 212, 0.1);
}

/* ===== KIEMELT KÉP ===== */
.category-post-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, #e0f2fe, #cffafe);
}

.category-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) saturate(1.1) contrast(1.05);
}

.category-post-item:hover .category-post-image img {
    transform: scale(1.15) rotate(1deg);
    filter: brightness(1.1) saturate(1.2) contrast(1.1);
}

/* Kép overlay */
.image-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    color: white;
    box-shadow: 
        0 20px 40px rgba(6, 182, 212, 0.3),
        0 10px 20px rgba(6, 182, 212, 0.2);
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
    font-size: 24px;
}

.image-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
    border-radius: inherit;
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.category-post-item:hover .image-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2) rotate(5deg);
}

.category-post-item:hover .image-overlay::before {
    transform: translateX(100%);
}

/* ===== TARTALOM ===== */
.category-post-content {
    padding: 35px;
    position: relative;
    z-index: 2;
}

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

.post-date {
    font-size: 14px;
    color: #64748b;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding: 8px 16px;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.post-date:hover {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
    transform: scale(1.05);
}

.post-author {
    font-size: 14px;
    color: #64748b;
    font-weight: 600;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    padding: 8px 16px;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.post-author:hover {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    transform: scale(1.05);
}

.post-category {
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 
        0 8px 16px rgba(236, 72, 153, 0.3),
        0 4px 8px rgba(236, 72, 153, 0.2);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    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 ease;
}

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

.post-category:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 12px 24px rgba(236, 72, 153, 0.4),
        0 6px 12px rgba(236, 72, 153, 0.3);
    background: linear-gradient(135deg, #f472b6 0%, #ec4899 100%);
}

/* Cím */
.category-post-title {
    margin: 0 0 22px 0;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

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

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

/* Kivonat */
.category-post-excerpt {
    font-size: 16px;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 30px;
    text-align: justify;
    font-weight: 400;
}

/* Tovább link */
.category-post-read-more {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 14px 28px;
    border-radius: 30px;
    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;
    border: 2px solid transparent;
}

.category-post-read-more::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.6s ease;
}

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

.category-post-read-more:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 16px 32px rgba(6, 182, 212, 0.4),
        0 8px 16px rgba(6, 182, 212, 0.3);
    background: linear-gradient(135deg, #0891b2, #0e7490);
    border-color: rgba(255, 255, 255, 0.2);
}

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

.category-post-read-more:hover::after {
    margin-left: 16px;
}

/* ===== PAGINATION ===== */
.category-pagination {
    margin-top: 80px;
    text-align: center;
}

.pagination-nav {
    display: inline-block;
}

.pagination-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination-item a,
.pagination-item span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    height: 54px;
    padding: 0 18px;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    color: #475569;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 
        0 8px 16px rgba(15, 23, 42, 0.05),
        0 4px 8px rgba(15, 23, 42, 0.03);
    position: relative;
    overflow: hidden;
}

.pagination-item a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    transition: left 0.3s ease;
    z-index: -1;
}

.pagination-item a:hover::before {
    left: 0;
}

.pagination-item a:hover {
    color: white;
    border-color: #06b6d4;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 16px 32px rgba(6, 182, 212, 0.3),
        0 8px 16px rgba(6, 182, 212, 0.2);
}

.pagination-item .current {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    border-color: #06b6d4;
    color: white;
    box-shadow: 
        0 12px 24px rgba(6, 182, 212, 0.3),
        0 6px 12px rgba(6, 182, 212, 0.2);
}

.pagination-item .dots {
    border: none;
    background: none;
    color: #9ca3af;
    box-shadow: none;
}

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

/* Large desktop */
@media (min-width: 1400px) {
    .category-posts-grid {
        gap: 50px;
    }
    
    .category-post-image {
        height: 320px;
    }
    
    .category-post-content {
        padding: 40px;
    }
    
    .category-title {
        font-size: 60px;
    }
    
    .category-post-title {
        font-size: 26px;
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .category-posts-grid {
        gap: 35px;
    }
    
    .category-post-image {
        height: 260px;
    }
    
    .category-post-title {
        font-size: 22px;
    }
    
    .category-title {
        font-size: 46px;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .category-page-container {
        margin: 50px 0;
        padding: 25px;
    }
    
    .category-header {
        margin-bottom: 60px;
        padding: 50px 30px;
        border-radius: 24px;
    }
    
    .category-title {
        font-size: 40px;
    }
    
    .category-description {
        font-size: 20px;
    }
    
    .category-posts-grid[data-columns="4"] {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-posts-grid[data-columns="3"] {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-posts-grid {
        gap: 30px;
        margin-bottom: 60px;
    }
    
    .category-post-image {
        height: 240px;
    }
    
    .category-post-content {
        padding: 30px;
    }
    
    .category-post-title {
        font-size: 21px;
    }
}

/* Mobil */
@media (max-width: 768px) {
    .category-page-container {
        margin: 40px 0;
        padding: 20px;
        border-radius: 20px;
    }
    
    .category-header {
        margin-bottom: 50px;
        padding: 40px 25px;
        border-radius: 20px;
    }
    
    .category-title {
        font-size: 36px;
    }
    
    .category-description {
        font-size: 18px;
    }
    
    .category-meta {
        flex-direction: column;
        gap: 25px;
    }
    
    .category-post-count {
        font-size: 16px;
        padding: 14px 28px;
    }
    
    .category-posts-grid[data-columns="2"],
    .category-posts-grid[data-columns="3"],
    .category-posts-grid[data-columns="4"] {
        grid-template-columns: 1fr;
    }
    
    .category-posts-grid {
        gap: 30px;
        margin-bottom: 50px;
    }
    
    .category-post-item {
        border-radius: 20px;
    }
    
    .category-post-image {
        height: 250px;
    }
    
    .category-post-content {
        padding: 28px;
    }
    
    .category-post-title {
        font-size: 20px;
        margin-bottom: 18px;
    }
    
    .category-post-excerpt {
        font-size: 15px;
        margin-bottom: 25px;
    }
    
    .category-post-meta {
        margin-bottom: 18px;
        gap: 15px;
    }
    
    .post-date,
    .post-author {
        font-size: 13px;
        padding: 6px 14px;
    }
    
    .post-category {
        font-size: 11px;
        padding: 6px 16px;
    }
    
    .category-post-read-more {
        font-size: 14px;
        padding: 12px 24px;
    }
    
    .pagination-list {
        gap: 12px;
        flex-wrap: wrap;
    }
    
    .pagination-item a,
    .pagination-item span {
        min-width: 48px;
        height: 48px;
        font-size: 14px;
        padding: 0 16px;
    }
}

/* Kis mobil */
@media (max-width: 480px) {
    .category-page-container {
        margin: 30px 0;
        padding: 15px;
    }
    
    .category-header {
        padding: 30px 20px;
    }
    
    .category-title {
        font-size: 32px;
    }
    
    .category-description {
        font-size: 16px;
    }
    
    .category-posts-grid {
        gap: 25px;
    }
    
    .category-post-image {
        height: 220px;
    }
    
    .category-post-content {
        padding: 25px;
    }
    
    .category-post-title {
        font-size: 19px;
    }
    
    .category-post-excerpt {
        font-size: 14px;
    }
    
    .category-post-read-more {
        font-size: 13px;
        padding: 11px 22px;
    }
    
    .pagination-item a,
    .pagination-item span {
        min-width: 44px;
        height: 44px;
        font-size: 13px;
        padding: 0 14px;
    }
}

/* ===== SPECIÁLIS STÍLUSOK ===== */

/* Sötét mód támogatás */
@media (prefers-color-scheme: dark) {
    .category-page-container {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    }
    
    .category-post-item {
        background: linear-gradient(145deg, #1e293b 0%, #334155 100%);
        border-color: #475569;
        color: #f8fafc;
    }
    
    .category-header {
        background: linear-gradient(135deg, #1e293b 0%, #374151 50%, #475569 100%);
    }
    
    .category-post-title a {
        color: #f8fafc;
        background: linear-gradient(135deg, #22d3ee, #06b6d4);
    }
    
    .category-post-title a:hover {
        color: #22d3ee;
    }
    
    .category-post-excerpt {
        color: #cbd5e1;
    }
    
    .post-date,
    .post-author {
        background: linear-gradient(135deg, #374151, #475569);
        color: #e5e7eb;
        border-color: #64748b;
    }
    
    .category-post-image {
        background: linear-gradient(135deg, #374151, #475569);
    }
    
    .pagination-item a,
    .pagination-item span {
        background: linear-gradient(145deg, #1e293b, #334155);
        border-color: #475569;
        color: #f8fafc;
    }
    
    .pagination-item a:hover {
        border-color: #22d3ee;
    }
    
    .pagination-item .current {
        background: linear-gradient(135deg, #22d3ee, #06b6d4);
        border-color: #22d3ee;
    }
}

/* Mozgás csökkentése preferencia */
@media (prefers-reduced-motion: reduce) {
    .category-post-item,
    .category-post-image img,
    .image-overlay,
    .category-post-title a,
    .category-post-read-more,
    .pagination-item a,
    .category-header::before {
        transition: none;
        animation: none;
    }
    
    .category-post-item:hover {
        transform: none;
    }
    
    .category-post-item:hover .category-post-image img {
        transform: none;
    }
    
    .category-post-item:hover .image-overlay {
        transform: translate(-50%, -50%);
    }
    
    .category-post-read-more:hover,
    .pagination-item a:hover {
        transform: none;
    }
}

/* Magas kontraszt mód */
@media (prefers-contrast: high) {
    .category-post-item {
        border: 3px solid #000;
        background: #fff;
    }
    
    .category-title,
    .category-post-title a {
        color: #000;
        background: none;
        -webkit-text-fill-color: initial;
    }
    
    .category-post-title a:hover,
    .category-post-read-more {
        background: #000;
        color: #fff;
    }
    
    .category-post-excerpt {
        color: #333;
    }
    
    .pagination-item a,
    .pagination-item span {
        border: 2px solid #000;
        color: #000;
        background: #fff;
    }
    
    .pagination-item a:hover,
    .pagination-item .current {
        background: #000;
        color: #fff;
    }
}

/* Printelhető nézet */
@media print {
    .category-page-container {
        margin: 0;
        background: white;
        padding: 0;
    }
    
    .category-header {
        background: none !important;
        color: #000 !important;
        padding: 20px 0;
        border: 2px solid #ddd;
        border-radius: 0;
    }
    
    .category-header::before,
    .category-header::after {
        display: none;
    }
    
    .category-title {
        font-size: 28px;
        color: #000 !important;
        background: none !important;
        -webkit-text-fill-color: initial !important;
        text-shadow: none;
    }
    
    .category-description {
        color: #333 !important;
        font-size: 16px;
    }
    
    .category-post-count {
        background: #f0f0f0 !important;
        color: #000 !important;
        border-color: #ddd !important;
    }
    
    .category-posts-grid {
        display: block;
        gap: 0;
    }
    
    .category-post-item {
        break-inside: avoid;
        margin-bottom: 25px;
        box-shadow: none;
        border: 2px solid #ddd;
        background: white !important;
        transform: none !important;
    }
    
    .category-post-image {
        height: 180px;
    }
    
    .image-overlay {
        display: none;
    }
    
    .category-post-title a,
    .category-post-read-more {
        color: #000 !important;
        background: none !important;
        text-shadow: none;
        box-shadow: none !important;
    }
    
    .category-post-read-more::after {
        display: none;
    }
    
    .post-category,
    .post-date,
    .post-author {
        background: #f5f5f5 !important;
        color: #000 !important;
        border-color: #ddd !important;
        box-shadow: none !important;
    }
    
    .category-pagination {
        display: none;
    }
}

/* Focus állapotok akadálymentességhez */
.category-post-title a:focus,
.category-post-read-more:focus,
.category-post-image a:focus,
.pagination-item a:focus {
    outline: 3px solid #06b6d4;
    outline-offset: 3px;
    border-radius: 4px;
}

/* Loading animációk */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInScale {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.category-post-item {
    animation: slideInScale 0.8s cubic-bezier(0.23, 1, 0.32, 1) both;
}

.category-post-item:nth-child(1) { animation-delay: 0.1s; }
.category-post-item:nth-child(2) { animation-delay: 0.2s; }
.category-post-item:nth-child(3) { animation-delay: 0.3s; }
.category-post-item:nth-child(4) { animation-delay: 0.4s; }
.category-post-item:nth-child(5) { animation-delay: 0.5s; }
.category-post-item:nth-child(6) { animation-delay: 0.6s; }
.category-post-item:nth-child(7) { animation-delay: 0.7s; }
.category-post-item:nth-child(8) { animation-delay: 0.8s; }
.category-post-item:nth-child(9) { animation-delay: 0.9s; }
.category-post-item:nth-child(10) { animation-delay: 1.0s; }
.category-post-item:nth-child(11) { animation-delay: 1.1s; }
.category-post-item:nth-child(12) { animation-delay: 1.2s; }

/* Skeleton loading effect (opcionális) */
.category-post-item.loading {
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* Hover effektusok finomhangolása */
.category-post-item:hover .category-post-content {
    transform: translateY(-2px);
}

.category-post-meta > * {
    transition: all 0.3s ease;
}

.category-post-meta:hover > * {
    transform: scale(1.02);
}

/* Extra animációk mobilon kikapcsolva */
@media (max-width: 768px) {
    .category-post-item {
        animation-duration: 0.6s;
    }
    
    .category-post-item:nth-child(n) {
        animation-delay: 0.1s;
    }
}

/* Gyors internet kapcsolat esetén gyorsabb animációk */
@media (prefers-reduced-data: no-preference) {
    .category-header::before {
        animation-duration: 15s;
    }
    
    .category-post-item {
        animation-duration: 0.9s;
    }
}

/* Lassú internet kapcsolat esetén egyszerűbb animációk */
@media (prefers-reduced-data: reduce) {
    .category-header::before,
    .category-header::after {
        display: none;
    }
    
    .category-post-item {
        animation: fadeInUp 0.5s ease both;
    }
    
    .category-post-item:nth-child(n) {
        animation-delay: 0;
    }
}

/* Container queries support (ha elérhető) */
@container (max-width: 600px) {
    .category-posts-grid[data-columns="2"],
    .category-posts-grid[data-columns="3"],
    .category-posts-grid[data-columns="4"] {
        grid-template-columns: 1fr;
    }
}

/* Esti/éjszakai mód finomhangolása */
@media (prefers-color-scheme: dark) and (prefers-contrast: more) {
    .category-post-item {
        border-color: #64748b;
    }
    
    .category-title {
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    }
    
    .category-post-title a {
        color: #e2e8f0;
    }
}