/* Blog Post Styles - Based on Writeology Template */

.blog-post {
    background: white;
}

/* Post Header */
.post-header {
    padding: 140px 0 40px;
    background: #fafafa;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.post-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.post-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px;
    color: #1a1a1a;
    letter-spacing: -1px;
}

.post-meta {
    display: flex;
    align-items: center;
    padding-top: 20px;
}

.post-meta .author-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.post-meta .author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.post-meta .author-info > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.post-meta .author-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
}

.post-meta .post-date {
    font-size: 0.9rem;
    color: #666;
}

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

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

/* Post Content */
.post-content {
    padding: 60px 0 80px;
}

/* Post Layout with Sidebar */
.post-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
    align-items: start;
}

.post-main {
    min-width: 0;
}

.post-intro {
    margin-bottom: 40px;
}

.lead {
    font-size: 1.35rem;
    line-height: 1.7;
    color: #333;
    font-weight: 400;
}

/* Typography */
.post-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 50px 0 20px;
    color: #1a1a1a;
    line-height: 1.3;
}

.post-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 40px 0 16px;
    color: #1a1a1a;
}

.post-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 30px 0 12px;
    color: #1a1a1a;
}

.post-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
}

.post-content ul,
.post-content ol {
    margin: 20px 0 30px 0;
    padding-left: 0;
    list-style: none;
}

.post-content ul li,
.post-content ol li {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
}

.post-content ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #3fa395;
    font-weight: 700;
}

.post-content ol {
    counter-reset: item;
}

.post-content ol li {
    counter-increment: item;
}

.post-content ol li::before {
    content: counter(item) ".";
    position: absolute;
    left: 0;
    color: #3fa395;
    font-weight: 700;
}

.post-content strong {
    font-weight: 600;
    color: #1a1a1a;
}

.post-content a {
    color: #3fa395;
    text-decoration: none;
    border-bottom: 1px solid rgba(63, 163, 149, 0.3);
    transition: all 0.3s ease;
}

.post-content a:hover {
    color: #2d7a6e;
    border-bottom-color: #2d7a6e;
}

/* Callout Box */
.callout-box {
    background: linear-gradient(135deg, rgba(63, 163, 149, 0.08) 0%, rgba(63, 163, 149, 0.04) 100%);
    border-left: 4px solid #3fa395;
    padding: 30px;
    margin: 40px 0;
    border-radius: 0 8px 8px 0;
}

.callout-box h3 {
    margin-top: 0;
    color: #3fa395;
    font-size: 1.3rem;
}

.callout-box p {
    margin-bottom: 16px;
}

.callout-box p:last-child {
    margin-bottom: 0;
}

/* Blockquote */
.post-content blockquote {
    margin: 50px 0;
    padding: 0;
    border: none;
}

.highlight-quote {
    font-size: 1.75rem;
    line-height: 1.5;
    font-weight: 600;
    color: #2d7a6e;
    font-style: italic;
    text-align: center;
    padding: 40px 60px;
    position: relative;
    background: #fafafa;
    border-radius: 8px;
}

.highlight-quote::before {
    content: "\201C";
    font-size: 5rem;
    position: absolute;
    top: 10px;
    left: 20px;
    color: rgba(63, 163, 149, 0.2);
    font-family: Georgia, serif;
}

/* Image with Caption */
.image-with-caption {
    margin: 50px 0;
}

.image-with-caption img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

.caption {
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
    text-align: center;
    margin-top: 12px;
}

/* Note */
.note {
    font-size: 1rem;
    color: #666;
    font-style: italic;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 6px;
    margin: 30px 0;
}

/* Numbered List (Custom) */
.numbered-list {
    margin: 40px 0;
}

.numbered-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.numbered-item .number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3fa395 0%, #2d7a6e 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.numbered-item .content h4 {
    margin-top: 0;
    margin-bottom: 8px;
}

.numbered-item .content p {
    margin-bottom: 0;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, #3fa395 0%, #2d7a6e 100%);
    color: white;
    padding: 50px;
    border-radius: 12px;
    text-align: center;
    margin: 60px 0 40px;
}

.cta-box h3 {
    font-size: 2rem;
    margin: 0 0 16px 0;
    color: white;
}

.cta-box p {
    font-size: 1.15rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.95);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* Related Articles */
.related-articles {
    background: #fafafa;
    padding: 80px 0;
}

.related-articles h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #1a1a1a;
}

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

.related-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.related-card.coming-soon {
    opacity: 0.7;
    cursor: default;
}

.related-card.coming-soon:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.related-image {
    width: 100%;
    padding-bottom: 62.5%;
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
}

.related-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-content {
    padding: 25px;
}

.related-content .category-badge {
    display: inline-block;
    margin-bottom: 12px;
}

.related-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #1a1a1a;
    line-height: 1.4;
}

.related-meta {
    font-size: 0.85rem;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .post-header {
        padding: 120px 0 30px;
    }

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

    .lead {
        font-size: 1.2rem;
    }

    .post-content h2 {
        font-size: 1.6rem;
        margin: 40px 0 16px;
    }

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

    .post-content p,
    .post-content ul li,
    .post-content ol li {
        font-size: 1.05rem;
    }

    .highlight-quote {
        font-size: 1.3rem;
        padding: 30px 40px;
    }

    .highlight-quote::before {
        font-size: 3.5rem;
        top: 5px;
        left: 10px;
    }

    .numbered-item {
        flex-direction: column;
        gap: 15px;
    }

    .numbered-item .number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .cta-box {
        padding: 35px 25px;
    }

    .cta-box h3 {
        font-size: 1.5rem;
    }

    .related-articles h2 {
        font-size: 2rem;
    }

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

    /* Sidebar Mobile */
    .post-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .post-sidebar {
        order: -1;
    }
}

@media (max-width: 480px) {
    .post-title {
        font-size: 1.6rem;
    }

    .callout-box {
        padding: 20px;
    }

    .highlight-quote {
        font-size: 1.1rem;
        padding: 25px 20px;
    }
}

/* Sidebar Styles */
.post-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-section {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #1a1a1a;
}

/* Search Section */
.sidebar-search {
    position: relative;
}

.sidebar-search input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.sidebar-search input:focus {
    outline: none;
    border-color: #3fa395;
    box-shadow: 0 0 0 3px rgba(63, 163, 149, 0.1);
}

.sidebar-search svg {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Tags Section */
.sidebar-tags {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-tag {
    padding: 12px 16px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.sidebar-tag:hover {
    border-color: #3fa395;
    color: #3fa395;
    transform: translateX(4px);
}

/* Resources Section */
.resource-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-4px);
}

.resource-image {
    width: 100%;
    padding-bottom: 60%;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 16px;
    background: #f0f0f0;
}

.resource-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.resource-content {
    margin-top: 12px;
}

.resource-content .category-badge {
    display: inline-block;
    margin-bottom: 10px;
}

.resource-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #1a1a1a;
    line-height: 1.4;
}

.resource-content p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Popular Articles Section */
.popular-articles {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.popular-article {
    display: flex;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    padding: 12px;
    border-radius: 8px;
    background: white;
}

.popular-article:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.popular-article.active {
    background: rgba(63, 163, 149, 0.08);
    border-left: 3px solid #3fa395;
}

.popular-article.coming-soon {
    opacity: 0.6;
    cursor: default;
}

.popular-article.coming-soon:hover {
    transform: none;
    box-shadow: none;
}

.popular-image {
    flex-shrink: 0;
    width: 100px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f0f0;
}

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

.popular-content {
    flex: 1;
    min-width: 0;
}

.popular-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #1a1a1a;
    line-height: 1.3;
}

.popular-content .category-badge {
    font-size: 0.75rem;
    padding: 4px 10px;
}
