
/* Blog Post Styles - WegańskieSmaki Design */
.blog-post {
    background: #fff;
    border-radius: .75rem;
    /* overflow: hidden; */
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
    margin-bottom: 2rem;
    transition: transform .3s;
}

.blog-post:hover {
    transform: translateY(-4px);
}

.post-image {
    height: 250px;
    background: #c6f6d5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    padding: 2rem;
}

.post-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #4a5568;
    font-size: .85rem;
    flex-wrap: wrap;
}

.post-meta-item {
    display: flex;
    align-items: center;
    gap: .25rem;
}

.post-category {
    display: inline-block;
    padding: .25rem .75rem;
    background: #c6f6d5;
    color: #22543d;
    border-radius: 9999px;
    font-size: .75rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 1rem;
}

.post-title {
    font-size: 1.5rem;
    color: #1a202c;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.post-title a {
    color: inherit;
    text-decoration: none;
    transition: color .3s;
}

.post-title a:hover {
    color: #2f855a;
}

.post-excerpt {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.post-tags {
    display: flex;
    gap: .5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.post-tag {
    padding: .25rem .5rem;
    background: #f7fafc;
    color: #4a5568;
    border-radius: .25rem;
    font-size: .75rem;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: all .3s;
}

.post-tag:hover {
    background: #f0fff4;
    color: #2f855a;
    border-color: #2f855a;
}

.read-more {
    display: inline-block;
    padding: .75rem 1.5rem;
    background: #2f855a;
    color: #fff;
    border-radius: .5rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .3s;
}

.read-more:hover {
    background: #276749;
    color: #fff;
}

.post-footer {
    padding: 1.5rem 2rem;
    background: #f7fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.post-author {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: #4a5568;
    font-size: .9rem;
}

.post-date {
    color: #a0aec0;
    font-size: .85rem;
}

/* Single Post Styles */
.single-post {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
    /* overflow: hidden; */
    margin-bottom: 3rem;
}

.single-post-header {
    background: #f0fff4;
    padding: 3rem 2rem 2rem;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.single-post-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    color: #4a5568;
    font-size: .9rem;
    flex-wrap: wrap;
}

.single-post-title {
    font-size: 2.5rem;
    color: #22543d;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 auto;
    margin-bottom: 1.5rem;
}

.single-post-excerpt {
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.7;
    margin: 0 auto;
}

.single-post-image {
    height: 400px;
    background: #c6f6d5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.single-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-post-content {
    padding: 3rem 2rem;
}

.single-post-content h2 {
    color: #22543d;
    margin: 2rem 0 1rem;
    font-size: 1.8rem;
    font-weight: 700;
}

.single-post-content h3 {
    color: #2f855a;
    margin: 1.5rem 0 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.single-post-content p {
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.single-post-content ul,
.single-post-content ol {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.single-post-content li {
    margin-bottom: .5rem;
}

.single-post-footer {
    padding: 2rem;
    background: #f7fafc;
    border-top: 1px solid #e2e8f0;
}

/* Page Styles */
.page-content {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
    overflow: hidden;
}

.page-header {
    background: #f0fff4;
    padding: 3rem 2rem;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    color: #22543d;
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-subtitle {
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
}

.page-body {
    padding: 3rem 2rem;
}

.page-body h2 {
    color: #22543d;
    margin: 2rem 0 1rem;
    font-size: 1.8rem;
    font-weight: 700;
}

.page-body h3 {
    color: #2f855a;
    margin: 1.5rem 0 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.page-body p {
    color: #4a5568;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Responsive */
@media(max-width: 768px) {
    .single-post-title {
        font-size: 2rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .single-post-meta {
        flex-direction: column;
        gap: .5rem;
    }
    
    .post-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ——— POST NAVIGATION STYLES ——— */
.post-navigation {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
    margin: 3rem 0;
    overflow: hidden;
}

.nav-links:not(#primary-menu.nav-links) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* min-height: 120px; */
}

.nav-previous,
.nav-next {
    display: flex;
    align-items: center;
    padding: 2rem;
    text-decoration: none;
    color: #4a5568;
    transition: all .3s ease;
    position: relative;
    background: #fff;
}

.nav-previous {
    border-right: 1px solid #e2e8f0;
    padding-left: 3rem;
}

.nav-next {
    text-align: right;
    justify-content: flex-end;
    padding-right: 3rem;
}

.nav-previous:hover,
.nav-next:hover {
    background: #f0fff4;
    color: #22543d;
    text-decoration: none;
}

/* Navigation Icons */
.nav-previous::before {
    content: '←';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 700;
    color: #2f855a;
    transition: transform .3s ease;
}

.nav-next::after {
    content: '→';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 700;
    color: #2f855a;
    transition: transform .3s ease;
}

.nav-previous:hover::before {
    transform: translateY(-50%) translateX(-3px);
}

.nav-next:hover::after {
    transform: translateY(-50%) translateX(3px);
}

/* Navigation Text */
.nav-subtitle {
    display: block;
    font-size: .85rem;
    color: #a0aec0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: .5rem;
}

.nav-title {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    color: #1a202c;
    transition: color .3s ease;
}

.nav-previous:hover .nav-title,
.nav-next:hover .nav-title {
    color: #2f855a;
}

/* Single column layout (only one nav link) */
.nav-links .nav-previous:only-child,
.nav-links .nav-next:only-child {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
    justify-content: center;
    text-align: center;
    border-right: none;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Alternative: Keep original position but limit width */
.nav-links .nav-previous:only-child {
    justify-self: start;
    margin-left: 0;
    margin-right: auto;
}

.nav-links .nav-next:only-child {
    justify-self: end;
    margin-left: auto;
    margin-right: 0;
}

.nav-links .nav-previous:only-child::before,
.nav-links .nav-next:only-child::after {
    display: none;
}

/* Alternative Card Style */
.post-navigation.card-style .nav-links {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #f7fafc;
}

.post-navigation.card-style .nav-previous,
.post-navigation.card-style .nav-next {
    flex: 1;
    background: #fff;
    border-radius: .75rem;
    border: 2px solid #e2e8f0;
    padding: 1.5rem;
    min-height: auto;
}

.post-navigation.card-style .nav-previous {
    border-right: 2px solid #e2e8f0;
    padding-left: 1.5rem;
}

.post-navigation.card-style .nav-next {
    padding-right: 1.5rem;
}

.post-navigation.card-style .nav-previous:hover,
.post-navigation.card-style .nav-next:hover {
    border-color: #2f855a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(47,133,90,.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        grid-template-columns: 1fr;
        gap: 1px;
    }
    
    .nav-previous {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        padding-left: 3rem;
        text-align: left;
        justify-content: flex-start;
    }
    
    .nav-next {
        text-align: left;
        justify-content: flex-start;
        padding-left: 3rem;
        padding-right: 2rem;
    }
    
    .nav-next::after {
        display: none;
    }
    
    .nav-next::before {
        content: '→';
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.5rem;
        font-weight: 700;
        color: #2f855a;
        transition: transform .3s ease;
    }
    
    .nav-next:hover::before {
        transform: translateY(-50%) translateX(3px);
    }
    
    /* Card style mobile */
    .post-navigation.card-style .nav-links {
        flex-direction: column;
    }
    
    .post-navigation.card-style .nav-previous {
        border-right: 2px solid #e2e8f0;
    }
}

/* Optional: Loading animation */
.post-navigation {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}