/* =============================================
   BLOG PAGE — blog.css
   Loaded only on page-blog.hbs
   ============================================= */

/* ── STICKY NAV (site-wide via this file) ── */
.gh-head {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    background: rgba(240,237,230,0.88) !important;
    border-bottom: 1px solid rgba(0,0,0,0.07) !important;
}

/* ── PAGE WRAPPER ── */
.blog-page {
    min-height: 100vh;
}

.bp-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5%;
}

/* ── HERO ── */
.bp-hero {
    padding: 72px 0 48px;
    animation: bpFadeUp 0.5s ease forwards;
    opacity: 0;
}

.bp-hero-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ff5c00;
    margin-bottom: 12px;
}

.bp-hero-title {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: #111;
    margin-bottom: 20px;
}

.bp-hero-sub {
    font-size: 15px;
    color: #888;
    max-width: 480px;
    line-height: 1.65;
}

/* ── FILTER BAR ── */
.bp-filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 0 0 32px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    margin-bottom: 48px;
    animation: bpFadeUp 0.5s 0.1s ease both;
    opacity: 0;
}

.bp-filter {
    padding: 7px 16px;
    border-radius: 100px;
    font-size: 12.5px;
    font-weight: 500;
    border: 1.5px solid rgba(0,0,0,0.1);
    color: #555;
    text-decoration: none;
    transition: all 0.2s;
    background: transparent;
}

.bp-filter:hover {
    border-color: #111;
    color: #111;
}

.bp-filter.active {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* ── FEATURED POST ── */
.bp-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: center;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 56px;
    box-shadow: 0 2px 24px rgba(0,0,0,0.06);
    text-decoration: none;
    color: inherit;
    animation: bpFadeUp 0.5s 0.15s ease both;
    opacity: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bp-featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(0,0,0,0.1);
}

.bp-feat-img {
    height: 340px;
    background: linear-gradient(135deg, #ff5c00, #ff9a5c);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bp-feat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.bp-featured:hover .bp-feat-img img { transform: scale(1.04); }

.bp-feat-emoji {
    font-size: 80px;
    position: absolute;
}

.bp-feat-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 100px;
    z-index: 2;
}

.bp-feat-body {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bp-feat-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ff5c00;
}

.bp-feat-title {
    font-size: clamp(20px, 2.4vw, 28px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #111;
}

.bp-feat-excerpt {
    font-size: 14px;
    color: #888;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bp-feat-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #aaa;
}

.bp-feat-meta .dot { color: #ddd; }

.bp-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #111;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 100px;
    align-self: flex-start;
    transition: background 0.2s, transform 0.2s;
    margin-top: 6px;
}

.bp-read-btn span { transition: transform 0.2s; }
.bp-featured:hover .bp-read-btn { background: #333; }
.bp-featured:hover .bp-read-btn span { transform: translateX(3px); }

/* ── SECTION LABEL ── */
.bp-section-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.bp-section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #aaa;
}

/* ── POST GRID ── */
.bp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.bp-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    animation: bpFadeUp 0.45s ease forwards;
}

.bp-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.bp-card-thumb {
    height: 180px;
    background: #e8e5de;
    overflow: hidden;
}

.bp-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.bp-card:hover .bp-card-thumb img { transform: scale(1.06); }

.bp-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #ccc;
}

.bp-card-body {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bp-card-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ff5c00;
}

.bp-card-title {
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.35;
    color: #111;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bp-card-excerpt {
    font-size: 12.5px;
    color: #888;
    line-height: 1.55;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bp-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #aaa;
    padding-top: 12px;
    border-top: 1px solid rgba(0,0,0,0.07);
    margin-top: auto;
}

.bp-card-meta .dot { color: #ddd; }

/* ── MORE POSTS LIST ── */
.bp-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 56px;
}

.bp-list-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    text-decoration: none;
    color: inherit;
    transition: padding-left 0.2s ease;
    opacity: 0;
    animation: bpSlideIn 0.4s cubic-bezier(0.22,1,0.36,1) forwards;
}

.bp-list-item:last-child { border-bottom: none; }
.bp-list-item:hover { padding-left: 8px; }
.bp-list-item:hover .bp-list-thumb img { transform: scale(1.07); }
.bp-list-item:hover .bp-list-arrow {
    border-color: #ff5c00;
    color: #ff5c00;
    background: rgba(255,92,0,0.06);
    transform: translateX(3px);
}

.bp-list-thumb {
    width: 84px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #e8e5de;
    position: relative;
}

.bp-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.bp-list-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ccc;
}

.bp-list-dot {
    position: absolute;
    top: 6px; left: 6px;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #ff5c00;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.9);
}

.bp-list-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bp-list-tag {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ff5c00;
}

.bp-list-title {
    font-size: 15px;
    font-weight: 650;
    line-height: 1.35;
    color: #111;
}

.bp-list-excerpt {
    font-size: 12.5px;
    color: #888;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bp-list-meta {
    display: flex;
    gap: 6px;
    align-items: center;
    font-size: 11px;
    color: #aaa;
    margin-top: 2px;
}

.bp-list-meta .dot { color: #ddd; }

.bp-list-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #bbb;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

/* ── PAGINATION ── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 0 80px;
}

.pagination .older-posts,
.pagination .newer-posts {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ff5c00;
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 100px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 12px rgba(255,92,0,0.3);
}

.pagination .older-posts:hover,
.pagination .newer-posts:hover {
    background: #e65200;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,92,0,0.4);
}

.pagination .page-number {
    font-size: 13px;
    color: #aaa;
}

/* ── ANIMATIONS ── */
@keyframes bpFadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes bpSlideIn {
    from { opacity: 0; transform: translateX(-12px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .bp-grid { grid-template-columns: repeat(2, 1fr); }
    .bp-featured { grid-template-columns: 1fr; }
    .bp-feat-img { height: 240px; }
    .bp-feat-body { padding: 28px; }
}

@media (max-width: 560px) {
    .bp-grid { grid-template-columns: 1fr; }
    .bp-hero { padding: 48px 0 32px; }
    .bp-list-excerpt { display: none; }
    .bp-list-title {
        display: block;
        -webkit-line-clamp: unset;
        overflow: visible;
        white-space: normal;
    }
}
