/*
Theme Name: Pahadian Blog (Custom Single Post)
Theme URI: https://pahadian.com/
Author: Pahadian
Author URI: https://pahadian.com/
Description: Single post theme for pahadian.com/blog. Archives redirect to /insights.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: pahadian-blog
*/

/* hero bg when no featured image */
.pahadian-hero-fallback {
    background:
        radial-gradient(60% 55% at 30% 40%, rgba(59, 142, 243, 0.22), transparent 70%),
        radial-gradient(45% 45% at 78% 60%, rgba(167, 139, 250, 0.18), transparent 70%),
        radial-gradient(40% 40% at 85% 20%, rgba(244, 114, 182, 0.12), transparent 70%),
        #0f1117;
}

/* -- Post content -- */
.entry-content {
    color: #4b5563;
    line-height: 1.8;
}
.entry-content > p:first-of-type {
    font-size: 18px;
    line-height: 1.7;
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 2.5rem;
}
@media (min-width: 1024px) {
    .entry-content > p:first-of-type { font-size: 20px; }
}
.entry-content p { margin-bottom: 1rem; }
.entry-content h2 {
    font-size: 22px;
    font-weight: 600;
    color: #111827;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.entry-content h3 {
    font-size: 19px;
    font-weight: 600;
    color: #111827;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}
@media (min-width: 768px) {
    .entry-content h2 { font-size: 26px; }
}
.entry-content ul, .entry-content ol {
    margin: 1rem 0 1.5rem 1.25rem;
    padding-left: 1rem;
}
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 0.5rem; }
.entry-content a {
    color: var(--accent, #3b8ef3);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.entry-content strong { color: #111827; font-weight: 600; }
.entry-content blockquote {
    border-left: 3px solid var(--accent, #3b8ef3);
    padding: 0.25rem 0 0.25rem 1.25rem;
    margin: 1.5rem 0;
    color: #374151;
    font-style: italic;
}
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--r-sm, 10px);
    margin: 1.5rem 0;
}
.entry-content figure { margin: 1.5rem 0; }
.entry-content figcaption {
    font-size: 13px;
    color: #6b7280;
    text-align: center;
    margin-top: 0.5rem;
}
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 15px;
}
.entry-content th, .entry-content td {
    border: 1px solid #e5e7eb;
    padding: 0.6rem 0.9rem;
    text-align: left;
}
.entry-content th { background: #f9fafb; font-weight: 600; color: #111827; }

.entry-content hr {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 2.5rem 0 2rem;
}

.entry-content figure img {
    margin: 0;
    display: block;
}

/* wrapper added in functions.php */
.entry-content .table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5rem 0;
}
.entry-content .table-scroll table { margin: 0; }
.entry-content .table-scroll th,
.entry-content .table-scroll td { white-space: normal; }
@media (max-width: 640px) {
    .entry-content .table-scroll table { min-width: 520px; }
    .entry-content table { font-size: 14px; }
}

.entry-content code {
    background: #f3f4f6;
    border-radius: 4px;
    padding: 0.15em 0.4em;
    font-size: 0.9em;
    color: #111827;
}
.entry-content pre {
    background: #0f1117;
    color: #e5e7eb;
    border-radius: var(--r-sm, 10px);
    padding: 1rem 1.25rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 14px;
    line-height: 1.6;
}
.entry-content pre code { background: none; color: inherit; padding: 0; }

/* -- Prev / next -- */
.post-footer-nav {
    border-top: 1px solid #e5e7eb;
    margin-top: 3rem;
    padding-top: 2rem;
}
.post-footer-nav .adjacent-links {
    display: grid;
    gap: 1rem;
}
@media (min-width: 640px) {
    .post-footer-nav .adjacent-links { grid-template-columns: 1fr 1fr; }
}
.post-footer-nav .adjacent-links a {
    display: block;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    border-radius: var(--r-sm, 10px);
    padding: 1rem 1.25rem;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.post-footer-nav .adjacent-links a:hover {
    border-color: var(--accent, #3b8ef3);
    background: #f9fafb;
}
.post-footer-nav .adjacent-links .direction {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    margin-bottom: 0.35rem;
}
.post-footer-nav .adjacent-links .label {
    display: block;
    color: #111827;
    font-weight: 600;
    line-height: 1.4;
}
.post-footer-nav .adjacent-links .next-link { text-align: right; }
