/* AI Block-o-Meter dashboard styles */

/* ── Page shell ──────────────────────────────────────────────────── */

.abom {
  background: #f0efe9;
  min-height: 100vh;
}

.abom-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3em 1.5em 5em;
}

/* ── Hero ────────────────────────────────────────────────────────── */

.abom-hero {
  margin-bottom: 2.5em;
}

.abom-status-bar {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 1.25em;
}

.abom-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
  animation: abom-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

.abom-live-dot--sm {
  width: 7px;
  height: 7px;
}

@keyframes abom-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@media (prefers-reduced-motion: reduce) {
  .abom-live-dot {
    animation: none;
  }
  .abom-filter {
    transition: none;
  }
  .abom-chevron::before {
    transition: none;
  }
}

.abom-status-bar .abom-sep {
  color: #666;
}

.abom-hero h1 {
  font-size: 2.6em;
  font-weight: 700;
  line-height: 1.15;
  color: #111;
  max-width: 800px;
  margin: 0 0 0.6em;
}

.abom-intro {
  font-size: 1em;
  color: #555;
  max-width: 800px;
  line-height: 1.6;
  margin: 0;
}

/* ── Counter cards ───────────────────────────────────────────────── */

.abom-counters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1em;
  margin-bottom: 1em;
}

@media (max-width: 960px) {
  .abom-counters {
    grid-template-columns: 1fr;
  }
}

.abom-card {
  border-radius: 16px;
  padding: 1.75em 1.75em 1.5em;
  display: flex;
  flex-direction: column;
  gap: 1em;
  min-width: 0;
}

.abom-card--dark {
  background: #111;
  color: #fff;
}

.abom-card--light {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #111;
}

.abom-card-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75em;
}

.abom-card-label {
  font-size: 0.67em;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  opacity: 0.65;
}

/* Live/no-ads badges */

.abom-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.65em;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.abom-badge--live {
  background: rgba(34, 197, 94, 0.15);
  color: #166534;
}

.abom-card--dark .abom-badge--live {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

.abom-badge--no-ads {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: #666;
}

.abom-badge--coming-soon {
  background: rgba(234, 179, 8, 0.18);
  border: 1px solid transparent;
  color: #6b4a00;
  text-transform: uppercase;
}

/* Digit display */

.abom-digits {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 3px;
  line-height: 1;
  min-height: 80px;
  overflow-x: auto;
}

.abom-digits--sm {
  min-height: 68px;
}

.abom-digit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #232323;
  color: #fff;
  font-size: 2.8em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  width: 1.05em;
  padding: 0.08em 0;
  border-radius: 6px;
}

.abom-digits--sm .abom-digit {
  font-size: 2.4em;
}

.abom-digit-sep {
  font-size: 2em;
  font-weight: 700;
  color: #666;
  padding: 0 0.05em 0.15em;
  align-self: flex-end;
}

.abom-card--dark .abom-digit-sep {
  color: #aaa;
}

/* Card footer */

.abom-card-ft {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
}

.abom-card-ft--row {
  flex-direction: row;
  align-items: center;
}

.abom-card-ft--row p {
  min-width: 0;
}

.abom-card-ft--row p:last-child {
  margin-left: auto;
}

.abom-card-ft p {
  font-size: 0.78em;
  line-height: 1.45;
  opacity: 0.7;
  margin: 0;
}

.abom-since-open {
  opacity: 1 !important;
  color: #22c55e;
  font-weight: 500;
}

.abom-wow {
  opacity: 1 !important;
  color: #166534;
  font-weight: 600;
}

/* Data note below counters */

.abom-error-label {
  font-size: 0.85em;
  opacity: 0.5;
}

.abom-data-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5em;
  font-size: 0.78em;
  color: #555;
  margin: 0 0 3.5em;
  line-height: 1.5;
}

.abom-data-note svg {
  flex-shrink: 0;
  opacity: 0.7;
  margin-top: 0.25em;
}

/* ── Sections ────────────────────────────────────────────────────── */

.abom-section {
  margin-bottom: 3.5em;
}

.abom-section-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2em;
  margin-bottom: 1.5em;
}

.abom-section h2 {
  font-size: 1.6em;
  font-weight: 700;
  color: #111;
  margin: 0;
}

.abom-section-row h2 {
  white-space: nowrap;
}

.abom-section > h2 {
  margin-bottom: 0.5em;
}

.abom-section-row p {
  font-size: 0.82em;
  color: #555;
  text-align: right;
  max-width: 460px;
  line-height: 1.5;
  margin: 0;
  text-wrap: balance;
}

.abom-section-intro {
  font-size: 0.9em;
  color: #555;
  max-width: 800px;
  line-height: 1.6;
  margin: 0 0 1.5em;
}

@media (max-width: 600px) {
  .abom-section-row {
    flex-direction: column;
    gap: 0.5em;
  }
  .abom-section-row p {
    text-align: left;
  }
}

/* ── Platform cards ──────────────────────────────────────────────── */

.abom-platforms {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1em;
}

@media (max-width: 900px) {
  .abom-platforms {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .abom-platforms {
    grid-template-columns: 1fr;
  }
}

.abom-pc {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: 1.25em;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  overflow: hidden;
}

.abom-pc-hd {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.abom-pc-name {
  font-size: 0.9em;
  font-weight: 600;
  color: #111;
  margin: 0;
}

.abom-pc-count-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
}

.abom-pc-count-label {
  font-size: 0.67em;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #767676;
}

.abom-pc-count {
  font-size: 1.65em;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.abom-pc-domain {
  font-size: 0.72em;
  color: #767676;
  margin: auto 0 0;
}

.abom-pc-soon-text {
  font-size: 0.82em;
  color: #666;
  line-height: 1.45;
  margin: 0;
}

.abom-pc-chart-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.25em;
  font-size: 0.65em;
}

.abom-pc-chart-label {
  color: #767676;
}

.abom-pc-trend {
  font-weight: 600;
  color: #c0541e;
}

.abom-pc-chart {
  height: 56px;
}

.abom-pc-chart svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ── Survey section ──────────────────────────────────────────────── */

.abom-survey-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1em;
  align-items: stretch;
}

@media (max-width: 750px) {
  .abom-survey-grid,
  .abom-quotes-grid {
    grid-template-columns: 1fr;
  }
}

.abom-survey-stat {
  background: #f8f7f5;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 1.5em;
}

.abom-survey-num {
  font-size: 3.5em;
  font-weight: 700;
  color: #111;
  line-height: 1;
}

.abom-survey-num sup {
  font-size: 0.45em;
  vertical-align: super;
}

.abom-survey-body {
  font-size: 0.9em;
  color: #333;
  line-height: 1.5;
  margin: 0;
}

.abom-survey-footnote {
  font-size: 0.63em;
  color: #686868;
  line-height: 1.6;
  margin: 0.75em 0 0;
}

.abom-quotes-box {
  background: #eceaf3;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 1.5em;
  margin-top: 0.75em;
}

.abom-quotes-label {
  font-size: 0.63em;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #666;
  margin: 0 0 0.75em;
}

.abom-quotes-question {
  font-size: 0.95em;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.35em;
  line-height: 1.4;
}

.abom-quotes-sub {
  font-size: 0.83em;
  color: #555;
  margin: 0 0 1.25em;
}

.abom-quotes-footnote {
  font-size: 0.72em;
  color: #6a6a6a;
  margin: 1.25em 0 0;
}

.abom-quotes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25em;
}

@media (max-width: 750px) {
  .abom-quotes-grid {
    grid-template-columns: 1fr;
  }
}

.abom-quote {
  font-size: 0.88em;
  font-style: italic;
  color: #555;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* ── Filter cards ────────────────────────────────────────────────── */

.abom-filters {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75em;
  list-style: none;
  margin: 0;
  padding: 0;
}

.abom-filters li {
  display: flex;
  width: 100%;
}

@media (max-width: 820px) {
  .abom-filters {
    grid-template-columns: 1fr 1fr;
  }

  .abom-filters li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .abom-filters {
    grid-template-columns: 1fr;
  }
}

.abom-filter {
  display: flex;
  align-items: stretch;
  flex: 1;
  gap: 0.875em;
  background: #f8f7f5;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 1em 1.25em;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.abom-filter:hover {
  border-color: #555;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  text-decoration: none;
}

.abom-filter:focus-visible {
  outline: 3px solid #005fcc;
  outline-offset: 2px;
  border-color: #005fcc;
}

.abom-filter-icon {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: #f5f4f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1em;
  color: #555;
  flex-shrink: 0;
  align-self: flex-start;
}

.abom-filter-icon--code {
  font-size: 0.7em;
  font-weight: 700;
  font-family: monospace;
}

.abom-filter div {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15em;
}

.abom-filter strong {
  font-size: 0.88em;
  font-weight: 600;
  color: #111;
  min-height: 2.8em;
  display: block;
}

.abom-filter div span {
  font-size: 0.72em;
  color: #666;
}

.abom-filter-arrow {
  font-size: 1em;
  color: #6e6e6e;
  flex-shrink: 0;
  align-self: flex-start;
}


/* ── Methodology accordion ───────────────────────────────────────── */

.abom-methodology details {
  background: #fff;
  border: 1px solid #888;
  border-radius: 14px;
  overflow: hidden;
}

.abom-methodology summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5em 1.75em;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.abom-methodology summary::-webkit-details-marker {
  display: none;
}

.abom-methodology summary:focus-visible {
  outline: 3px solid #005fcc;
  outline-offset: -3px;
}

.abom-methodology-hd {
  display: flex;
  align-items: baseline;
  gap: 1em;
}

.abom-methodology-hd strong {
  font-size: 1.05em;
  font-weight: 700;
  color: #111;
}

.abom-methodology-sub {
  font-size: 0.8em;
  color: #666;
}

.abom-chevron {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid #888;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.abom-chevron::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid #666;
  border-bottom: 1.5px solid #666;
  transform: rotate(45deg);
  transition: transform 0.2s;
}

details[open] .abom-chevron::before {
  transform: rotate(-135deg);
}

.abom-methodology-body {
  padding: 0 1.75em 1.75em;
  border-top: 1px solid #e8e5de;
}

.abom-methodology-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75em;
  padding-top: 1.5em;
}

@media (max-width: 640px) {
  .abom-methodology-grid {
    grid-template-columns: 1fr;
  }
}

.abom-methodology-item {
  background: #eceaf3;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 1.25em;
}

.abom-methodology-item h3 {
  font-size: 0.88em;
  font-weight: 700;
  color: #111;
  margin: 0 0 0.5em;
}

.abom-methodology-item p {
  font-size: 0.82em;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

.abom-methodology-item a {
  color: #3d52a0;
}

.abom-methodology-item a:focus-visible {
  outline: 3px solid #005fcc;
  outline-offset: 2px;
  border-radius: 2px;
}

.abom-disclosure {
  background: #f0ede6;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 1em 1.25em;
  margin-top: 1.5em;
}

.abom-disclosure p {
  font-size: 0.8em;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

.abom-disclosure strong {
  color: #111;
}

@media (max-width: 480px) {
  .abom-container {
    padding-left: 1em;
    padding-right: 1em;
  }

  .abom-card {
    padding: 1.25em;
  }

  .abom-digit {
    font-size: 1.5em;
  }

  .abom-digits--sm .abom-digit {
    font-size: 1.3em;
  }

  .abom-digit-sep {
    font-size: 1.4em;
  }

  .abom-digits {
    min-height: 50px;
  }

  .abom-digits--sm {
    min-height: 44px;
  }
}
