/**
 * Стили страницы «Последние SEO отчёты» (/latest-seo-reports/).
 */
:root {
  --color-bg: #f4f6fb;
  --color-primary: #004a99;
  --color-primary-dark: #022c5c;
  --color-accent: #ffb400;
  --color-text: #1b1b1b;
  --color-muted: #6b6f7a;
  --radius-md: 14px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.08);
}

.lsi-reports-page {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Roboto", sans-serif;
  font-size: 16px;
  color: var(--color-text);
  line-height: 1.7;
}
.lsi-reports-page .container {
  width: min(1140px, 100% - 32px);
  margin: 0 auto;
}

/* ── Hero ── */
.reports-hero {
  padding: 48px 0 52px;
  background: linear-gradient(160deg, #021835 0%, #003d80 50%, #022c5c 100%);
  color: #fff;
  text-align: center;
}
.reports-hero h1 {
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.15;
  margin: 0 0 14px;
  color: #fff;
  letter-spacing: -0.01em;
}
.reports-hero__subtitle {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  max-width: 600px;
  margin: 0 auto 28px;
}
.reports-hero__stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.reports-hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 110px;
}
.reports-hero__stat-num {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.reports-hero__stat-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

/* ── Reports content ── */
.reports-content {
  padding: 48px 0 56px;
  background: var(--color-bg);
}

/* Override plugin's sorting bar */
.reports-content .chooser_background {
  margin-bottom: 28px;
}
.reports-content .well {
  background: #fff !important;
  border: none !important;
  border-radius: var(--radius-md) !important;
  padding: 16px 24px !important;
  box-shadow: var(--shadow-soft) !important;
  font-size: 15px;
  color: var(--color-muted);
  margin-bottom: 0 !important;
}
.reports-content .well a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s;
}
.reports-content .well a:hover {
  color: var(--color-primary-dark);
}

/* Override plugin's report cards */
.reports-content .item_card {
  background: #fff !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06) !important;
  border: 1px solid rgba(0, 0, 0, 0.04) !important;
  padding: 0 !important;
  margin-bottom: 24px !important;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s !important;
}
.reports-content .item_card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1) !important;
}

.reports-content .seopropeller-report-box {
  padding: 0;
}
.reports-content .seopropeller-report-box > a {
  display: block;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  line-height: 0;
}
.reports-content .seopropeller-report-box img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
  transition: transform 0.3s;
}
.reports-content .item_card:hover .seopropeller-report-box img {
  transform: scale(1.03);
}

/* Card text area */
.reports-content .seopropeller-report-box .text-center {
  padding: 14px 18px 0;
}
.reports-content .seopropeller-report-box .text-center a {
  color: var(--color-primary-dark);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.reports-content .seopropeller-report-box .text-center a:hover {
  color: var(--color-primary);
}

.reports-content .seopropeller-report-box > .row {
  padding: 8px 18px 18px;
}
.reports-content .seopropeller-report-box small {
  font-size: 12px;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.reports-content .seopropeller-report-box .report-string {
  font-size: 12px !important;
  line-height: 1.4;
}

/* Grid override — ensure 3 columns with gap */
.reports-content .wpseopropeller > .row {
  display: flex;
  flex-wrap: wrap;
}
.reports-content .col-md-4 {
  padding-left: 12px;
  padding-right: 12px;
}

/* ── CTA section ── */
.reports-cta {
  padding: 56px 0;
  background: linear-gradient(160deg, #021835 0%, #003d80 50%, #022c5c 100%);
  color: #fff;
  text-align: center;
}
.reports-cta h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  margin: 0 0 10px;
  color: #fff;
}
.reports-cta p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 28px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.reports-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 36px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
}
.reports-btn--primary {
  background: linear-gradient(135deg, var(--color-accent), #e6a200);
  color: var(--color-primary-dark);
  box-shadow: 0 10px 24px rgba(255, 180, 0, 0.35);
}
.reports-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(255, 180, 0, 0.45);
  text-decoration: none;
  color: var(--color-primary-dark);
}

/* ── Screenshot fallback placeholder (cards) ── */
.reports-content .screenshot-placeholder--card {
  width: 100%;
  height: 180px;
  border-radius: 16px 16px 0 0;
  background:
    radial-gradient(ellipse 120% 80% at 15% 100%, rgba(255, 180, 0, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 80% 100% at 90% 10%, rgba(0, 74, 153, 0.18) 0%, transparent 50%),
    linear-gradient(160deg, #0a1e3d 0%, #0d2e5e 40%, #102a4a 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}
.reports-content .screenshot-placeholder--card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
.screenshot-placeholder--card .screenshot-placeholder__letter {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-accent), #e6a200);
  color: var(--color-primary-dark);
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  position: relative;
  z-index: 1;
  box-shadow: 0 6px 18px rgba(255, 180, 0, 0.25);
}
.screenshot-placeholder--card .screenshot-placeholder__domain {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  max-width: 85%;
  text-align: center;
  word-break: break-all;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .reports-hero__stats {
    gap: 8px;
  }
}
@media (max-width: 640px) {
  .reports-hero {
    padding: 36px 0 40px;
  }
  .reports-content .seopropeller-report-box img {
    height: 160px;
  }
  .reports-content .screenshot-placeholder--card {
    height: 160px;
  }
}
