/* Post page styles - Bejegyzés oldal stílusok */
.post {
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    background: none;
    border-radius: 0;
    box-shadow: none;
}

.post-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.post-title {
    font-size: 2.2em;
    line-height: 1.2;
    margin: 0 0 15px 0;
    color: #2c3e50;
}

.post-meta {
    color: #7f8c8d;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: #ecf0f1;
    color: #2c3e50;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 500;
}

.post-content {
    line-height: 1.7;
    color: #333;
    font-size: 1.05em;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    color: #2c3e50;
    margin-top: 30px;
    margin-bottom: 15px;
}

.post-content h2 {
    font-size: 1.5em;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 5px;
}

.post-content h3 {
    font-size: 1.3em;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 20px auto;
    display: block;
}

.post-content p img + em,
.post-content img + em {
    display: block;
    text-align: center;
    font-size: 0.9em;
    color: #7f8c8d;
    font-style: italic;
    margin-top: -10px;
    margin-bottom: 20px;
    padding: 0 20px;
    line-height: 1.4;
}

/* Hivatkozások stílusa - szögletes zárójelbe tett hivatkozások */
.post-content a[href*="://"] {
    font-size: 0.7em;
    color: #6ba3d6;
    text-decoration: none;
    vertical-align: super;
    line-height: 0;
    margin: 0;
}

.post-content a[href*="://"]:hover {
    color: #4a90e2;
    text-decoration: underline;
}

/* Táblázat stílusok */
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.8em;
    border: 1px solid #ddd;
}

.post-content table th,
.post-content table td {
    padding: 12px 8px;
    text-align: left;
    border: 1px solid #ddd;
    vertical-align: top;
}

.post-content table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.post-content table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.post-content table tr:hover {
    background-color: #f5f5f5;
}

/* Táblázatok alatti magyarázó szövegek */
.post-content table + p em,
.post-content table + em {
    display: block;
    text-align: center;
    font-size: 0.9em;
    color: #7f8c8d;
    font-style: italic;
    margin-top: -10px;
    margin-bottom: 20px;
    padding: 0 20px;
    line-height: 1.4;
}

.post-content blockquote {
    border-left: 4px solid #3498db;
    background: #f8f9fa;
    margin: 20px 0;
    padding: 15px 20px;
    font-style: italic;
}

.post-content pre {
    background: #f4f4f4;
    border-radius: 4px;
    padding: 15px;
    overflow-x: auto;
    font-size: 0.9em;
}

.post-content code {
    background: #f4f4f4;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 0.9em;
}

.post-content pre code {
    background: none;
    padding: 0;
}

.post-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.prev-post,
.next-post {
    display: flex;
    flex-direction: column;
    padding: 15px;
    background: #f7f4ef;
    border-radius: 6px;
    text-decoration: none;
    color: #2c3e50;
    transition: background-color 0.2s ease;
}

.prev-post {
    text-align: left;
    grid-column: 1;
}

.next-post {
    text-align: right;
    grid-column: 2;
}

.prev-post:hover,
.next-post:hover {
    background: #f0ede8;
}

.nav-label {
    font-size: 0.8em;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.nav-title {
    font-weight: 500;
    line-height: 1.3;
}

.back-to-blog {
    text-align: center;
}

.back-to-blog a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.back-to-blog a:hover {
    text-decoration: underline;
}

.back-to-home-top {
    margin-bottom: 20px;
}

.back-to-home-top a {
    color: #6ba3d6;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9em;
}

.back-to-home-top a:hover {
    color: #4a90e2;
    text-decoration: underline;
}

/* Dark mode styles for post */
@media (prefers-color-scheme: dark) {
    .post {
        background: none;
        box-shadow: none;
    }
    
    .post-header {
        border-bottom: 1px solid #444;
    }
    
    .post-title {
        color: #f0f0f0;
    }
    
    .post-meta {
        color: #aaa;
    }
    
    .tag {
        background: #444;
        color: #e0e0e0;
    }
    
    .post-content {
        color: #e0e0e0;
    }
    
    .post-content h1,
    .post-content h2,
    .post-content h3,
    .post-content h4,
    .post-content h5,
    .post-content h6 {
        color: #f0f0f0;
    }
    
    .post-content h2 {
        border-bottom: 2px solid #444;
    }
    
    .post-content blockquote {
        border-left: 4px solid #0A84FF;
        background: #333;
        color: #e0e0e0;
    }
    
    .post-content pre {
        background: #1a1a1a;
        border: 1px solid #444;
    }
    
    .post-content code {
        background: #1a1a1a;
        color: #e0e0e0;
    }
    
    .post-content pre code {
        background: none;
    }
    
    .post-footer {
        border-top: 1px solid #444;
    }
    
    .prev-post,
    .next-post {
        background: #333;
        color: #e0e0e0;
    }
    
    .prev-post:hover,
    .next-post:hover {
        background: #444;
    }
    
    .nav-label {
        color: #aaa;
    }
    
    .back-to-blog a {
        color: #0A84FF;
    }
    
    .back-to-home-top a {
        color: #7bb3e0;
    }
    
    .back-to-home-top a:hover {
        color: #5a9bd4;
    }
    
    .post-content p img + em,
    .post-content img + em {
        color: #aaa;
    }
    
    /* Dark mode hivatkozások */
    .post-content a[href*="://"] {
        color: #7bb3e0;
    }
    
    .post-content a[href*="://"]:hover {
        color: #5a9bd4;
    }
    
    /* Dark mode táblázatok */
    .post-content table {
        border: 1px solid #555;
    }
    
    .post-content table th,
    .post-content table td {
        border: 1px solid #555;
        color: #e0e0e0;
    }
    
    .post-content table th {
        background-color: #444;
        color: #f0f0f0;
    }
    
    .post-content table tr:nth-child(even) {
        background-color: #2a2a2a;
    }
    
    .post-content table tr:hover {
        background-color: #333;
    }
    
    /* Táblázatok alatti magyarázó szövegek dark mode-ban */
    .post-content table + p em,
    .post-content table + em {
        color: #b0b0b0;
    }
}
