/* FROM THE JOURNAL — home section (pengganti blog_recent).
   Simpel & putih: baris tanpa kartu, hanya tile + judul + panah.
   Identitas seri lewat tile kecil — amber Reflections, biru Thoughts. */

.journal-home {
    margin-bottom: 4rem;
}

/* ── Label grup seri (dot + nama + jumlah + view all) ── */
.jhome-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.jhome-group--second { margin-top: 1.4rem; }

.jhome-dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 999px;
}
.dot-amber { background: #ffb020; }
.dot-blue { background: #1cb0f6; }

.jhome-group-label {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #64748b;
}

.jhome-group-count {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 0.66rem;
    line-height: 1;
    color: #94a3b8;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 999px;
    padding: 3px 8px;
}

.jhome-group-link {
    margin-left: auto;
    font-size: 0.7rem;
    font-weight: 700;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}
.jhome-group-link:hover { color: #1e293b; }

/* ── Kartu entri: tile + judul + tanggal + panah ── */
.jhome-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.jhome-entry {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.65rem 0.8rem;
    background: #ffffff;
    border: 2px solid #f1f5f9;
    border-radius: 1rem;
    box-shadow: 0 2px 0 #f8fafc;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.jhome-entry:hover {
    border-color: #fde68a;
    box-shadow: 0 4px 0 #fef3c7;
    transform: translateY(-1px);
}
.jhome-entry:active { transform: translateY(1px); box-shadow: 0 1px 0 #fef3c7; }

/* Tile tanggal — amber lembut, senada buku kuning Reflections */
.jhome-date {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fffbeb;
    border: 2px solid #fef3c7;
    border-radius: 0.7rem;
    line-height: 1;
    transition: border-color 0.2s ease;
}
.jhome-entry:hover .jhome-date { border-color: #fde68a; }

.jhome-date .d {
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 0.95rem;
    color: #0f172a;
}

.jhome-date .m {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #d97706;
    margin-top: 1px;
}

.jhome-entry-info { flex: 1; min-width: 0; }

.jhome-entry-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s;
}
.jhome-entry:hover .jhome-entry-title { color: #b45309; }

.jhome-entry-sub {
    margin-top: 2px;
    font-size: 0.74rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jhome-arrow {
    flex-shrink: 0;
    color: #cbd5e1;
    font-weight: 700;
    transition: transform 0.2s, color 0.2s;
}
.jhome-entry:hover .jhome-arrow { color: #f59e0b; }

/* ── Varian Thoughts: tile ikon biru, hover biru ── */
.jhome-thought-ic {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 0.7rem;
    color: #0284c7;
    background: #f0f9ff;
    border: 2px solid #e0f2fe;
    transition: border-color 0.2s ease;
}
.jhome-thought-ic svg { width: 18px; height: 18px; }

.jhome-entry--thought:hover {
    border-color: #bae6fd;
    box-shadow: 0 4px 0 #e0f2fe;
}
.jhome-entry--thought:active { box-shadow: 0 1px 0 #e0f2fe; }
.jhome-entry--thought:hover .jhome-thought-ic { border-color: #bae6fd; }
.jhome-entry--thought:hover .jhome-entry-title { color: #0284c7; }
.jhome-entry--thought:hover .jhome-arrow { color: #38bdf8; }

.jhome-empty {
    color: #94a3b8;
    font-size: 0.9rem;
    padding: 0.25rem 0;
}

/* ===================== DARK MODE ===================== */
html.dark .jhome-group-label { color: #94a3b8; }
html.dark .jhome-group-count {
    background: transparent;
    border-color: #1e293b;
    color: #64748b;
}
html.dark .jhome-group-link { color: #64748b; }
html.dark .jhome-group-link:hover { color: #e2e8f0; }
html.dark .jhome-entry {
    background: #0f172a;
    border-color: #1e293b;
    box-shadow: 0 2px 0 rgba(2, 6, 23, 0.6);
}
html.dark .jhome-entry:hover {
    border-color: rgba(251, 191, 36, 0.35);
    box-shadow: 0 4px 0 rgba(2, 6, 23, 0.6);
}
html.dark .jhome-entry--thought:hover { border-color: rgba(56, 189, 248, 0.4); }
html.dark .jhome-entry-sub { color: #64748b; }
html.dark .jhome-date {
    background: rgba(251, 191, 36, 0.08);
    border-color: rgba(251, 191, 36, 0.18);
}
html.dark .jhome-entry:hover .jhome-date { border-color: rgba(251, 191, 36, 0.35); }
html.dark .jhome-date .d { color: #e2e8f0; }
html.dark .jhome-date .m { color: #fbbf24; }
html.dark .jhome-entry-title { color: #cbd5e1; }
html.dark .jhome-entry:hover .jhome-entry-title { color: #fbbf24; }
html.dark .jhome-thought-ic {
    color: #7cd0fb;
    background: rgba(28, 176, 246, 0.1);
    border-color: rgba(28, 176, 246, 0.2);
}
html.dark .jhome-entry--thought:hover .jhome-thought-ic { border-color: rgba(28, 176, 246, 0.4); }
html.dark .jhome-entry--thought:hover .jhome-entry-title { color: #7cd0fb; }
html.dark .jhome-empty { color: #64748b; }

@media (max-width: 520px) {
    .jhome-entry-title { white-space: normal; }
}
