﻿/*
Theme Name:   FilipinoToDate Blog
Description:  Child theme sa Hello Elementor — single post layout ug [ftd_posts] shortcode para sa FilipinoToDate blog. Ang header ug footer gikan gihapon sa Elementor.
Template:     hello-elementor
Version:      1.3.1
Text Domain:  ftd-blog
*/

/* =========================================================
   Header (Elementor / HFE) nga sticky + buton pabalik sa ibabaw
   ========================================================= */
/* Ang HFE plugin nagbutang og "position: relative" sa #masthead — kinahanglan !important. */
body.ehf-header #masthead { position: sticky !important; top: var(--wp-admin--admin-bar--height, 0px); z-index: 999; background: #fff; transition: box-shadow .2s ease; }
body.ehf-header #masthead.is-scrolled { box-shadow: 0 6px 24px rgba(43, 18, 64, .10); }

/* Parehas sa .to-top sa dashboard sa main site — puti nga lingin, pink nga chevron. */
.ftd-totop { position: fixed; right: 20px; bottom: 20px; z-index: 998; width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; border-radius: 50%; padding: 0; background: #fff; color: #C81664; cursor: pointer;
  box-shadow: 0 8px 24px rgba(23, 18, 31, .08); opacity: 0; visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease; }
.ftd-totop.is-visible { opacity: 1; visibility: visible; }
.ftd-totop:hover, .ftd-totop:focus, .ftd-totop:focus-visible { transform: translateY(-3px); background: #fff; color: #C81664; }
.ftd-totop svg { width: 26px; height: 26px; fill: currentColor; display: block; }
@media (prefers-reduced-motion: reduce) { .ftd-totop { transition: none; } }

/* =========================================================
   Single post (single.php)
   ========================================================= */
.ftd-single { --ftd-ink: #17121F; --ftd-plum: #2B1240; --ftd-pink: #C8155F; --ftd-muted: #5E5470; --ftd-line: #ECE7F1;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ftd-ink); }
.ftd-single *, .ftd-single *::before, .ftd-single *::after { box-sizing: border-box; }
.ftd-wrap { max-width: 1172px; margin: 0 auto; padding: 0 20px; }

/* Hero */
.ftd-hero { background: #1B0B26; color: #fff; padding: 96px 0 104px; }
.ftd-hero-cat { margin: 0 0 12px; font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #F7A8CB; }
.ftd-hero-cat a { color: #F7A8CB; text-decoration: none; }
.ftd-hero-cat a:hover { color: #fff; }
.ftd-hero h1 { margin: 0; max-width: 900px; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.12; font-weight: 800;
  letter-spacing: -0.02em; color: #fff; }

/* Body: content + sidebar */
/* Ang padding sa ibabaw/ubos ra — ang sa kilid (20px) gikan sa .ftd-wrap. */
.ftd-body { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 72px; padding-bottom: 96px; }
.ftd-main { flex: 999 1 640px; min-width: 0; }
.ftd-side { flex: 1 1 280px; min-width: 0; }

.ftd-crumbs { margin: 0 0 24px; font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ftd-pink); }
.ftd-crumbs a { color: var(--ftd-pink); text-decoration: none; }
.ftd-crumbs a:hover { text-decoration: underline; }
.ftd-crumbs span[aria-current] { color: var(--ftd-pink); }

.ftd-featured { margin: 0 0 22px; }
.ftd-featured img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }

.ftd-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 22px; }
.ftd-date { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ftd-plum); }
.ftd-share { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ftd-share a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: #fff; transition: transform .15s ease; }
.ftd-share a:hover { transform: translateY(-2px); }
.ftd-share svg { width: 17px; height: 17px; fill: currentColor; }
.ftd-share .is-fb { background: #3B5998; }
.ftd-share .is-x { background: #000; }
.ftd-share .is-pin { background: #D32F2F; }

/* Ang sulod sa post */
.ftd-content { font-size: 17.5px; line-height: 1.75; }
.ftd-content > * { margin-top: 0; margin-bottom: 1.2em; }
.ftd-content h1, .ftd-content h2, .ftd-content h3, .ftd-content h4 { color: var(--ftd-plum); font-weight: 800; line-height: 1.25; margin: 1.6em 0 .6em; letter-spacing: -0.01em; }
.ftd-content h1 { font-size: 44px; }
.ftd-content h2 { font-size: 32px; }
.ftd-content h3 { font-size: 25px; }
.ftd-content h4 { font-size: 20px; }
/* Tanang link sa sulod naay underline — lig-on ang selector kay ang Elementor kit mo-tangtang niini. */
.ftd-single .ftd-content a { color: var(--ftd-pink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.ftd-single .ftd-content a:hover { color: #A51150; text-decoration-thickness: 2px; }
.ftd-content img { max-width: 100%; height: auto; }
.ftd-content blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--ftd-pink); color: var(--ftd-muted); font-style: italic; }
.ftd-content ul, .ftd-content ol { padding-left: 1.3em; }

/* Join Free — sa ubos sa matag post */
.ftd-cta { margin-top: 48px; padding: 32px 30px; background: #FCEFF6; border-radius: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.ftd-cta h2 { margin: 0 0 6px; font-size: 24px; font-weight: 800; color: var(--ftd-plum); }
.ftd-cta p { margin: 0; color: #4A4258; font-size: 16px; line-height: 1.6; }
.ftd-cta a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 28px; border-radius: 999px;
  background: var(--ftd-pink); color: #fff; font-weight: 800; text-decoration: none; }
.ftd-cta a:hover { background: #A51150; }

/* Sidebar */
.ftd-side-title { margin: 10px 0 18px; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ftd-pink); }
.ftd-cats { margin: 0 0 36px; padding: 0; list-style: none; display: grid; gap: 12px; }
.ftd-cats a { color: var(--ftd-plum); font-size: 18px; text-decoration: underline; text-underline-offset: 3px; }
.ftd-cats a:hover { color: var(--ftd-pink); }
.ftd-cats .current-cat > a { color: var(--ftd-pink); font-weight: 700; }

/* Recent posts: kwadrado nga litrato (72px) + titulo ug petsa. Lig-on ang selector kay ang Elementor/Hello reset mo-override sa img. */
.ftd-side .ftd-recent { margin: 0; padding: 0; list-style: none; display: grid; gap: 18px; }
.ftd-side .ftd-recent li { margin: 0; padding: 0; }
.ftd-side .ftd-recent a { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: center;
  color: var(--ftd-ink); text-decoration: none; }
.ftd-side .ftd-recent-img { display: block; width: 72px; height: 72px; overflow: hidden; border-radius: 12px; }
.ftd-side .ftd-recent-img img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: 0; }
.ftd-side .ftd-recent-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ftd-side .ftd-recent-title { font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--ftd-plum);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ftd-side .ftd-recent-date { font-size: 12.5px; color: var(--ftd-muted); }
.ftd-side .ftd-recent a:hover .ftd-recent-title { color: var(--ftd-pink); }

/* =========================================================
   Category page (category.php) — lista sa mga post
   ========================================================= */
.ftd-hero-desc { margin: 16px 0 0; max-width: 720px; font-size: 18px; line-height: 1.6; color: #D9CFE3; }
.ftd-list { display: grid; gap: 28px; }
.ftd-item { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 26px; align-items: center;
  padding-bottom: 28px; border-bottom: 1px solid var(--ftd-line); }
.ftd-item:last-child { padding-bottom: 0; border-bottom: 0; }
.ftd-archive .ftd-item-img { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 14px; }
.ftd-archive .ftd-item-img img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform .3s ease; }
.ftd-archive .ftd-item:hover .ftd-item-img img { transform: scale(1.04); }
.ftd-item-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ftd-item-meta { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ftd-muted); }
.ftd-archive .ftd-item-title { margin: 0; font-size: 24px; line-height: 1.3; font-weight: 800; letter-spacing: -0.01em; }
.ftd-archive .ftd-item-title a { color: var(--ftd-plum); text-decoration: none; }
.ftd-archive .ftd-item-title a:hover { color: var(--ftd-pink); }
.ftd-item-excerpt { margin: 0; font-size: 16px; line-height: 1.65; color: #4A4258; }
.ftd-archive .ftd-item-more { align-self: flex-start; margin-top: 2px; font-size: 15px; font-weight: 700; color: var(--ftd-pink); text-decoration: none; }
.ftd-archive .ftd-item-more:hover { text-decoration: underline; }
.ftd-empty { color: var(--ftd-muted); font-size: 17px; }

.ftd-archive .ftd-pages { margin-top: 40px; }
.ftd-archive .ftd-pages .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.ftd-archive .ftd-pages .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px;
  padding: 0 14px; border: 1.5px solid #DCD4E4; border-radius: 999px; color: var(--ftd-plum); font-weight: 700; text-decoration: none; }
.ftd-archive .ftd-pages a.page-numbers:hover { border-color: var(--ftd-pink); color: var(--ftd-pink); }
.ftd-archive .ftd-pages .page-numbers.current { background: var(--ftd-pink); border-color: var(--ftd-pink); color: #fff; }
.ftd-archive .ftd-pages .page-numbers.dots { border-color: transparent; }

@media (max-width: 760px) {
  .ftd-item { grid-template-columns: 1fr; gap: 16px; }
  .ftd-archive .ftd-item-title { font-size: 21px; }
  .ftd-hero-desc { font-size: 16px; }
}

.ftd-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--ftd-line); }
.ftd-nav a { color: var(--ftd-plum); font-weight: 700; text-decoration: none; }
.ftd-nav a:hover { color: var(--ftd-pink); }

@media (max-width: 760px) {
  .ftd-hero { padding: 64px 0 72px; }
  .ftd-body { padding-top: 44px; padding-bottom: 64px; }
  .ftd-content { font-size: 16.5px; }
  .ftd-content h1 { font-size: 34px; }
  .ftd-content h2 { font-size: 27px; }
}

/* =========================================================
   [ftd_posts] — grid sa mga post (functions.php)
   ========================================================= */
.ftd-posts { --ftd-plum: #2B1240; --ftd-pink: #C8155F;
  display: grid; grid-template-columns: repeat(var(--ftd-cols, 3), minmax(0, 1fr)); gap: 26px;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif; }
.ftd-card { position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid #ECE7F1; border-radius: 16px; box-shadow: 0 6px 22px rgba(43, 18, 64, .06);
  transition: box-shadow .18s ease, transform .18s ease; }
.ftd-card:hover { box-shadow: 0 12px 30px rgba(43, 18, 64, .12); transform: translateY(-2px); }
.ftd-card-img { display: block; aspect-ratio: 16 / 9; }
.ftd-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ftd-card-tag { position: absolute; top: 12px; left: 12px; padding: 5px 11px; border-radius: 999px;
  background: #fff; color: #2B1240; font-size: 11.5px; font-weight: 700; text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.ftd-card-tag:hover { color: var(--ftd-pink); }
.ftd-card-body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 22px; }
.ftd-card-meta { margin: 0; font-size: 12.5px; color: #6B6280; }
.ftd-card-title { margin: 0; font-size: 18px; line-height: 1.35; font-weight: 800; }
.ftd-card-title a { color: var(--ftd-plum); text-decoration: none; }
.ftd-card-title a:hover { color: var(--ftd-pink); }
.ftd-card-excerpt { flex: 1; margin: 0; font-size: 14px; line-height: 1.6; color: #4A4258; }
.ftd-card-more { margin-top: 4px; font-size: 14px; font-weight: 700; color: var(--ftd-pink); text-decoration: none; }
.ftd-card-more:hover { text-decoration: underline; }
.ftd-posts-more { margin: 26px 0 0; text-align: center; }
.ftd-posts-more a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 24px; border-radius: 999px;
  border: 1.5px solid #DCD4E4; color: #2B1240; font-weight: 700; text-decoration: none; }
.ftd-posts-more a:hover { border-color: #C8155F; color: #C8155F; }
.ftd-posts-empty { color: #6B6280; }
/* Ang link style sa Elementor kit (".elementor-kit-N a") mas lig-on — walay underline sa card. */
.ftd-posts .ftd-card a, .ftd-posts-more a { text-decoration: none; }
.ftd-posts .ftd-card .ftd-card-more:hover { text-decoration: underline; }
@media (max-width: 1024px) { .ftd-posts { grid-template-columns: repeat(min(var(--ftd-cols, 3), 2), minmax(0, 1fr)); } }
@media (max-width: 640px)  { .ftd-posts { grid-template-columns: 1fr; } }
