/* Public SEO pages (/styles, /niches, /trending, /tools). Builds on landing.css tokens and vs.css. */

.footer-inner { grid-template-columns: 2fr repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.pb-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pb-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.pb-wide { max-width: 1080px; }

.pb-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0 !important; margin-top: 22px !important; }
.pb-facts li { margin: 0 !important; font-size: 14px !important; border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; background: var(--surface); }
.pb-facts strong { color: var(--text); }

.pb-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.pb-cols > div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 18px; min-width: 0; }
.pb-cols li { font-size: 15px !important; }
.pb-two { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Style cards: fixed 9:16 thumbnails so nothing shifts while images load. */
.st-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.st-card { display: flex; flex-direction: column; gap: 4px; min-width: 0; color: inherit; text-decoration: none !important; }
.st-thumb { display: block; aspect-ratio: 9 / 16; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--border); margin-bottom: 8px; }
.st-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.st-card:hover .st-thumb img { transform: scale(1.03); }
.st-name { font-weight: 800; font-size: 16px; color: var(--text); }
.st-sum { font-size: 14px; color: var(--text-secondary); line-height: 1.45; }
.st-meta { font-size: 12.5px; color: var(--text-muted); }

/* Sample videos */
.pv-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.pv-card { margin: 0; min-width: 0; }
.pv-play { position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); cursor: pointer; }
.pv-play video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-icon { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .55); color: #fff; transition: opacity .2s; }
.pv-play.playing .pv-icon { opacity: 0; }
.pv-card figcaption { font-size: 13px; color: var(--text-muted); margin-top: 6px; line-height: 1.4; overflow-wrap: anywhere; }

/* Trending list */
.tr-list { list-style: none; padding: 0 !important; margin: 8px 0 0 !important; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.tr-item { display: grid; grid-template-columns: 28px 64px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 14px; margin: 0 !important; border-bottom: 1px solid var(--border-soft); background: var(--surface); }
.tr-item:last-child { border-bottom: 0; }
.tr-rank { font-weight: 800; color: var(--text-muted); text-align: center; font-size: 15px; }
.tr-img { width: 64px; height: 64px; border-radius: var(--radius-sm); object-fit: cover; background: var(--bg); }
.tr-body { display: flex; flex-direction: column; min-width: 0; }
.tr-title { font-weight: 700; color: var(--text); font-size: 15px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tr-meta { font-size: 13px; color: var(--text-muted); }
.tr-speed { text-align: right; line-height: 1.2; }
.tr-speed strong { display: block; font-size: 17px; color: var(--text); }
.tr-speed span { font-size: 11.5px; color: var(--text-muted); }
.tr-link { font-size: 13px; font-weight: 600; padding: 6px 10px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-secondary) !important; text-decoration: none !important; }
.tr-filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.tr-filters label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
.tr-filters select, .tool-form select, .tool-form input, .tool-form textarea, .tr-unlock input[type="email"] {
  font: inherit; font-size: 16px; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 10px 12px; min-width: 0; }
.tr-gate { margin-top: 18px; border: 1px solid rgba(254, 44, 85, 0.45); background: rgba(254, 44, 85, 0.05); border-radius: var(--radius-xl); padding: 24px; }
.tr-unlock { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; max-width: 460px; }
.tr-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-secondary); line-height: 1.45; }
.tr-consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.tr-msg { font-size: 14px !important; color: var(--warning) !important; min-height: 1em; margin: 0 !important; }

/* Tools */
.tool-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 22px; }
.tool-form { display: flex; flex-direction: column; gap: 10px; }
.tool-form > label, .tool-row label { font-size: 13px; font-weight: 700; color: var(--text-secondary); display: flex; flex-direction: column; gap: 6px; }
.tool-form textarea { resize: vertical; }
.tool-form .btn { align-self: flex-start; }
.tool-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tool-box h3 { margin-top: 20px; }
.tool-results { list-style: none; padding: 0 !important; margin: 14px 0 0 !important; display: flex; flex-direction: column; gap: 8px; }
.tool-result { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 !important; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg); }
.tool-result > div { display: flex; flex-direction: column; min-width: 0; }
.tool-result-label { font-size: 12px; color: var(--text-muted); }
.tool-result-text { font-size: 16px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.tool-copy { flex: none; font: inherit; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }

@media (max-width: 900px) {
  .st-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .st-grid, .pv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pb-cols, .tool-row, .pb-two { grid-template-columns: minmax(0, 1fr); }
  .tr-item { grid-template-columns: 22px 52px minmax(0, 1fr) auto; gap: 10px; padding: 10px; }
  .tr-img { width: 52px; height: 52px; }
  .tr-link { display: none; }
  .tr-gate, .tool-box { padding: 18px; }
}

/* Guides (/guides) */
.gd-draft { border: 1px dashed var(--warning, #f5a524); background: rgba(245, 165, 36, 0.08); border-radius: var(--radius-md); padding: 12px 16px; font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; line-height: 1.5; }
.gd-draft strong { color: var(--text); margin-right: 6px; }
.gd-meta { font-size: 14px !important; color: var(--text-muted) !important; margin-top: 14px !important; }
.gd-toc { margin-top: 32px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 22px; }
.gd-toc h2 { font-size: 15px !important; letter-spacing: 0 !important; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px !important; }
.gd-toc ol { margin-top: 4px !important; }
.gd-toc li { font-size: 15.5px !important; }
.gd-toc a { text-decoration: none !important; }
.gd-article section h3 { margin-top: 26px; }
.gd-article section .tr-list, .gd-article section .gd-styles { margin-top: 16px !important; }
.gd-list { display: flex; flex-direction: column; gap: 12px; }
.gd-card { padding: 20px 22px; }
.gd-card .vs-card-title { font-size: 18px; }
.gd-card-meta { font-size: 12.5px; color: var(--text-muted); }
.gd-badge { display: inline-block; vertical-align: middle; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; padding: 2px 8px; border-radius: 999px; border: 1px dashed var(--warning, #f5a524); color: var(--text-secondary); margin-left: 6px; }
.gd-article section ol + p, .gd-article section ul + p, .gd-article section .tr-list + p { margin-top: 14px; }
.gd-article section h3 + p { margin-top: 0; }
