/* ============================================
   KANCHOLIKA - BLOG & POST STYLES
   ============================================ */

/* ---- SEARCH RESULTS HEADER ---- */
.search-results-header {
    background: var(--color-cream);
    padding: 60px 0 40px;
    text-align: center;
    border-bottom: 1px solid var(--color-border-light);
}

/* ---- SINGLE POST ---- */
.single-post-layout {
    max-width: 800px;
    margin: 0 auto;
}

.post-header {
    text-align: center;
    margin-bottom: 36px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--color-border-light);
}

.post-meta-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.post-category-tag {
    font-family: var(--font-ui);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-gold);
    background: var(--color-gold-pale);
    padding: 4px 12px;
    border-radius: 2px;
}

.post-date, .post-read-time {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    color: var(--color-text-muted);
    letter-spacing: 0.06em;
}

.post-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--color-maroon-dark);
    font-style: italic;
    line-height: 1.2;
    margin-bottom: 16px;
    font-weight: 400;
}

.post-excerpt {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--color-text-muted);
    font-style: italic;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.post-featured-image {
    margin: 0 -24px 40px;
    max-height: 520px;
    overflow: hidden;
}

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

/* Post Content */
.post-content-wrap { position: relative; }

.post-content {
    font-family: var(--font-body);
    font-size: 1.08rem;
    line-height: 1.9;
    color: var(--color-text-light);
}

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

.post-content h3 {
    font-size: 1.3rem;
    margin: 32px 0 12px;
}

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

.post-content a { color: var(--color-maroon); border-bottom: 1px solid var(--color-border); }
.post-content a:hover { color: var(--color-gold); border-bottom-color: var(--color-gold); }

.post-content blockquote {
    margin: 32px 0;
    padding: 24px 32px;
    background: var(--color-cream);
    border-left: 4px solid var(--color-gold);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--color-maroon);
}

.post-content ul, .post-content ol {
    margin: 0 0 24px 24px;
}

.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 8px; }

.post-content img {
    max-width: 100%;
    height: auto;
    margin: 24px 0;
}

/* Tags */
.post-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--color-border-light);
}

.tags-label {
    font-family: var(--font-ui);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.post-tag {
    font-family: var(--font-ui);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    padding: 4px 12px;
    background: var(--color-cream);
    border: 1px solid var(--color-border);
    color: var(--color-text-light);
    transition: var(--transition-fast);
}

.post-tag:hover {
    background: var(--color-maroon);
    color: var(--color-cream);
    border-color: var(--color-maroon);
}

/* Share Buttons */
.post-share {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.share-label {
    font-family: var(--font-ui);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.share-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: var(--transition-fast);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
}

.share-btn:hover { transform: translateY(-2px); }
.share-fb:hover { background: #1877f2; color: white; border-color: #1877f2; }
.share-tw:hover { background: #000; color: white; border-color: #000; }
.share-pt:hover { background: #e60023; color: white; border-color: #e60023; }
.share-wa:hover { background: #25d366; color: white; border-color: #25d366; }

/* Author Box */
.author-box {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-top: 40px;
    padding: 28px;
    background: var(--color-cream);
    border: 1px solid var(--color-border-light);
}

.author-avatar img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid var(--color-gold-pale);
    object-fit: cover;
}

.author-role {
    font-family: var(--font-ui);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-gold);
    display: block;
    margin-bottom: 4px;
}

.author-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-maroon-dark);
    margin-bottom: 8px;
}

.author-bio {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* Post Navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 48px 0;
    border-top: 1px solid var(--color-border-light);
    padding-top: 40px;
}

.post-nav-item {
    padding: 20px;
    background: var(--color-cream);
    border: 1px solid var(--color-border-light);
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: var(--transition-smooth);
}

.post-nav-item:hover {
    border-color: var(--color-gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

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

.nav-direction {
    font-family: var(--font-ui);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-gold);
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-nav-next .nav-direction { justify-content: flex-end; }

.nav-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-style: italic;
    color: var(--color-maroon-dark);
    line-height: 1.3;
}

/* Related Posts */
.related-posts {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid var(--color-border-light);
}

/* Blog Featured Post */
.blog-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 0;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--color-border-light);
}

.blog-featured-image {
    overflow: hidden;
    border-radius: var(--border-radius);
}

.blog-featured-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-featured:hover .blog-featured-image img { transform: scale(1.03); }

/* Comments */
.post-comments {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 1px solid var(--color-border-light);
}

.comment-form input,
.comment-form textarea {
    font-family: var(--font-body) !important;
    border: 1px solid var(--color-border) !important;
    padding: 12px 16px !important;
    border-radius: var(--border-radius) !important;
    width: 100% !important;
    transition: border-color 0.2s ease !important;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--color-maroon) !important;
    outline: none !important;
}

.comment-form .submit {
    background: var(--color-maroon) !important;
    color: var(--color-cream) !important;
    font-family: var(--font-ui) !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    padding: 12px 28px !important;
    border: none !important;
    cursor: pointer !important;
    transition: var(--transition-smooth) !important;
}

.comment-form .submit:hover {
    background: var(--color-maroon-dark) !important;
    transform: translateY(-1px) !important;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .blog-featured { grid-template-columns: 1fr; gap: 24px; }
    .blog-featured-image img { height: 260px; }
    .post-navigation { grid-template-columns: 1fr; }
    .post-featured-image { margin: 0 0 32px; }
    .related-posts .blog-grid { grid-template-columns: 1fr !important; }
    .author-box { flex-direction: column; }
}
