/*
Theme Name: PDFGRT SEO Library
Theme URI: https://pdfgrt.com/
Author: PDFGRT
Description: Fast, search-friendly document library theme for PDFGRT.
Version: 1.0.0
Text Domain: pdfgrt-seo
*/

:root {
  --ink: #17212b;
  --muted: #627181;
  --line: #dfe7ee;
  --surface: #ffffff;
  --soft: #f4f8fb;
  --brand: #0d6efd;
  --brand-dark: #084298;
  --accent: #ffb703;
  --radius: 18px;
  --shadow: 0 12px 34px rgba(23, 33, 43, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #f8fafc;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { color: var(--brand); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.container { width: min(1180px, calc(100% - 36px)); margin-inline: auto; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--brand), #50b8ff); font-weight: 900; }
.brand-name { font-size: 20px; font-weight: 850; letter-spacing: -.04em; }
.brand-tagline { display: block; color: var(--muted); font-size: 11px; line-height: 1.2; font-weight: 600; }
.main-nav { display: flex; align-items: center; gap: 18px; font-size: 14px; font-weight: 700; }
.main-nav ul { display: flex; align-items: center; gap: 18px; list-style: none; margin: 0; padding: 0; }
.main-nav li { margin: 0; padding: 0; list-style: none; }
.main-nav a { color: var(--ink); }
.header-cta, .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 17px; border: 0; border-radius: 11px; color: #fff; background: var(--brand); font-weight: 800; cursor: pointer; }
.header-cta:hover, .button:hover { color: #fff; background: var(--brand-dark); }
.hero { padding: 72px 0 58px; background: radial-gradient(circle at 86% 12%, rgba(13,110,253,.18), transparent 32%), linear-gradient(135deg, #eef7ff, #fff 60%); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 48px; align-items: center; }
.eyebrow { margin: 0 0 13px; color: var(--brand-dark); font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(38px, 6vw, 70px); line-height: 1.02; letter-spacing: -.065em; }
.hero-copy { max-width: 680px; margin: 20px 0 26px; color: var(--muted); font-size: 18px; }
.search-box { display: flex; max-width: 690px; padding: 6px; border: 1px solid #cddce8; border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.search-box input { min-width: 0; flex: 1; padding: 12px 14px; border: 0; outline: 0; color: var(--ink); font: inherit; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.stat { padding: 14px 15px; border: 1px solid rgba(13,110,253,.13); border-radius: 13px; background: rgba(255,255,255,.72); }
.stat strong { display: block; font-size: 23px; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 12px; }
.hero-panel { padding: 24px; border: 1px solid rgba(13,110,253,.16); border-radius: 22px; background: rgba(255,255,255,.76); box-shadow: var(--shadow); }
.hero-panel h2 { margin: 0 0 12px; font-size: 20px; letter-spacing: -.03em; }
.hero-panel p { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; padding: 7px 11px; border-radius: 999px; color: var(--brand-dark); background: #eaf4ff; font-size: 12px; font-weight: 800; }
.section { padding: 52px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-head h2 { margin: 0; font-size: clamp(25px, 4vw, 36px); line-height: 1.1; letter-spacing: -.05em; }
.section-head p { margin: 7px 0 0; color: var(--muted); }
.section-link { font-weight: 800; white-space: nowrap; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.post-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 6px 22px rgba(23,33,43,.05); transition: transform .18s ease, box-shadow .18s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, #dceeff, #eef3f7); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.post-card:hover .post-thumb img { transform: scale(1.03); }
.post-card-body { padding: 18px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 700; }
.post-meta a { color: var(--brand); }
.post-card h3 { margin: 8px 0 8px; font-size: 19px; line-height: 1.25; letter-spacing: -.035em; }
.post-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.category-section { background: #fff; border-block: 1px solid var(--line); }
.category-block { margin-top: 30px; }
.category-block:first-child { margin-top: 0; }
.category-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.category-title h3 { margin: 0; font-size: 22px; letter-spacing: -.04em; }
.category-title span { color: var(--muted); font-size: 12px; font-weight: 700; }
.mini-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.mini-card { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.mini-card h4 { margin: 0 0 6px; font-size: 15px; line-height: 1.3; }
.mini-card p { margin: 0; color: var(--muted); font-size: 12px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.info-card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.info-card h2 { margin: 0 0 10px; font-size: 25px; letter-spacing: -.04em; }
.info-card p { color: var(--muted); }
.faq details { padding: 16px 0; border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 800; }
.faq details p { margin: 10px 0 0; color: var(--muted); }
.site-footer { padding: 42px 0 25px; color: #c9d4df; background: #152230; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; }
.site-footer h2, .site-footer h3 { margin: 0 0 10px; color: #fff; }
.site-footer p { margin: 0; color: #aebdca; font-size: 14px; }
.footer-links { display: grid; gap: 7px; }
.footer-links a { color: #c9d4df; font-size: 14px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; margin-top: 34px; padding-top: 17px; border-top: 1px solid rgba(255,255,255,.12); color: #8ea0af; font-size: 12px; }
.archive-hero { padding: 48px 0 28px; background: #eef7ff; border-bottom: 1px solid var(--line); }
.archive-hero h1 { margin: 0; font-size: clamp(32px, 5vw, 54px); line-height: 1.05; letter-spacing: -.06em; }
.archive-hero p { max-width: 680px; margin: 13px 0 0; color: var(--muted); }
.content-wrap { padding: 48px 0; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.article { min-width: 0; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.article-header { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.article-kicker { margin: 18px 0 0; color: var(--brand); font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.article h1 { max-width: 860px; margin: 7px 0 14px; font-size: clamp(34px, 5vw, 60px); line-height: 1.04; letter-spacing: -.065em; }
.article-lead { max-width: 760px; margin: 0 0 16px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.article-meta { display: flex; flex-wrap: wrap; gap: 9px 15px; color: var(--muted); font-size: 12px; font-weight: 700; }
.article-meta a { color: var(--brand); }
.download-cta { display: inline-flex; align-items: center; gap: 9px; margin-top: 20px; padding: 12px 17px; border-radius: 11px; color: #fff; background: var(--brand); font-size: 14px; font-weight: 850; }
.download-cta:hover { color: #fff; background: var(--brand-dark); }
.article-cover { margin: 26px 0 30px; text-align: center; }
.article-cover img { display: block; width: 100%; max-height: 540px; object-fit: contain; border-radius: 14px; background: var(--soft); }
.article-content { font-size: 17px; }
.article-download { margin: 36px 0 8px; padding: 28px 24px; border: 1px solid #cfe2f4; border-radius: 16px; background: linear-gradient(135deg, #f2f8ff, #fff); text-align: center; }
.article-download h2 { margin: 5px 0 7px; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.04em; }
.article-download p:not(.eyebrow) { margin: 0 auto; max-width: 560px; color: var(--muted); }
.article-download .download-cta { margin-top: 17px; justify-content: center; }
.article-content h2, .article-content h3 { margin-top: 2em; line-height: 1.2; letter-spacing: -.03em; }
.article-content img { border-radius: 12px; }
.article-content p { margin: 0 0 1.2em; }
.article-content ul, .article-content ol { padding-left: 1.4em; }
.article-footer { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.article-sidebar { position: sticky; top: 20px; display: grid; gap: 20px; align-self: start; }
.sidebar-card { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 6px 22px rgba(23,33,43,.05); }
.sidebar-card h2 { margin: 0 0 9px; font-size: 18px; line-height: 1.25; letter-spacing: -.035em; }
.sidebar-card p { margin: 0 0 13px; color: var(--muted); font-size: 13px; }
.sidebar-links { display: flex; flex-direction: column; gap: 10px; }
.sidebar-links a { display: block; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #f8fbfd; font-size: 13px; font-weight: 750; line-height: 1.4; }
.sidebar-links a:hover { border-color: #a9c9e7; background: #eef7ff; }
.single-post .relpost-thumb-wrapper { display: none !important; }
.related-section { padding: 56px 0 64px; border-top: 1px solid var(--line); background: #f7fbff; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 15px; }
.related-card { position: relative; min-height: 166px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 8px 24px rgba(23,33,43,.05); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.related-card:hover { transform: translateY(-3px); border-color: #a9c9e7; box-shadow: 0 14px 30px rgba(23,33,43,.09); }
.related-card::after { content: '↗'; position: absolute; top: 18px; right: 19px; color: var(--brand); font-size: 18px; font-weight: 900; }
.related-card h3 { margin: 8px 25px 0 0; font-size: 17px; line-height: 1.3; letter-spacing: -.03em; }
.related-card h3 a { color: var(--ink); }
.related-card h3 a:hover { color: var(--brand); }
.related-card p { margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.breadcrumbs { color: var(--muted); font-size: 12px; font-weight: 700; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.pagination a, .pagination span { padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-weight: 700; }
.pagination .current { color: #fff; border-color: var(--brand); background: var(--brand); }
.empty-state { padding: 50px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.download-page { min-height: 65vh; }
.download-hero { margin: 22px 0 24px; padding: 34px; border: 1px solid #cfe2f4; border-radius: var(--radius); background: linear-gradient(135deg, #eef7ff, #fff); }
.download-hero h1 { max-width: 850px; margin: 0; font-size: clamp(32px, 5vw, 56px); line-height: 1.05; letter-spacing: -.06em; }
.download-hero p:not(.eyebrow) { margin: 13px 0 0; color: var(--muted); font-size: 16px; }
.download-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.download-card { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.download-ad-slot { min-height: 90px; display: grid; place-items: center; margin-bottom: 24px; padding: 12px; border: 1px dashed #c8d6e3; border-radius: 13px; background: var(--soft); overflow: hidden; }
.download-ad-slot:empty::before { content: "Ad Inserter block 1"; color: #8b9aaa; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.ad-label { margin-bottom: 7px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.download-file { display: flex; align-items: center; gap: 13px; padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: #f8fbfd; }
.file-icon { display: grid; place-items: center; width: 46px; height: 52px; border-radius: 9px; color: #fff; background: #e55353; font-size: 12px; font-weight: 900; }
.download-file strong, .download-file span { display: block; }
.download-file strong { line-height: 1.3; }
.download-file span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.download-button { width: 100%; margin-top: 18px; min-height: 52px; font-size: 15px; }
.download-note { margin: 13px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.download-side { display: grid; gap: 16px; }
@media (max-width: 850px) {
  .hero-grid, .info-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mini-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .container { width: min(100% - 26px, 1180px); }
  .header-inner { min-height: 66px; }
  .brand-tagline, .main-nav { display: none; }
  .hero h1 { font-size: 42px; }
  .hero-copy { font-size: 16px; }
  .search-box { display: block; padding: 7px; }
  .search-box input, .search-box .button { width: 100%; }
  .hero-stats { gap: 7px; }
  .stat { padding: 11px 9px; }
  .stat strong { font-size: 19px; }
  .stat span { font-size: 10px; }
  .post-grid { grid-template-columns: 1fr; }
  .mini-grid { grid-template-columns: 1fr; }
  .section { padding: 36px 0; }
  .section-head { display: block; }
  .section-link { display: inline-block; margin-top: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { display: block; }
  .footer-bottom span { display: block; margin-top: 5px; }
  .article { padding: 21px; }
  .article-sidebar { grid-template-columns: 1fr; }
  .article-lead, .article-content { font-size: 16px; }
  .related-grid { grid-template-columns: 1fr; }
  .download-layout { grid-template-columns: 1fr; }
  .download-hero, .download-card { padding: 21px; }
}
