/* ================================================================
   All plugins: cards (Plugins page, homepage, "More plugins") and
   the page of one plugin. Builds on plugin-clear-cache.css.
   ================================================================ */

/* Hero without a screenshot below it */
.htlps-hero { padding-bottom: 5rem; }
.htlps-hero__icon { display: flex; justify-content: center; margin-bottom: 1.5rem; }
.htlps-hero__icon .htlps-icon { border-radius: 22px; box-shadow: 0 10px 40px rgba(0,0,0,.35); }

/* Icons */
.htlps-icon { display: block; border-radius: 16px; flex: none; }
.htlps-icon--drawn { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--navy-light), var(--navy-dark)); color: var(--orange); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.htlps-icon--drawn svg { width: 56%; height: 56%; }

/* "Coming soon" in place of a download button */
.htlps-btn--soon { background: rgba(255,255,255,.1); border-color: rgba(253,137,27,.55); color: #ffb96a; cursor: default; }
.htlps-btn--soon:hover { transform: none; }

/* Card grid */
.htlps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.htlps-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); color: var(--text); text-decoration: none; transition: all var(--trans, .3s ease); }
a.htlps-card:hover { border-color: rgba(253,137,27,.5); box-shadow: 0 14px 44px rgba(19,54,87,.16); transform: translateY(-4px); text-decoration: none; color: var(--text); }
.htlps-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.htlps-card__category { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); margin-bottom: .35rem; }
.htlps-card h3 { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; color: var(--navy); line-height: 1.3; margin: 0 0 .6rem; }
.htlps-card p { font-size: .92rem; line-height: 1.65; color: var(--muted); margin: 0 0 1rem; }
.htlps-card__points { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: .45rem; }
.htlps-card__points li { position: relative; padding-left: 24px; font-size: .86rem; color: var(--text); }
.htlps-card__points li::before { content: '✓'; position: absolute; left: 0; top: 1px; width: 17px; height: 17px; border-radius: 50%; background: rgba(253,137,27,.15); color: var(--orange); font-size: .65rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.htlps-card__foot { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.6rem; }
.htlps-card__meta { font-size: .8rem; color: var(--muted); }
.htlps-card__more { font-size: .88rem; font-weight: 700; color: var(--orange); white-space: nowrap; }

/* Status badge */
.htlps-badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 50px; padding: 4px 12px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.htlps-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.htlps-badge--live { background: rgba(22,163,74,.1); color: #15803d; }
.htlps-badge--soon { background: rgba(253,137,27,.12); color: #b45309; }

/* Homepage: the other plugins under "Our WordPress plugin" */
.htlps-home { background: var(--bg); padding: 4.5rem 5%; }
.htlps-home__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.htlps-home__head h2 { font-family: var(--font-head); font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; color: var(--navy); letter-spacing: -0.02em; margin: 0; }
.htlps-home__head h2 span { color: var(--orange); }
.htlps-home__all { font-weight: 700; color: var(--orange); text-decoration: none; white-space: nowrap; }
.htlps-home__all:hover { color: var(--orange-dark); text-decoration: underline; }

@media (max-width: 980px) {
	.htlps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
	.htlps-grid { grid-template-columns: minmax(0, 1fr); }
	.htlps-hero { padding-bottom: 3.5rem; }
	.htlps-home { padding: 3.5rem 5%; }
}
