/* ═══════════════════════════════════════
   PORE Home — index.css
   ═══════════════════════════════════════ */

/* ── Hero ── */
.hero { background: var(--pore-parchment); position: relative; overflow: hidden; padding: 5rem 0 4rem; text-align: center; border-bottom: 1px solid var(--pore-rule); }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(45,80,22,.06) 0%, transparent 70%); pointer-events: none; }
.hero__eyebrow { font-family: var(--pore-font-ui); font-size: .65rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--pore-green); display: inline-block; margin-bottom: .6rem; padding: .35rem .9rem; border: 1px solid rgba(45,80,22,.2); border-radius: var(--pore-radius); background: rgba(45,80,22,.04); }
.hero h1 { font-family: var(--pore-font-display); font-size: 3.2rem; font-weight: 700; color: var(--pore-ink); margin-bottom: .3rem; letter-spacing: -.02em; }
.hero h1 span { color: var(--pore-green); }
.hero__sub { font-family: var(--pore-font-display); font-style: italic; font-size: 1.2rem; color: var(--pore-ink-muted); max-width: 600px; margin: 0 auto 1.5rem; line-height: 1.6; }
.hero__search { max-width: 640px; margin: 0 auto; position: relative; }
.hero__search input { width: 100%; padding: 1rem 3.2rem 1rem 1.2rem; font-family: var(--pore-font-display); font-size: 1rem; font-style: italic; border: 2px solid var(--pore-rule); border-radius: var(--pore-radius); background: var(--pore-surface-card); color: var(--pore-ink); transition: border-color .2s, box-shadow .2s; }
.hero__search input::placeholder { color: var(--pore-sand); }
.hero__search input:focus { outline: none; border-color: var(--pore-green); box-shadow: 0 0 0 4px rgba(45,80,22,.08); }
.hero__search button { position: absolute; right: 4px; top: 4px; bottom: 4px; width: 44px; background: var(--pore-green); color: #fff; border: none; border-radius: var(--pore-radius); cursor: pointer; font-size: 1rem; transition: background .15s; }
.hero__search button:hover { background: var(--pore-green-deep); }
.hero__ctas { display: flex; justify-content: center; gap: .75rem; flex-wrap: wrap; margin-top: 1.25rem; }

/* ── Shloka (hero variant) ── */
.hero-shloka { max-width: 560px; margin: 2rem auto 0; padding: 1.25rem 1.5rem; border-left: 3px solid var(--pore-ochre); background: rgba(237,229,212,.5); border-radius: 0 var(--pore-radius) var(--pore-radius) 0; text-align: left; }
.hero-shloka .sk { font-family: var(--pore-font-devanagari); font-size: 1.1rem; color: var(--pore-ochre); line-height: 1.7; margin-bottom: .4rem; }
.hero-shloka .tl { font-family: var(--pore-font-display); font-style: italic; font-size: .88rem; color: var(--pore-ink-muted); margin-bottom: .35rem; }
.hero-shloka .tr { font-family: var(--pore-font-ui); font-size: .8rem; color: var(--pore-ink-faint); line-height: 1.5; }

/* ── Stats ── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--pore-rule); background: var(--pore-surface); }
.stats__item { text-align: center; padding: 1.5rem 1rem; border-right: 1px solid var(--pore-rule); position: relative; }
.stats__item:last-child { border-right: none; }
.stats__num { font-family: var(--pore-font-display); font-size: 2rem; font-weight: 700; color: var(--pore-green); display: block; line-height: 1.2; }
.stats__label { font-family: var(--pore-font-ui); font-size: .65rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--pore-ink-muted); }
.stats__sub { font-family: var(--pore-font-ui); font-size: .7rem; color: var(--pore-ink-faint); margin-top: .15rem; }

/* ── Sections ── */
.sec { padding: 3.5rem 0; }
.sec + .sec { border-top: 1px solid var(--pore-rule); }
.sec--parchment { background: var(--pore-parchment); }
.sec__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.5rem; padding-bottom: .65rem; border-bottom: 1px solid var(--pore-rule); }
.sec__head h2 { font-family: var(--pore-font-display); font-size: 1.6rem; font-weight: 600; margin: 0; color: var(--pore-ink); }
.sec__head h2 .sec-num { font-family: var(--pore-font-ui); font-size: .65rem; font-weight: 700; color: var(--pore-green); letter-spacing: .1em; display: block; margin-bottom: .2rem; }
.sec__head a { font-size: .8rem; font-weight: 600; color: var(--pore-green-mid); text-decoration: none; transition: color .15s; }
.sec__head a:hover { color: var(--pore-green); }

/* ── Article Cards ── */
.articles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.acard { background: var(--pore-surface-card); border: 1px solid var(--pore-rule); border-left: 3px solid var(--pore-green); border-radius: var(--pore-radius); padding: 1.25rem 1.4rem; display: flex; flex-direction: column; transition: box-shadow .25s, transform .2s; }
.acard:hover { box-shadow: var(--pore-shadow-hover); transform: translateY(-2px); }
.acard__badge { display: inline-flex; align-items: center; gap: 4px; padding: .12rem .5rem; font-size: .6rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-radius: var(--pore-radius); margin-bottom: .5rem; width: fit-content; }
.acard__badge--ideas { background: var(--pore-warm); color: var(--pore-ochre); }
.acard__badge--journal { background: var(--pore-green-light); color: var(--pore-green); }
.acard__badge i { font-size: 8px; }
.acard__title { font-family: var(--pore-font-display); font-size: 1.08rem; font-weight: 600; color: var(--pore-ink); line-height: 1.35; margin-bottom: .3rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.acard__meta { display: flex; flex-wrap: wrap; gap: .2rem .65rem; font-size: .78rem; color: var(--pore-ink-muted); margin-bottom: .3rem; }
.acard__meta i { font-size: .65rem; color: var(--pore-green-muted); margin-right: 3px; }
.acard__doi { font-family: var(--pore-font-mono); font-size: .72rem; margin-bottom: .3rem; }
.acard__doi a { color: var(--pore-green-mid); text-decoration: none; }
.acard__doi a:hover { color: var(--pore-green); text-decoration: underline; }
.acard__abstract { font-size: .84rem; color: var(--pore-ink-muted); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: .5rem; }
.acard__tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .5rem; }
.acard__tags span { padding: .1rem .45rem; background: var(--pore-green-light); color: var(--pore-green); font-size: .68rem; font-weight: 500; border-radius: var(--pore-radius); }
.acard__foot { margin-top: auto; padding-top: .65rem; display: flex; align-items: center; justify-content: space-between; }

/* ── Author Cards ── */
.authors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1.1rem; }
.auth-card { background: var(--pore-surface-card); border: 1px solid var(--pore-rule); border-radius: var(--pore-radius); padding: 1.5rem 1.25rem; text-align: center; transition: box-shadow .25s, transform .2s; position: relative; }
.auth-card:hover { box-shadow: var(--pore-shadow-hover); transform: translateY(-2px); }
.auth-card__platform { position: absolute; top: .75rem; right: .75rem; padding: .1rem .4rem; font-size: .55rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; border-radius: var(--pore-radius); }
.auth-card__platform--ideas { background: var(--pore-warm); color: var(--pore-ochre); }
.auth-card__platform--journal { background: var(--pore-green-light); color: var(--pore-green); }
.auth-card__avatar { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; margin: 0 auto .65rem; display: block; border: 3px solid var(--pore-warm); background: var(--pore-warm); }
.auth-card__name { font-family: var(--pore-font-display); font-size: .98rem; font-weight: 600; color: var(--pore-ink); margin-bottom: .15rem; }
.auth-card__detail { font-size: .75rem; color: var(--pore-ink-muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.auth-card__count { font-size: .7rem; font-weight: 600; color: var(--pore-green-mid); margin-top: .4rem; }

/* ── Ecosystem Pillars ── */
.eco-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.eco-tile { background: var(--pore-surface-card); border: 1px solid var(--pore-rule); border-radius: var(--pore-radius); padding: 2rem 1.5rem 1.5rem; text-align: center; text-decoration: none; display: block; position: relative; overflow: hidden; transition: box-shadow .25s, transform .2s; }
.eco-tile::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--pore-green); }
.eco-tile:hover { box-shadow: var(--pore-shadow-hover); transform: translateY(-3px); }
.eco-tile__glyph { font-size: 1.8rem; color: var(--pore-ochre); display: block; margin-bottom: .6rem; line-height: 1; }
.eco-tile h3 { font-family: var(--pore-font-display); font-size: 1.1rem; font-weight: 600; color: var(--pore-ink); margin-bottom: .3rem; }
.eco-tile p { font-size: .8rem; color: var(--pore-ink-muted); line-height: 1.5; }
.eco-tile__arrow { font-size: .75rem; color: var(--pore-green-mid); margin-top: .6rem; display: inline-block; transition: transform .15s; }
.eco-tile:hover .eco-tile__arrow { transform: translateX(4px); }

/* ── How It Works ── */
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; text-align: center; }
.how-step { position: relative; }
.how-step__num { font-family: var(--pore-font-display); font-size: 2.5rem; font-weight: 700; color: var(--pore-green-light); line-height: 1; margin-bottom: .3rem; }
.how-step h4 { font-family: var(--pore-font-display); font-size: 1.05rem; font-weight: 600; color: var(--pore-ink); margin-bottom: .3rem; }
.how-step p { font-size: .82rem; color: var(--pore-ink-muted); line-height: 1.55; }
.how-arrow { display: none; }

/* ── CTA Banner ── */
.cta-banner { background: var(--pore-green); color: #fff; padding: 3rem 0; text-align: center; }
.cta-banner h2 { font-family: var(--pore-font-display); font-size: 1.8rem; color: #fff; margin-bottom: .5rem; }
.cta-banner p { font-size: 1rem; color: rgba(255,255,255,.8); margin-bottom: 1.25rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-banner .p-btn { background: #fff; color: var(--pore-green); border-color: #fff; }
.cta-banner .p-btn:hover { background: var(--pore-parchment); }
.cta-banner .p-btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.cta-banner .p-btn-ghost:hover { background: rgba(255,255,255,.15); }

/* ── Info box ── */
.empty-state { background: var(--pore-warm); border: 1px solid var(--pore-rule); border-radius: var(--pore-radius); padding: 1rem 1.25rem; font-size: .88rem; color: var(--pore-ink-muted); display: flex; align-items: center; gap: .6rem; grid-column: 1 / -1; }

/* ── Animate on scroll ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal:nth-child(2) { transition-delay: .06s; }
.reveal:nth-child(3) { transition-delay: .12s; }
.reveal:nth-child(4) { transition-delay: .18s; }
.reveal:nth-child(5) { transition-delay: .24s; }
.reveal:nth-child(6) { transition-delay: .3s; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero { padding: 3.5rem 0 3rem; }
  .hero h1 { font-size: 2.2rem; }
  .hero__sub { font-size: 1rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats__item:nth-child(2) { border-right: none; }
  .stats__num { font-size: 1.5rem; }
  .articles-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .sec__head { flex-direction: column; gap: .4rem; }
}
@media (max-width: 576px) {
  .hero h1 { font-size: 1.8rem; }
  .hero-shloka { margin: 1.5rem 0 0; }
  .eco-grid { grid-template-columns: 1fr; }
  .authors-grid { grid-template-columns: repeat(2, 1fr); }
}
