/**
 * GlowDailyHub — Homepage redesign (scoped under .page-home)
 * Hero / header / footer are NOT affected by this file.
 * Includes light + dark themes and full mobile responsiveness.
 */

.page-home,
.page-category {
    --h-accent:   #E94560;
    --h-accent-d: #C73650;
    --h-title:    #7C2D43;
    --h-text:     #1F2937;
    --h-muted:    #6B7280;
    --h-border:   #EFE3E8;
    --h-card:     #FFFFFF;
    --h-soft:     #FFF5F7;
    --h-radius:   16px;
    --h-shadow:   0 6px 24px rgba(20, 20, 50, .06);
}
[data-theme="dark"] .page-home,
[data-theme="dark"] .page-category {
    --h-title:  #FF8FA3;
    --h-text:   #E5E7EB;
    --h-muted:  #9CA3AF;
    --h-border: #2A2632;
    --h-card:   #1A1A24;
    --h-soft:   #221A20;
    --h-shadow: 0 8px 30px rgba(0, 0, 0, .45);
}

/* ── layout ──────────────────────────────────────────────────── */
.home { padding: 42px 0 72px; }
.home__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 32px;
    align-items: start;
}
.home__main { min-width: 0; }
.home__side { display: flex; flex-direction: column; gap: 18px; }

.home-block__head { margin-bottom: 20px; }
.home-block__title {
    font-family: var(--font-heading);
    font-size: 28px; font-weight: 700; color: var(--h-text); margin: 0;
}
.home-block__sub { margin: 4px 0 0; font-size: 14px; color: var(--h-muted); }
.home-empty {
    padding: 50px 20px; text-align: center; color: var(--h-muted);
    border: 1px dashed var(--h-border); border-radius: var(--h-radius);
}

/* ── main feed cards (numbered "Read More") ──────────────────── */
.post-feed { display: flex; flex-direction: column; gap: 18px; }
.feed-card {
    display: flex; gap: 16px;
    background: var(--h-card);
    border: 1px solid var(--h-border);
    border-radius: var(--h-radius);
    padding: 10px;
    box-shadow: var(--h-shadow);
    transition: transform .15s ease, box-shadow .15s ease;
}
.feed-card:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(233, 69, 96, .14); }
.feed-card__media {
    position: relative; flex: 0 0 34%;
    border-radius: 12px; overflow: hidden;
    aspect-ratio: 4 / 3; display: block;
}
.feed-card__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.feed-card__media:hover .feed-card__img { transform: scale(1.06); }
.feed-card__num {
    position: absolute; top: 10px; left: 10px;
    background: var(--h-accent); color: #fff;
    font-weight: 700; font-size: 14px; line-height: 1;
    padding: 6px 11px; border-radius: 9px;
    box-shadow: 0 4px 12px rgba(233, 69, 96, .35);
}
.feed-card__body {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column; justify-content: center; gap: 9px;
    padding: 4px 6px;
}
.feed-card__eyebrow {
    font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
    color: var(--h-accent); text-decoration: none;
}
.feed-card__title {
    font-family: var(--font-heading);
    font-size: 30px; font-weight: 600; line-height: 1.3; margin: 0;
}
.feed-card__title a {
    color: var(--h-title);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}
.feed-card__title a:hover { color: var(--h-accent); }
.feed-card__excerpt {
    font-size: 13.5px; line-height: 1.55; color: var(--h-muted); margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.feed-card__btn {
    align-self: flex-start;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 18px;
    border: 1.5px solid var(--h-accent); color: var(--h-accent);
    border-radius: 999px; font-size: 13px; font-weight: 600; text-decoration: none;
    transition: background .15s ease, color .15s ease;
}
.feed-card__btn:hover { background: var(--h-accent); color: #fff; }

/* ── pagination ──────────────────────────────────────────────── */
.pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 34px; flex-wrap: wrap; }
.pager__btn {
    min-width: 42px; height: 42px; padding: 0 10px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--h-border); border-radius: 11px;
    background: var(--h-card); color: var(--h-text);
    font-weight: 600; font-size: 14px; text-decoration: none;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.pager__btn:hover { border-color: var(--h-accent); color: var(--h-accent); }
.pager__btn.is-active { background: var(--h-accent); border-color: var(--h-accent); color: #fff; }
.pager__btn.is-disabled { opacity: .4; pointer-events: none; }
.pager__btn--arrow { font-size: 18px; }
.pager__dots { color: var(--h-muted); padding: 0 2px; }

/* ── sidebar cards ───────────────────────────────────────────── */
.side-card {
    background: var(--h-card);
    border: 1px solid var(--h-border);
    border-radius: var(--h-radius);
    padding: 22px;
    box-shadow: var(--h-shadow);
}
.side-card--accent { background: var(--h-soft); }
.side-card__title {
    font-family: var(--font-heading);
    font-size: 18px; font-weight: 700; color: var(--h-text); margin: 0 0 14px;
}
.side-card__text { font-size: 13.5px; color: var(--h-muted); line-height: 1.6; margin: 0 0 16px; }

/* author */
.author-box { display: flex; gap: 14px; }
.author-box__avatar { flex: 0 0 64px; }
.author-box__avatar img,
.author-box__avatar span {
    width: 64px; height: 64px; border-radius: 50%; object-fit: cover; display: flex;
    align-items: center; justify-content: center;
    background: var(--h-accent); color: #fff; font-size: 24px; font-weight: 700;
}
.author-box__name { font-weight: 700; font-size: 15px; color: var(--h-text); margin-bottom: 4px; }
.author-box__bio { font-size: 13px; color: var(--h-muted); line-height: 1.55; margin: 0 0 10px; }
.author-box__social { display: flex; gap: 8px; }
.soc {
    width: 34px; height: 34px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--h-border); color: var(--h-muted);
    text-decoration: none; font-weight: 700; font-size: 14px; transition: all .15s ease;
}
.soc:hover { border-color: var(--h-accent); color: var(--h-accent); transform: translateY(-2px); }

/* popular posts */
.pop-list { display: flex; flex-direction: column; }
.pop-item {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 0; border-top: 1px solid var(--h-border); text-decoration: none;
}
.pop-item:first-child { border-top: none; padding-top: 0; }
.pop-item__thumb { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: 0 0 auto; }
.pop-item__title { font-size: 14px; font-weight: 600; color: var(--h-text); line-height: 1.35; }
.pop-item:hover .pop-item__title { color: var(--h-accent); }

/* newsletter */
.side-news__input {
    width: 100%; padding: 11px 14px; margin-bottom: 10px;
    border: 1px solid var(--h-border); border-radius: 10px;
    background: var(--h-card); color: var(--h-text); font: inherit; font-size: 14px;
}
.side-news__input:focus { outline: none; border-color: var(--h-accent); box-shadow: 0 0 0 3px rgba(233, 69, 96, .12); }
.side-news__btn {
    width: 100%; padding: 12px; border: none; border-radius: 10px;
    background: var(--h-accent); color: #fff; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer;
    transition: background .15s ease;
}
.side-news__btn:hover { background: var(--h-accent-d); }
.side-news__btn:disabled { opacity: .7; cursor: not-allowed; }
.side-news__msg { font-size: 13px; margin: 10px 0 0; }
.side-news__msg--success { color: #059669; }
.side-news__msg--error { color: #DC2626; }

/* follow pinterest */
.follow-btn {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    padding: 12px; border: 1.5px solid var(--h-accent); border-radius: 10px;
    color: var(--h-accent); font-weight: 600; font-size: 14px; text-decoration: none;
    transition: background .15s ease, color .15s ease;
}
.follow-btn:hover { background: var(--h-accent); color: #fff; }
.follow-btn:hover .follow-btn__icon { background: #fff; color: var(--h-accent); }
.follow-btn__icon {
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--h-accent); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800;
    transition: all .15s ease;
}

/* share */
.share-row { display: flex; gap: 10px; flex-wrap: wrap; }
.share-btn {
    width: 44px; height: 44px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 16px; text-decoration: none;
    transition: transform .15s ease, filter .15s ease;
}
.share-btn:hover { transform: translateY(-3px); filter: brightness(1.05); }
.share-btn--pin { background: #E60023; }
.share-btn--fb  { background: #1877F2; }
.share-btn--tw  { background: #111111; }
.share-btn--wa  { background: #25D366; }

/* ── responsive ──────────────────────────────────────────────── */
@media (max-width: 992px) {
    .home__grid { grid-template-columns: 1fr; gap: 28px; }
    .home__side { order: 2; }
}
@media (max-width: 560px) {
    .home { padding: 28px 0 56px; }
    .feed-card { flex-direction: column; gap: 0; padding: 0; overflow: hidden; }
    .feed-card__media { flex-basis: auto; width: 100%; aspect-ratio: 16 / 9; border-radius: 0; }
    .feed-card__body { padding: 16px; gap: 10px; }
    .feed-card__title { font-size: 19px; }
    .home-block__title { font-size: 23px; }
    .pager__btn { min-width: 38px; height: 38px; }
}

/* ── author page article list ────────────────────────────────── */
.author-articles { max-width: 840px; margin: 36px auto 0; }
.author-articles__title {
    font-family: var(--font-heading);
    font-size: 24px; font-weight: 700; color: var(--h-text);
    margin: 0 0 20px; padding-bottom: 12px; border-bottom: 2px solid var(--h-border);
}