/* ── PAGES.CSS — Inner page styles for BreachRadar ── */

/* ── PAGE HERO ── */
.page-hero {
  border-bottom: 1px solid var(--border);
  padding: 48px 24px;
  background: var(--surface);
}
.page-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.page-hero-eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.page-hero h1 {
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  line-height: 1.2;
}
.page-hero p {
  font-size: 14px;
  color: var(--text-2);
  max-width: 560px;
  line-height: 1.65;
  margin-top: 2px;
}

/* ── PAGE CONTENT ── */
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.page-content-wide {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* ── SECTION BLOCK ── */
.section-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.section-block h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}
.section-block h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.section-block p {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.7;
}
.section-block ul,
.section-block ol {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.section-block ul li,
.section-block ol li {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.65;
}
.section-block ul li strong,
.section-block p strong {
  color: var(--text);
  font-weight: 500;
}

/* ── CODE BLOCKS ── */
.code-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.code-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #2d333b;
  border: 1px solid #3d444d;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  padding: 6px 12px;
  width: fit-content;
}
.code-block {
  background: #1f2328;
  color: #e6edf3;
  border-radius: 0 6px 6px 6px;
  padding: 16px;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 12.5px;
  line-height: 1.65;
  overflow-x: auto;
  border: 1px solid #3d444d;
  white-space: pre;
}
.code-block-standalone {
  background: #1f2328;
  color: #e6edf3;
  border-radius: 6px;
  padding: 16px;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 12.5px;
  line-height: 1.65;
  overflow-x: auto;
  border: 1px solid #3d444d;
  white-space: pre;
}

/* Syntax highlighting helpers */
.tok-comment { color: #8b949e; }
.tok-key     { color: #79c0ff; }
.tok-str     { color: #a5d6ff; }
.tok-num     { color: #f8c8a8; }
.tok-kw      { color: #ff7b72; }
.tok-fn      { color: #d2a8ff; }
.tok-green   { color: #7ee787; }
.tok-gray    { color: #8b949e; }

/* Code tabs */
.code-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #3d444d;
  margin-bottom: 0;
}
.code-tab-group {
  background: #1f2328;
  border: 1px solid #3d444d;
  border-radius: 8px;
  overflow: hidden;
}
.code-tab {
  font-size: 11.5px;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 500;
  color: #8b949e;
  padding: 8px 14px;
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  transition: color 0.1s;
}
.code-tab:hover { color: #e6edf3; }
.code-tab.active {
  color: #e6edf3;
  border-bottom-color: #0969da;
}
.code-pane {
  padding: 16px;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 12.5px;
  line-height: 1.65;
  color: #e6edf3;
  overflow-x: auto;
  white-space: pre;
  display: none;
}
.code-pane.active { display: block; }

/* ── API ENDPOINT ── */
.api-endpoint {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 8px;
}
.method {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: 'SFMono-Regular', Consolas, monospace;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.method.get  { background: rgba(9,105,218,0.08); color: #0969da; border: 1px solid rgba(9,105,218,0.2); }
.method.post { background: rgba(26,127,55,0.07); color: #1a7f37; border: 1px solid rgba(26,127,55,0.2); }
.method.del  { background: var(--red-dim); color: var(--red); border: 1px solid var(--red-border); }
.path {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}
.endpoint-desc {
  font-size: 12.5px;
  color: var(--text-2);
  margin-left: auto;
}
@media (max-width: 560px) { .endpoint-desc { display: none; } }

/* ── ENDPOINT CARD ── */
.endpoint-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}
.endpoint-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.endpoint-card-header .path {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 13.5px;
  font-weight: 600;
}
.endpoint-card-desc {
  font-size: 12.5px;
  color: var(--text-2);
  margin-left: 8px;
}
.endpoint-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.endpoint-card-body p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ── PARAM TABLE ── */
.param-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.param-table th {
  background: var(--bg);
  padding: 8px 14px;
  text-align: left;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
}
.param-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-sub);
  vertical-align: top;
}
.param-table tbody tr:last-child td { border-bottom: none; }
.param-name {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 12px;
  color: var(--text);
  font-weight: 500;
}
.param-type {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 11px;
  color: var(--accent);
  background: rgba(9,105,218,0.06);
  padding: 1px 6px;
  border-radius: 3px;
}
.param-required {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--red);
  background: var(--red-dim);
  border: 1px solid var(--red-border);
  padding: 1px 6px;
  border-radius: 3px;
}
.param-optional {
  font-size: 10.5px;
  color: var(--text-3);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 3px;
}
.param-desc { font-size: 12.5px; color: var(--text-2); }

/* ── FAQ ── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}
.faq-item {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-sub);
  cursor: pointer;
  transition: background 0.1s;
}
.faq-item:last-child { border-bottom: none; }
.faq-item:hover { background: var(--bg); }
.faq-question {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
}
.faq-chevron {
  color: var(--text-2);
  transition: transform 0.15s;
  flex-shrink: 0;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.7;
  margin-top: 10px;
  display: none;
}
.faq-item.open .faq-answer { display: block; }
.faq-answer a { color: var(--accent); text-decoration: none; }
.faq-answer a:hover { text-decoration: underline; }

/* ── FORMS ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.form-label-hint {
  font-size: 11.5px;
  color: var(--text-2);
  font-weight: 400;
  margin-left: 5px;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13.5px;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  outline: none;
  transition: border-color 0.1s, box-shadow 0.1s;
  appearance: none;
}
.form-input,
.form-select { height: 36px; padding: 0 12px; }
.form-select { padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23656d76' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.form-textarea { padding: 10px 12px; min-height: 120px; resize: vertical; line-height: 1.6; }
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-3); }
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(9,105,218,0.1);
}
.form-hint {
  font-size: 11.5px;
  color: var(--text-2);
  line-height: 1.5;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }

.form-submit {
  align-self: flex-start;
  height: 38px;
  padding: 0 20px;
  background: var(--green);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: 'Inter', system-ui, sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  transition: opacity 0.1s;
}
.form-submit:hover { opacity: 0.85; }
.form-submit-secondary {
  height: 38px;
  padding: 0 20px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 500;
  font-family: 'Inter', system-ui, sans-serif;
  cursor: pointer;
  transition: border-color 0.1s, background 0.1s;
}
.form-submit-secondary:hover { border-color: #444c56; background: var(--bg); }

.form-file-upload {
  width: 100%;
  background: var(--surface);
  border: 1.5px dashed var(--border);
  border-radius: 6px;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.1s, background 0.1s;
}
.form-file-upload:hover { border-color: var(--accent); background: rgba(9,105,218,0.02); }
.form-file-upload input[type="file"] { display: none; }
.form-file-label { font-size: 13px; color: var(--text-2); }
.form-file-label span { color: var(--accent); font-weight: 500; }
.form-file-hint { font-size: 11.5px; color: var(--text-3); margin-top: 4px; }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-divider {
  height: 1px;
  background: var(--border-sub);
  margin: 4px 0;
}

.form-success {
  background: var(--green-dim);
  border: 1px solid var(--green-border);
  border-radius: 6px;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--green);
  font-weight: 500;
  display: none;
}

/* ── LEGAL SECTIONS ── */
.legal-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-sub);
}
.legal-section:last-child { border-bottom: none; padding-bottom: 0; }
.legal-section-header {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.legal-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-3);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  min-width: 24px;
}
.legal-section h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.015em;
}
.legal-section h3 {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  margin-top: 4px;
}
.legal-section p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.75;
}
.legal-section ul {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.legal-section ul li {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.65;
}
.legal-meta {
  font-size: 12px;
  color: var(--text-3);
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
}

/* ── INFO CARDS ── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 560px) { .info-grid { grid-template-columns: 1fr; } }

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.info-card-icon {
  width: 32px; height: 32px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.info-card h3 {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}
.info-card p {
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ── NOTICE BANNERS ── */
.notice {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 6px;
  align-items: flex-start;
}
.notice.notice-blue  { background: rgba(9,105,218,0.06); border: 1px solid rgba(9,105,218,0.18); }
.notice.notice-green { background: var(--green-dim); border: 1px solid var(--green-border); }
.notice.notice-red   { background: var(--red-dim); border: 1px solid var(--red-border); }
.notice.notice-yellow{ background: var(--yellow-dim); border: 1px solid var(--yellow-border); }
.notice-icon { flex-shrink: 0; margin-top: 1px; }
.notice-text { font-size: 13px; color: var(--text-2); line-height: 1.6; }
.notice-text strong { color: var(--text); font-weight: 500; }

/* ── BREACHES PAGE ── */
.filters-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.filter-select {
  height: 32px;
  padding: 0 28px 0 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12.5px;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23656d76' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  transition: border-color 0.1s;
}
.filter-select:focus { border-color: var(--accent); outline: none; }
.filter-label {
  font-size: 12px;
  color: var(--text-2);
  flex-shrink: 0;
}
.filter-count {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-3);
}

/* ── CONTACT PAGE ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: flex-start;
}
@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 72px;
}
.contact-info-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-info-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.contact-info-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-3);
}
.contact-info-value {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}
.contact-info-value a {
  color: var(--accent);
  text-decoration: none;
}
.contact-info-value a:hover { text-decoration: underline; }
.contact-info-sep {
  height: 1px;
  background: var(--border-sub);
}

/* ── RATE LIMITS / TIERS ── */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 640px) { .tier-grid { grid-template-columns: 1fr; } }

.tier-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tier-card.featured { border-color: var(--accent); }
.tier-name {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-2);
}
.tier-limit {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1;
}
.tier-limit span { font-size: 13px; font-weight: 400; color: var(--text-2); }
.tier-features {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 4px;
  border-top: 1px solid var(--border-sub);
}
.tier-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-2);
}
.tier-feature-icon { color: var(--green); flex-shrink: 0; }

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-2);
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  max-width: 100%;
  background: var(--surface);
}
.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: var(--text-3); }

/* ── DISCLOSURE STEPS ── */
.disclosure-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}
.disclosure-step {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-sub);
  align-items: flex-start;
}
.disclosure-step:last-child { border-bottom: none; }
.disclosure-step-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-2);
  flex-shrink: 0;
  margin-top: 1px;
}
.disclosure-step-body h3 {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.disclosure-step-body p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ── BASE URL BLOCK ── */
.base-url-block {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 11px 14px;
}
.base-url-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.base-url-value {
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}

/* ── PAGE NAV (docs sidebar-style) ── */
.page-toc {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 0 0 32px;
  border-bottom: 1px solid var(--border-sub);
}
.page-toc a {
  font-size: 12.5px;
  color: var(--accent);
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid rgba(9,105,218,0.2);
  border-radius: 4px;
  background: rgba(9,105,218,0.04);
  transition: background 0.1s;
}
.page-toc a:hover { background: rgba(9,105,218,0.1); }
