/* Modern Optimalizált Bejegyzés Megjelenítő CSS */

/* Alapértelmezett betűtípusok */
.optimized-post-display {
    font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    width: 100%;
    margin: 0;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    box-shadow: 
        0 20px 40px rgba(15, 23, 42, 0.08),
        0 10px 20px rgba(15, 23, 42, 0.04);
    border: 2px solid transparent;
    overflow: hidden;
    position: relative;
}

.optimized-post-display::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;
}

.optimized-post-display:hover::before {
    opacity: 1;
}

/* ===== META INFORMÁCIÓK BLOKK ===== */

.post-meta-block {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 50%, #0e7490 100%);
    color: white;
    padding: 30px 40px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.post-meta-block::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 50%);
    animation: float 15s ease-in-out infinite;
    z-index: 1;
}

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

.post-meta-block > * {
    position: relative;
    z-index: 2;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 35px;
    justify-content: flex-start;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 18px;
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.meta-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 16px rgba(255, 255, 255, 0.1);
}

.meta-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    opacity: 0.9;
    margin-right: 6px;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 11px;
}

/* Dátum elem */
.date-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(29, 78, 216, 0.2));
    border-color: rgba(59, 130, 246, 0.3);
}

.post-published-date,
.post-modified-date {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.3px;
}

.post-modified-date {
    opacity: 0.9;
    font-size: 13px;
    font-weight: 500;
}

/* Olvasási idő elem */
.reading-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(4, 120, 87, 0.2));
    border-color: rgba(16, 185, 129, 0.3);
}

.reading-time,
.word-count {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
}

.word-count {
    font-size: 13px;
    opacity: 0.9;
}

/* Kategóriák elem */
.categories-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(190, 24, 93, 0.2));
    border-color: rgba(236, 72, 153, 0.3);
}

.categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-tag {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border: 2px solid rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.category-tag::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;
}

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

.category-tag:hover {
    background: rgba(255, 255, 255, 0.4);
    color: white;
    transform: translateY(-2px) scale(1.05);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 6px 12px rgba(255, 255, 255, 0.2);
}

/* Címkék elem */
.tags-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(124, 58, 237, 0.2));
    border-color: rgba(139, 92, 246, 0.3);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-item {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    padding: 5px 12px;
    border-radius: 16px;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.tag-item::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;
}

.tag-item:hover::before {
    left: 100%;
}

.tag-item:hover {
    background: rgba(255, 255, 255, 0.35);
    color: white;
    transform: translateY(-2px) scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
}

/* ===== FŐ BEJEGYZÉS CÍM ===== */

.post-main-title {
    font-family: 'Merriweather', 'Playfair Display', Georgia, serif;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    color: #0f172a;
    padding: 40px 40px 0;
    text-align: left;
    letter-spacing: -0.8px;
    background: linear-gradient(135deg, #0f172a, #1e293b, #334155);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.post-main-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 40px;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #06b6d4, #3b82f6);
    border-radius: 2px;
}

/* ===== BEJEGYZÉS FEJLÉC (Eltávolítva alapértelmezetten) ===== */

.post-header {
    padding: 50px 40px 40px;
    border-bottom: 2px solid #e2e8f0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    display: none; /* Alapértelmezetten rejtett */
    position: relative;
}

.post-header::before {
    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='%2306b6d4' fill-opacity='0.05'%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;
}

.post-header > * {
    position: relative;
    z-index: 2;
}

.post-header.show {
    display: block;
}

.post-title {
    font-family: 'Merriweather', 'Playfair Display', Georgia, serif;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.1;
    color: #0f172a;
    margin: 0 0 25px 0;
    text-align: center;
    letter-spacing: -0.8px;
}

.post-excerpt {
    font-size: 20px;
    line-height: 1.7;
    color: #475569;
    text-align: center;
    font-style: italic;
    margin: 0;
    padding: 0 30px;
    font-weight: 400;
}

/* ===== BEJEGYZÉS TARTALOM ===== */

.post-content-wrapper {
    padding: 40px;
    font-family: 'Inter', 'SF Pro Text', sans-serif;
    font-size: 17px;
    line-height: 1.8;
    color: #374151;
    width: 100%;
    box-sizing: border-box;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

/* Tartalom tipográfia */
.post-content-wrapper h2 {
    font-family: 'Merriweather', 'Playfair Display', Georgia, serif;
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
    margin: 50px 0 25px 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
    position: relative;
    padding-left: 20px;
}

.post-content-wrapper h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 60%;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    border-radius: 3px;
}

.post-content-wrapper h3 {
    font-family: 'Merriweather', 'Playfair Display', Georgia, serif;
    font-size: 26px;
    font-weight: 600;
    color: #1e293b;
    margin: 40px 0 20px 0;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.post-content-wrapper h4 {
    font-size: 22px;
    font-weight: 600;
    color: #334155;
    margin: 35px 0 18px 0;
    line-height: 1.4;
    letter-spacing: -0.2px;
}

.post-content-wrapper h5,
.post-content-wrapper h6 {
    font-size: 19px;
    font-weight: 600;
    color: #475569;
    margin: 30px 0 15px 0;
    line-height: 1.4;
}

.post-content-wrapper p {
    margin: 0 0 24px 0;
    text-align: justify;
    font-weight: 400;
}

.post-content-wrapper ul,
.post-content-wrapper ol {
    margin: 25px 0;
    padding-left: 35px;
}

.post-content-wrapper li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.post-content-wrapper blockquote {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-left: 6px solid #06b6d4;
    margin: 35px 0;
    padding: 25px 30px;
    font-style: italic;
    font-size: 19px;
    color: #0f172a;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.1);
    position: relative;
}

.post-content-wrapper blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 48px;
    color: #06b6d4;
    font-family: serif;
    line-height: 1;
}

.post-content-wrapper a {
    color: #06b6d4;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
}

.post-content-wrapper a:hover {
    color: #0891b2;
    background-size: 100% 2px;
}

.post-content-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 30px 0;
    box-shadow: 
        0 20px 40px rgba(15, 23, 42, 0.1),
        0 10px 20px rgba(15, 23, 42, 0.05);
    border: 3px solid #f1f5f9;
    transition: transform 0.3s ease;
}

.post-content-wrapper img:hover {
    transform: scale(1.02);
}

.post-content-wrapper code {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    color: #dc2626;
    padding: 4px 8px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 15px;
    font-weight: 600;
    border: 1px solid #e2e8f0;
}

.post-content-wrapper pre {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #f8fafc;
    padding: 25px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 30px 0;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 15px;
    line-height: 1.6;
    box-shadow: 
        0 20px 40px rgba(15, 23, 42, 0.2),
        0 10px 20px rgba(15, 23, 42, 0.1);
    border: 2px solid #334155;
}

.post-content-wrapper pre code {
    background: none;
    color: inherit;
    padding: 0;
    border: none;
    font-weight: 400;
}

.post-content-wrapper table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 
        0 20px 40px rgba(15, 23, 42, 0.08),
        0 10px 20px rgba(15, 23, 42, 0.04);
    border: 2px solid #f1f5f9;
}

.post-content-wrapper th,
.post-content-wrapper td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.post-content-wrapper th {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    font-weight: 700;
    color: #0f172a;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.8px;
}

.post-content-wrapper tr:hover {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.post-content-wrapper tr:last-child td {
    border-bottom: none;
}

/* ===== KÖZÖSSÉGI MEGOSZTÁS ===== */

.social-share-block {
    padding: 40px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-top: 2px solid #e2e8f0;
    position: relative;
}

.social-share-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='30' height='30' viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%2306b6d4' fill-opacity='0.03'%3E%3Ccircle cx='15' cy='15' r='3'/%3E%3C/g%3E%3C/svg%3E") repeat;
    z-index: 1;
}

.social-share-block > * {
    position: relative;
    z-index: 2;
}

.share-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 25px 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-share-buttons {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    min-width: 120px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.share-button::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;
}

.share-button:hover::before {
    left: 100%;
}

.share-button.facebook {
    background: linear-gradient(135deg, #1877f2, #166fe5);
    color: white;
    box-shadow: 0 8px 16px rgba(24, 119, 242, 0.3);
}

.share-button.facebook:hover {
    background: linear-gradient(135deg, #166fe5, #1460c4);
    color: white;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 24px rgba(24, 119, 242, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.share-button.twitter {
    background: linear-gradient(135deg, #1da1f2, #1991db);
    color: white;
    box-shadow: 0 8px 16px rgba(29, 161, 242, 0.3);
}

.share-button.twitter:hover {
    background: linear-gradient(135deg, #1991db, #1881c4);
    color: white;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 24px rgba(29, 161, 242, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.share-button.linkedin {
    background: linear-gradient(135deg, #0a66c2, #0958a5);
    color: white;
    box-shadow: 0 8px 16px rgba(10, 102, 194, 0.3);
}

.share-button.linkedin:hover {
    background: linear-gradient(135deg, #0958a5, #084a88);
    color: white;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 24px rgba(10, 102, 194, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.share-button.email {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
    box-shadow: 0 8px 16px rgba(107, 114, 128, 0.3);
}

.share-button.email:hover {
    background: linear-gradient(135deg, #4b5563, #374151);
    color: white;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 24px rgba(107, 114, 128, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

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

/* Tablet nézet */
@media (max-width: 1024px) {
    .optimized-post-display {
        border-radius: 20px;
    }
    
    .post-meta-block {
        padding: 25px 30px;
    }
    
    .meta-row {
        gap: 30px;
    }
    
    .meta-item {
        padding: 10px 16px;
    }
    
    .post-main-title {
        font-size: 36px;
        padding: 30px 30px 0;
    }
    
    .post-main-title::after {
        left: 30px;
    }
    
    .post-content-wrapper {
        padding: 30px;
        font-size: 16px;
    }
    
    .post-content-wrapper h2 {
        font-size: 28px;
    }
    
    .post-content-wrapper h3 {
        font-size: 24px;
    }
    
    .social-share-block {
        padding: 30px;
    }
}

/* Mobil nézet */
@media (max-width: 768px) {
    .optimized-post-display {
        border-radius: 16px;
    }
    
    .post-meta-block {
        padding: 20px 25px;
    }
    
    .meta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .meta-item {
        width: 100%;
        padding: 12px 16px;
    }
    
    .categories-list,
    .tags-list {
        gap: 6px;
    }
    
    .post-main-title {
        font-size: 32px;
        padding: 25px 25px 0;
        line-height: 1.3;
    }
    
    .post-main-title::after {
        left: 25px;
        width: 60px;
    }
    
    .post-header {
        padding: 40px 25px 30px;
    }
    
    .post-title {
        font-size: 32px;
    }
    
    .post-excerpt {
        font-size: 18px;
        padding: 0 15px;
    }
    
    .post-content-wrapper {
        padding: 25px;
        font-size: 15px;
    }
    
    .post-content-wrapper h2 {
        font-size: 26px;
        margin: 40px 0 20px 0;
    }
    
    .post-content-wrapper h3 {
        font-size: 22px;
        margin: 35px 0 18px 0;
    }
    
    .post-content-wrapper h4 {
        font-size: 20px;
    }
    
    .post-content-wrapper blockquote {
        font-size: 17px;
        padding: 20px 25px;
        margin: 30px 0;
    }
    
    .social-share-block {
        padding: 25px;
    }
    
    .social-share-buttons {
        gap: 15px;
    }
    
    .share-button {
        padding: 12px 20px;
        font-size: 14px;
        min-width: 100px;
    }
}

/* Kis mobil nézet */
@media (max-width: 480px) {
    .optimized-post-display {
        border-radius: 12px;
    }
    
    .post-meta-block {
        padding: 18px 20px;
    }
    
    .meta-row {
        gap: 15px;
    }
    
    .meta-item {
        padding: 10px 14px;
    }
    
    .meta-label {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .post-published-date,
    .post-modified-date,
    .reading-time,
    .word-count {
        font-size: 13px;
    }
    
    .category-tag {
        font-size: 11px;
        padding: 5px 12px;
    }
    
    .tag-item {
        font-size: 10px;
        padding: 4px 10px;
    }
    
    .post-main-title {
        font-size: 28px;
        padding: 20px 20px 0;
        line-height: 1.2;
    }
    
    .post-main-title::after {
        left: 20px;
        width: 50px;
        height: 3px;
    }
    
    .post-header {
        padding: 30px 20px 25px;
    }
    
    .post-title {
        font-size: 28px;
        line-height: 1.2;
    }
    
    .post-excerpt {
        font-size: 16px;
        padding: 0 10px;
    }
    
    .post-content-wrapper {
        padding: 20px;
        font-size: 14px;
        text-align: left;
    }
    
    .post-content-wrapper h2 {
        font-size: 24px;
        padding-left: 15px;
    }
    
    .post-content-wrapper h2::before {
        width: 4px;
    }
    
    .post-content-wrapper h3 {
        font-size: 20px;
    }
    
    .post-content-wrapper h4 {
        font-size: 18px;
    }
    
    .post-content-wrapper ul,
    .post-content-wrapper ol {
        padding-left: 25px;
    }
    
    .post-content-wrapper blockquote {
        font-size: 15px;
        padding: 15px 20px;
        margin: 25px 0;
    }
    
    .post-content-wrapper blockquote::before {
        font-size: 36px;
        top: -5px;
        left: 15px;
    }
    
    .social-share-block {
        padding: 20px;
    }
    
    .share-title {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .social-share-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .share-button {
        width: 100%;
        max-width: 240px;
        padding: 12px 20px;
        font-size: 13px;
    }
}

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

/* Sötét mód támogatás */
@media (prefers-color-scheme: dark) {
    .optimized-post-display {
        background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
        color: #f8fafc;
    }
    
    .post-meta-block {
        background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
    }
    
    .meta-item {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.15);
    }
    
    .meta-item:hover {
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.2);
    }
    
    .post-main-title {
        color: #f8fafc;
        background: linear-gradient(135deg, #f8fafc, #e2e8f0, #cbd5e1);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .post-main-title::after {
        background: linear-gradient(90deg, #22d3ee, #06b6d4);
    }
    
    .post-header {
        background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
        border-bottom-color: #475569;
    }
    
    .post-title {
        color: #f8fafc;
    }
    
    .post-excerpt {
        color: #cbd5e1;
    }
    
    .post-content-wrapper {
        color: #e2e8f0;
        background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    }
    
    .post-content-wrapper h2,
    .post-content-wrapper h3,
    .post-content-wrapper h4,
    .post-content-wrapper h5,
    .post-content-wrapper h6 {
        color: #f8fafc;
    }
    
    .post-content-wrapper h2::before {
        background: linear-gradient(135deg, #22d3ee, #06b6d4);
    }
    
    .post-content-wrapper blockquote {
        background: linear-gradient(135deg, #1e293b, #334155);
        color: #cbd5e1;
        border-left-color: #22d3ee;
    }
    
    .post-content-wrapper blockquote::before {
        color: #22d3ee;
    }
    
    .post-content-wrapper a {
        color: #22d3ee;
        background: linear-gradient(135deg, #22d3ee, #06b6d4);
        background-size: 0% 2px;
    }
    
    .post-content-wrapper a:hover {
        color: #06b6d4;
        background-size: 100% 2px;
    }
    
    .post-content-wrapper code {
        background: linear-gradient(135deg, #334155, #475569);
        color: #fbbf24;
        border-color: #64748b;
    }
    
    .post-content-wrapper pre {
        background: linear-gradient(135deg, #0f172a, #1e293b);
        border-color: #475569;
    }
    
    .post-content-wrapper table {
        background: #1e293b;
        border-color: #475569;
    }
    
    .post-content-wrapper th {
        background: linear-gradient(135deg, #334155, #475569);
        color: #f8fafc;
    }
    
    .post-content-wrapper td {
        border-bottom-color: #475569;
    }
    
    .post-content-wrapper tr:hover {
        background: linear-gradient(135deg, #334155, #475569);
    }
    
    .post-content-wrapper img {
        border-color: #475569;
    }
    
    .social-share-block {
        background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
        border-top-color: #475569;
    }
    
    .share-title {
        color: #f8fafc;
    }
}

/* Mozgás csökkentése */
@media (prefers-reduced-motion: reduce) {
    .optimized-post-display::before,
    .post-meta-block::before,
    .meta-item,
    .category-tag,
    .tag-item,
    .share-button,
    .post-content-wrapper img {
        transition: none;
        animation: none;
    }
    
    .meta-item:hover,
    .category-tag:hover,
    .tag-item:hover,
    .share-button:hover,
    .post-content-wrapper img:hover {
        transform: none;
    }
    
    .category-tag::before,
    .tag-item::before,
    .share-button::before {
        display: none;
    }
}

/* Magas kontraszt mód */
@media (prefers-contrast: high) {
    .optimized-post-display {
        border: 3px solid #000;
        background: #fff;
    }
    
    .post-meta-block {
        background: #000;
        color: #fff;
    }
    
    .meta-item {
        background: rgba(255, 255, 255, 0.2);
        border: 2px solid #fff;
    }
    
    .category-tag,
    .tag-item {
        background: #fff;
        color: #000;
        border: 2px solid #000;
        font-weight: 800;
    }
    
    .post-main-title,
    .post-title {
        color: #000;
        background: none;
        -webkit-text-fill-color: initial;
    }
    
    .post-content-wrapper {
        background: #fff;
        color: #000;
    }
    
    .post-content-wrapper h2,
    .post-content-wrapper h3,
    .post-content-wrapper h4,
    .post-content-wrapper h5,
    .post-content-wrapper h6 {
        color: #000;
        font-weight: 800;
    }
    
    .post-content-wrapper a {
        color: #0066cc;
        font-weight: 800;
    }
    
    .post-content-wrapper blockquote {
        background: #f0f0f0;
        color: #000;
        border-left: 6px solid #000;
    }
    
    .post-content-wrapper blockquote::before {
        color: #000;
    }
    
    .post-content-wrapper code {
        background: #f0f0f0;
        color: #000;
        border: 2px solid #000;
    }
    
    .post-content-wrapper pre {
        background: #000;
        color: #fff;
        border: 3px solid #000;
    }
    
    .post-content-wrapper table {
        border: 2px solid #000;
        background: #fff;
    }
    
    .post-content-wrapper th {
        background: #000;
        color: #fff;
    }
    
    .share-button {
        background: #000;
        color: #fff;
        border: 2px solid #000;
    }
}

/* Printelhető nézet */
@media print {
    .optimized-post-display {
        box-shadow: none;
        border: 2px solid #000;
        margin: 0;
        border-radius: 0;
        background: white;
    }
    
    .optimized-post-display::before {
        display: none;
    }
    
    .post-meta-block {
        background: #f5f5f5 !important;
        color: #000 !important;
        border-radius: 0;
        padding: 20px;
    }
    
    .post-meta-block::before {
        display: none;
    }
    
    .meta-item {
        background: #e5e5e5 !important;
        color: #000 !important;
        border: 1px solid #ccc !important;
    }
    
    .category-tag,
    .tag-item {
        background: #e5e5e5 !important;
        color: #000 !important;
        border: 1px solid #ccc !important;
    }
    
    .post-main-title {
        color: #000 !important;
        background: none !important;
        -webkit-text-fill-color: initial !important;
        page-break-after: avoid;
    }
    
    .post-main-title::after {
        display: none;
    }
    
    .post-header {
        background: white !important;
        border-bottom: 2px solid #ddd;
        page-break-after: avoid;
    }
    
    .post-header::before {
        display: none;
    }
    
    .post-title {
        color: #000 !important;
        page-break-after: avoid;
    }
    
    .post-excerpt {
        color: #333 !important;
    }
    
    .post-content-wrapper {
        background: white !important;
        color: #000 !important;
        padding: 20px;
    }
    
    .post-content-wrapper h2,
    .post-content-wrapper h3,
    .post-content-wrapper h4,
    .post-content-wrapper h5,
    .post-content-wrapper h6 {
        color: #000 !important;
        page-break-after: avoid;
    }
    
    .post-content-wrapper h2::before {
        background: #000 !important;
    }
    
    .post-content-wrapper a {
        color: #000 !important;
        text-decoration: underline !important;
        background: none !important;
    }
    
    .post-content-wrapper blockquote {
        background: #f8f8f8 !important;
        color: #000 !important;
        border-left-color: #000 !important;
        break-inside: avoid;
    }
    
    .post-content-wrapper blockquote::before {
        color: #000 !important;
    }
    
    .post-content-wrapper code {
        background: #f0f0f0 !important;
        color: #000 !important;
        border-color: #ccc !important;
    }
    
    .post-content-wrapper pre {
        background: #f8f8f8 !important;
        color: #000 !important;
        border: 2px solid #ddd !important;
        break-inside: avoid;
    }
    
    .post-content-wrapper table {
        background: white !important;
        border-color: #000 !important;
        break-inside: avoid;
    }
    
    .post-content-wrapper th {
        background: #f0f0f0 !important;
        color: #000 !important;
    }
    
    .post-content-wrapper td {
        border-bottom-color: #ddd !important;
    }
    
    .post-content-wrapper img {
        box-shadow: none !important;
        border: 2px solid #ddd !important;
        break-inside: avoid;
    }
    
    .social-share-block {
        display: none;
    }
}

/* Focus állapotok akadálymentességhez */
.category-tag:focus,
.tag-item:focus,
.share-button:focus,
.post-content-wrapper a:focus {
    outline: 3px solid #06b6d4;
    outline-offset: 2px;
    border-radius: 4px;
}

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.optimized-post-display {
    animation: fadeInScale 0.8s cubic-bezier(0.23, 1, 0.32, 1) both;
}

.post-meta-block {
    animation: slideInFromTop 0.6s cubic-bezier(0.23, 1, 0.32, 1) both 0.2s;
}

.post-main-title {
    animation: slideInFromTop 0.6s cubic-bezier(0.23, 1, 0.32, 1) both 0.4s;
}

.post-content-wrapper {
    animation: fadeInScale 0.6s cubic-bezier(0.23, 1, 0.32, 1) both 0.6s;
}

/* Container queries support */
@container (max-width: 600px) {
    .meta-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .meta-item {
        width: 100%;
    }
}

/* Prefers reduced data */
@media (prefers-reduced-data: reduce) {
    .optimized-post-display::before,
    .post-meta-block::before,
    .post-header::before,
    .social-share-block::before,
    .category-tag::before,
    .tag-item::before,
    .share-button::before {
        display: none;
    }
    
    .optimized-post-display,
    .post-meta-block,
    .post-main-title,
    .post-content-wrapper {
        animation: none;
    }
}

/* Gyors internet kapcsolat esetén */
@media (prefers-reduced-data: no-preference) {
    .post-meta-block::before {
        animation-duration: 20s;
    }
}