/* post-style.css - Single Post Page Styles */


/* Post Container */
.post-container {
   
    margin: 3rem auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
   
}

/* Post Header */
.post-header {
    padding: 3rem 3rem 2rem;
}

.post-category {
    display: inline-block;
    background: #2271b1;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

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

.post-meta {
    display: flex;
    gap: 2rem;
    font-size: 0.95rem;
    color: #646970;
}

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

.meta-icon {
    width: 18px;
    height: 18px;
    fill: #646970;
}

/* Featured Image */
.post-featured-image {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
}

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

/* Post Content */
.post-content {
    padding: 3rem;
}

.post-description * {
    margin: 0;
    padding: 0;
}

.post-description p,
.post-description div,
.post-description span {
    margin-bottom: 1rem;
    line-height: 1.5;
}

.post-description ul,
.post-description ol {
    padding-left: 1.5em;
    margin-bottom: 1rem;
}

.post-description li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
    white-space: normal !important;
}

.post-description li * {
    margin: 0;
    padding: 0;
}


.post-tags {
    padding-top: 2rem;
    border-top: 2px solid #f0f0f1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.post-tags strong {
    color: #23282d;
    margin-right: 0.5rem;
}

.post-tags .tag {
    background: #f0f0f1;
    color: #646970;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s;
}

.post-tags .tag:hover {
    background: #2271b1;
    color: white;
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    padding: 2rem 3rem 3rem;
    gap: 2rem;
    border-top: 2px solid #f0f0f1;
}

.post-navigation.nav-link {
    flex: 1;
    text-decoration: none;
    color: #333;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 8px;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.post-navigation.nav-link:hover {
    background: #2271b1;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.nav-link.prev {
    text-align: left;
}

.nav-link.next {
    text-align: right;
}

.nav-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.nav-title {
    font-size: 1rem;
    font-weight: 500;
}

/* Related Posts */
.related-posts {
    padding: 3rem 1rem;
    background: white;
    margin: 2rem 0;
}


.related-posts h2 {
    font-size: 2rem;
    color: #23282d;
    margin-bottom: 2rem;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.related-card {
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    display: block;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.related-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.related-image.color-0 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.related-image.color-1 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.related-image.color-2 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.related-image.color-3 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.related-image.color-4 {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.related-content {
    padding: 1.5rem;
}

.related-content h3 {
    font-size: 1.25rem;
    color: #23282d;
    margin-bottom: 0.5rem;
}

.related-content p {
    font-size: 0.95rem;
    color: #646970;
    line-height: 1.5;
}

/* Footer */
.post-footer {
    padding: 2rem 1rem;
    text-align: center;
}

.back-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: #2271b1;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s;
}

.back-button:hover {
    background: #135e96;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .post-container {
        margin: 1rem;
        border-radius: 0;
    }

    .post-header {
        padding: 2rem 1.5rem 1.5rem;
    }

    .post-title {
        font-size: 1.75rem;
    }

    .post-content {
        padding: 1.5rem;
    }

    .post-description {
        font-size: 1rem;
    }

    .post-navigation {
        flex-direction: column;
        padding: 1.5rem;
    }

    .post-navigation.nav-link {
        text-align: center !important;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }


}