:root {
    --text-cream: #f4ecd8;
    --green-1: #3fce3f;
    --green-2: #1f9a2f;
    --blue-1: #1f6fd6;
    --blue-2: #1450a3;
    --panel-bg: rgba(10, 16, 30, 0.72);
    --panel-border: rgba(244, 236, 216, 0.18);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    min-height: 100vh;
    font-family: "Baloo 2", "Comic Sans MS", "Segoe UI", sans-serif;
    color: var(--text-cream);
    overflow-x: hidden;
    position: relative;
    background-color: #050b16;
}

/* Soft vignette + gentle breathing, same as the rest of the site, so
   text stays readable over the background artwork. */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at 50% 30%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.5) 100%);
    animation: bg-breathe 8s ease-in-out infinite;
}

@keyframes bg-breathe {
    0%, 100% {
        opacity: 0.85;
    }

    50% {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    body::before {
        animation: none;
    }
}

/* ---------- Page shell ---------- */
.page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 40px 20px 24px;
    max-width: 980px;
    margin: 0 auto;
}


.blog-title-bar {
    text-align: center;
    margin-bottom: 26px;
}

    .blog-title-bar h1 {
        margin: 0;
        font-size: 30px;
        font-weight: 800;
        text-shadow: 0 2px 8px rgba(0,0,0,0.6);
    }

.site-footer {
    position: relative;
    z-index: 1;
    text-align: center;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(244, 236, 216, 0.75);
    padding: 32px 20px 28px;
}

/* ---------- Sections ---------- */
.post-section {
    margin-bottom: 38px;
}

    .post-section h2,
    .search-results h2 {
        font-size: 19px;
        font-weight: 800;
        margin: 0 0 16px;
        text-shadow: 0 2px 6px rgba(0,0,0,0.5);
    }

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

.empty-msg {
    color: rgba(244, 236, 216, 0.65);
    font-size: 14px;
}

.show-all-btn {
    display: block;
    margin: 18px auto 0;
    padding: 10px 22px;
    border-radius: 999px;
    border: 2px solid rgba(255,255,255,0.25);
    background: linear-gradient(180deg, var(--blue-1), var(--blue-2));
    color: #eaf3ff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease;
}

    .show-all-btn:hover,
    .show-all-btn:focus-visible {
        transform: translateY(-2px);
    }


/* ---------- Post card ---------- */
.post-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

    .post-card:hover,
    .post-card:focus-visible {
        transform: translateY(-5px) scale(1.015);
        box-shadow: 0 14px 28px rgba(0,0,0,0.45);
    }

.post-card-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: rgba(255,255,255,0.06);
}

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

.post-card-body {
    padding: 12px 14px 14px;
}

.post-card-title {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.post-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(244, 236, 216, 0.65);
}


/* ================= Trang Album ================= */
.breadcrumb{display:flex;flex-wrap:wrap;gap:4px 8px;align-items:center;justify-content:center;margin:0 0 14px;font-size:13px;color:rgba(244,236,216,.7)}
.breadcrumb a{color:#9fd7ff;text-decoration:none}.breadcrumb a:hover{text-decoration:underline}
.breadcrumb>*+*::before{content:"›";margin-right:8px;opacity:.6;color:var(--text-cream)}
.breadcrumb span{color:var(--text-cream);font-weight:700}
.album-count{margin:-12px 0 22px;text-align:center;font-size:14px;color:rgba(244,236,216,.7)}
.album-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px}
.album-item{display:block;aspect-ratio:1/1;overflow:hidden;border-radius:12px;background:rgba(255,255,255,.06);transition:transform .15s,box-shadow .15s}
.album-item:hover,.album-item:focus-visible{transform:translateY(-3px);box-shadow:0 10px 22px rgba(0,0,0,.45);outline:none}
.album-item img{width:100%;height:100%;object-fit:cover;display:block}
.album-card .post-card-photo{aspect-ratio:1/1}
@media (max-width:520px){.album-grid{grid-template-columns:repeat(2,1fr);gap:8px}.post-grid{grid-template-columns:repeat(2,1fr);gap:12px}}
