/* ==========================================================================
   Alam Personal — Single Post
   Gaya seperti nerbitinbuku.com, warna hitam/indigo
   ========================================================================== */

.alam-single-post { background: #ffffff; }

/* ----------------------------------------------------------
   HERO HEADER — gradient gelap seperti nerbitinbuku
   ---------------------------------------------------------- */
.alam-post-hero {
    background: linear-gradient(160deg, #09090b 0%, #18181b 50%, #27272a 100%);
    padding: 72px 24px 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.alam-post-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 70% at 50% 40%, rgba(99,102,241,.1) 0%, transparent 70%);
    pointer-events: none;
}

.alam-post-hero__inner {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Kategori badge */
.alam-post-cats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.alam-cat-badge {
    display: inline-block;
    background: rgba(99,102,241,.15);
    border: 1px solid rgba(99,102,241,.3);
    color: #a5b4fc;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background .2s;
}

.alam-cat-badge:hover {
    background: rgba(99,102,241,.25);
    color: #a5b4fc;
}

/* Judul */
.alam-post-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.85rem, 5vw, 3rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.18;
    letter-spacing: -.04em;
    margin-bottom: 1.5rem;
}

/* Meta */
.alam-post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: .85rem;
    color: rgba(255,255,255,.55);
}

.alam-meta-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,.15);
}

.alam-meta-author {
    font-weight: 600;
    color: rgba(255,255,255,.8);
}

.alam-meta-sep { opacity: .3; }

/* ----------------------------------------------------------
   BODY KONTEN
   ---------------------------------------------------------- */
.alam-post-body {
    background: #ffffff;
    padding: 56px 24px 80px;
}

.alam-post-body__inner {
    max-width: 680px;
    margin: 0 auto;
}

/* ----------------------------------------------------------
   TIPOGRAFI
   ---------------------------------------------------------- */
.alam-post-content {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.065rem;
    line-height: 1.85;
    color: #27272a;
}

.alam-post-content > * + * { margin-top: 1.3em; }

.alam-post-content h2 {
    font-size: 1.55rem;
    font-weight: 800;
    color: #09090b;
    letter-spacing: -.03em;
    margin-top: 2.5rem;
    margin-bottom: .5rem;
    line-height: 1.25;
}

.alam-post-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #09090b;
    letter-spacing: -.02em;
    margin-top: 2rem;
    margin-bottom: .4rem;
}

.alam-post-content h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #09090b;
    margin-top: 1.5rem;
}

.alam-post-content a {
    color: #6366f1;
    text-decoration: underline;
    text-decoration-color: rgba(99,102,241,.3);
    text-underline-offset: 3px;
    transition: text-decoration-color .2s;
}

.alam-post-content a:hover {
    text-decoration-color: #6366f1;
    color: #4f46e5;
}

.alam-post-content ul,
.alam-post-content ol {
    padding-left: 1.5rem;
    color: #3f3f46;
}

.alam-post-content li { margin-bottom: .4rem; }

.alam-post-content blockquote {
    border-left: 3px solid #6366f1;
    padding: 16px 20px;
    background: rgba(99,102,241,.04);
    border-radius: 0 8px 8px 0;
    margin: 2rem 0;
    font-style: italic;
    color: #52525b;
}

.alam-post-content blockquote p { margin: 0; color: inherit; }

.alam-post-content img {
    max-width: 100%;
    border-radius: 10px;
    margin: 1.5rem auto;
    display: block;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
}

.alam-post-content pre {
    background: #09090b;
    color: #e4e4e7;
    padding: 20px 24px;
    border-radius: 10px;
    overflow-x: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: .875rem;
    line-height: 1.7;
}

.alam-post-content code {
    background: #f4f4f5;
    color: #6366f1;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: .875em;
}

.alam-post-content pre code { background: none; color: inherit; padding: 0; }

.alam-post-content hr {
    border: none;
    border-top: 1px solid #f4f4f5;
    margin: 2.5rem 0;
}

.alam-post-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: .925rem;
    margin: 1.5rem 0;
}

.alam-post-content th,
.alam-post-content td {
    padding: 10px 14px;
    border: 1px solid #e4e4e7;
    text-align: left;
}

.alam-post-content th {
    background: #fafafa;
    font-weight: 700;
    color: #09090b;
}

/* ----------------------------------------------------------
   TAGS
   ---------------------------------------------------------- */
.alam-post-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 24px 0;
    border-top: 1px solid #f4f4f5;
    margin-top: 48px;
    font-size: .85rem;
}

.alam-post-tags__label {
    color: #a1a1aa;
    font-weight: 600;
    font-size: .8rem;
}

.alam-tag {
    background: #f4f4f5;
    color: #71717a;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: .78rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
}

.alam-tag:hover {
    background: #18181b;
    color: #ffffff;
}

/* ----------------------------------------------------------
   PREV / NEXT NAV
   ---------------------------------------------------------- */
.alam-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 40px 0;
}

.alam-post-nav__item {
    background: #fafafa;
    border: 1px solid #e4e4e7;
    border-radius: 10px;
    padding: 16px 18px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: all .2s;
}

.alam-post-nav__item:hover {
    background: #18181b;
    border-color: #18181b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
}

.alam-post-nav__item--right { text-align: right; }

.alam-post-nav__label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #a1a1aa;
    transition: color .2s;
}

.alam-post-nav__title {
    font-size: .9rem;
    font-weight: 600;
    color: #18181b;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s;
}

.alam-post-nav__item:hover .alam-post-nav__label,
.alam-post-nav__item:hover .alam-post-nav__title {
    color: #ffffff;
}

/* ----------------------------------------------------------
   AUTHOR BOX
   ---------------------------------------------------------- */
.alam-author-box {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: #fafafa;
    border: 1px solid #e4e4e7;
    border-radius: 12px;
    padding: 24px;
    margin: 8px 0 32px;
}

.alam-author-box__avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #e4e4e7;
}

.alam-author-box__label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #a1a1aa;
    margin-bottom: .2rem;
}

.alam-author-box__name {
    font-size: 1rem;
    font-weight: 700;
    color: #09090b;
    margin-bottom: .35rem;
}

.alam-author-box__bio {
    font-size: .875rem;
    color: #71717a;
    line-height: 1.65;
    margin: 0;
}

/* ----------------------------------------------------------
   KEMBALI KE SEMUA TULISAN
   ---------------------------------------------------------- */
.alam-post-back {
    padding-top: 8px;
    border-top: 1px solid #f4f4f5;
}

.alam-post-back__link {
    font-size: .875rem;
    font-weight: 600;
    color: #71717a;
    text-decoration: none;
    transition: color .2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.alam-post-back__link:hover { color: #6366f1; }

/* ----------------------------------------------------------
   KOMENTAR
   ---------------------------------------------------------- */
.alam-post-comments {
    background: #fafafa;
    padding: 48px 24px 64px;
    border-top: 1px solid #f4f4f5;
}

.alam-post-comments .comments-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #09090b;
    margin-bottom: 1.5rem;
}

.alam-post-comments .comment-list { list-style: none; padding: 0; }

.alam-post-comments .comment-body {
    background: #ffffff;
    border: 1px solid #e4e4e7;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 12px;
}

.alam-post-comments .comment-author .fn { font-weight: 700; color: #09090b; }
.alam-post-comments .comment-content p  { color: #3f3f46; margin-top: .5rem; font-size: .925rem; }

.alam-post-comments .comment-form input,
.alam-post-comments .comment-form textarea {
    width: 100%;
    border: 1.5px solid #e4e4e7;
    border-radius: 8px;
    padding: 10px 14px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: .925rem;
    color: #18181b;
    background: #ffffff;
    transition: border-color .2s, box-shadow .2s;
}

.alam-post-comments .comment-form input:focus,
.alam-post-comments .comment-form textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}

.alam-post-comments .comment-form .submit {
    background: #18181b;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 11px 24px;
    font-weight: 700;
    font-size: .9rem;
    cursor: pointer;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: all .2s;
}

.alam-post-comments .comment-form .submit:hover {
    background: #3f3f46;
    transform: translateY(-1px);
}

/* ----------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------- */
@media (max-width: 768px) {
    .alam-post-hero  { padding: 52px 20px 40px; }
    .alam-post-title { font-size: 1.75rem; }
    .alam-post-body  { padding: 40px 16px 60px; }
    .alam-post-nav   { grid-template-columns: 1fr; }
    .alam-post-nav__item--right { text-align: left; }
    .alam-author-box { flex-direction: column; }
}
