/* Style dla pojedynczego wpisu */
.single-post-container {
    max-width: 100%;
    margin: 0 auto;
    background: white;
}

/* Hero sekcja */
.post-hero {
    position: relative;
    width: 100%;
    min-height: 60vh;
    background: black;
    margin-bottom: 3rem;
}

.post-thumbnail {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.7;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-hero-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
    color: white;
    z-index: 1;
}

.post-meta {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.post-meta span:not(:last-child)::after {
    content: "•";
    margin: 0 0.5rem;
}

.post-title {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: white;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.post-author img {
    border-radius: 50%;
    border: 2px solid white;
}

.author-info {
    display: flex;
    flex-direction: column;
}

/* Treść artykułu */
.post-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

.post-content h2, .post-content h3 {
    margin: 2rem 0 1rem;
    color: black;
}

/* Tagi */
.post-tags {
    margin: 3rem 0;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.tag-label {
    font-weight: 600;
    margin-right: 0.5rem;
}

/* Przyciski udostępniania */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f5f5dc;
    border-radius: 8px;
}

.share-button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: black;
    color: white;
    transition: transform 0.3s ease;
}

.share-button:hover {
    transform: translateY(-3px);
}

/* Box autora */
.author-box {
    display: flex;
    gap: 2rem;
    margin: 4rem 0;
    padding: 2rem;
    background: #f5f5dc;
    border-radius: 12px;
}

.author-box img {
    border-radius: 50%;
}

.author-box-content {
    flex: 1;
}

.author-social {
    margin-top: 1rem;
}

.author-social a {
    margin-right: 1rem;
    color: black;
}

/* Powiązane artykuły */
.related-posts {
    margin: 4rem 0;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.related-post {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.related-post:hover {
    transform: translateY(-5px);
}

.related-post-image {
    padding-top: 60%;
    position: relative;
}

.related-post-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-post-content {
    padding: 1.5rem;
}

.related-post h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.related-post-date {
    font-size: 0.9rem;
    color: #666;
}

/* Nawigacja między postami */
.post-navigation {
    margin: 4rem 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 2rem 0;
}

.post-nav-links {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.prev-post, .next-post {
    flex: 1;
    display: flex;
    flex-direction: column;
    color: black;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.prev-post:hover, .next-post:hover {
    transform: translateX(-5px);
}

.next-post:hover {
    transform: translateX(5px);
}

.nav-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

/* Sekcja komentarzy */
.comments-section {
    margin: 4rem 0;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

/* RWD */
@media (max-width: 768px) {
    .post-title {
        font-size: 2rem;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .post-nav-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .prev-post:hover, .next-post:hover {
        transform: translateY(-5px);
    }
}

@media (max-width: 480px) {
    .post-hero-content {
        padding: 2rem 1rem;
    }
    
    .post-content-wrapper {
        padding: 0 1rem;
    }
}