/* Website Authority & PageRank Scoped Styles */

:root {
  --wapc-primary: #0284c7;
  --wapc-primary-hover: #0369a1;
  --wapc-surface: #ffffff;
  --wapc-bg: #f8fafc;
  --wapc-border: #e2e8f0;
  --wapc-text: #0f172a;
  --wapc-text-muted: #64748b;
  --wapc-success: #16a34a;
  --wapc-success-bg: #dcfce7;
  --wapc-danger: #dc2626;
  --wapc-radius: 8px;
  --wapc-font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --wapc-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  line-height: 1.5;
}

.wapc-container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
}

.wapc-site-header {
  background: var(--wapc-surface);
  border-bottom: 1px solid var(--wapc-border);
  padding: 14px 0;
}

.wapc-header-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wapc-brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--wapc-primary);
  text-decoration: none;
}

.wapc-header-badge {
  font-size: 0.8rem;
  font-weight: 600;
  background: #f0f9ff;
  color: var(--wapc-primary);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid #bae6fd;
}

.wapc-intro-section {
  padding: 32px 0 20px;
}

.wapc-title {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 10px;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.wapc-lead {
  font-size: 1.05rem;
  color: var(--wapc-text-muted);
  max-width: 800px;
  margin: 0;
}

.wapc-main-content {
  padding-bottom: 40px;
}

/* Tabs */
.wapc-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--wapc-border);
  margin-bottom: 24px;
  overflow-x: auto;
}

.wapc-tab-btn {
  background: none;
  border: none;
  padding: 12px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--wapc-text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.wapc-tab-btn:hover {
  color: var(--wapc-primary);
}

.wapc-tab-btn-active {
  color: var(--wapc-primary);
  border-bottom-color: var(--wapc-primary);
}

.wapc-tab-panel {
  display: block;
}

.wapc-tab-panel[hidden] {
  display: none;
}

.wapc-tab-panel-active {
  display: block;
}

/* Card */
.wapc-card {
  background: var(--wapc-surface);
  border: 1px solid var(--wapc-border);
  border-radius: var(--wapc-radius);
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.wapc-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--wapc-border);
  padding-bottom: 12px;
}

.wapc-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.wapc-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wapc-badge-info {
  background: #f0f9ff;
  color: #0284c7;
  border: 1px solid #bae6fd;
}

.wapc-badge-neutral {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.wapc-badge-success {
  background: var(--wapc-success-bg);
  color: var(--wapc-success);
}

/* Form */
.wapc-form-group {
  margin-bottom: 18px;
}

.wapc-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #334155;
}

.wapc-input-row {
  display: flex;
  gap: 10px;
}

.wapc-input {
  flex: 1;
  padding: 11px 14px;
  font-size: 1rem;
  border: 1px solid var(--wapc-border);
  border-radius: var(--wapc-radius);
  background: #ffffff;
  color: var(--wapc-text);
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s;
}

.wapc-input:focus,
.wapc-select:focus,
.wapc-textarea:focus {
  border-color: var(--wapc-primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.wapc-select {
  width: 100%;
  padding: 11px 14px;
  font-size: 0.95rem;
  border: 1px solid var(--wapc-border);
  border-radius: var(--wapc-radius);
  background: #ffffff;
  color: var(--wapc-text);
  outline: none;
}

.wapc-textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: var(--wapc-mono);
  border: 1px solid var(--wapc-border);
  border-radius: var(--wapc-radius);
  resize: vertical;
  background: #ffffff;
  color: var(--wapc-text);
}

.wapc-hint {
  font-size: 0.85rem;
  color: var(--wapc-text-muted);
  margin: 6px 0 0;
}

/* Buttons */
.wapc-btn {
  padding: 11px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--wapc-radius);
  border: none;
  cursor: pointer;
  transition: background-color 0.15s;
  white-space: nowrap;
}

.wapc-btn-primary {
  background: var(--wapc-primary);
  color: #ffffff;
}

.wapc-btn-primary:hover {
  background: var(--wapc-primary-hover);
}

.wapc-btn-secondary {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.wapc-btn-secondary:hover {
  background: #e2e8f0;
}

.wapc-btn-sm {
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  cursor: pointer;
}

.wapc-btn-sm:hover {
  background: #e2e8f0;
}

.wapc-btn-row {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

/* Samples */
.wapc-samples-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.wapc-samples-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--wapc-text-muted);
}

.wapc-chip {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 4px 10px;
  font-size: 0.8rem;
  border-radius: 16px;
  cursor: pointer;
  color: #334155;
  transition: all 0.15s;
}

.wapc-chip:hover {
  border-color: var(--wapc-primary);
  color: var(--wapc-primary);
  background: #f0f9ff;
}

/* Result Card */
.wapc-result-card {
  background: #f8fafc;
  border: 1px solid var(--wapc-border);
  border-radius: var(--wapc-radius);
  padding: 20px;
}

.wapc-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.wapc-domain-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wapc-domain-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
  font-family: var(--wapc-mono);
}

/* Meter Grid */
.wapc-meter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.wapc-meter-box {
  background: #ffffff;
  border: 1px solid var(--wapc-border);
  border-radius: 6px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.wapc-meter-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--wapc-text-muted);
  margin-bottom: 6px;
}

.wapc-meter-val {
  font-size: 1.8rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.wapc-meter-sub {
  font-size: 0.95rem;
  color: var(--wapc-text-muted);
  font-weight: 500;
}

.wapc-progress-bar {
  height: 8px;
  background: #f1f5f9;
  border-radius: 4px;
  margin: 10px 0;
  overflow: hidden;
}

.wapc-progress-fill {
  height: 100%;
  background: var(--wapc-primary);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.wapc-fill-purple {
  background: #8b5cf6;
}

.wapc-fill-green {
  background: #16a34a;
}

.wapc-meter-note {
  display: block;
  font-size: 0.75rem;
  color: var(--wapc-text-muted);
}

/* Breakdown Grid */
.wapc-grid-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.wapc-detail-item {
  background: #ffffff;
  border: 1px solid var(--wapc-border);
  padding: 10px 14px;
  border-radius: 6px;
}

.wapc-detail-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--wapc-text-muted);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.wapc-detail-val {
  font-size: 0.9rem;
  color: #0f172a;
}

.wapc-grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 768px) {
  .wapc-grid-two {
    grid-template-columns: 1fr;
  }
}

/* Tables */
.wapc-table-wrap {
  overflow-x: auto;
  margin-top: 10px;
}

.wapc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: left;
}

.wapc-table th,
.wapc-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--wapc-border);
}

.wapc-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wapc-table tr:hover td {
  background: #f8fafc;
}

.wapc-mono {
  font-family: var(--wapc-mono);
}

.wapc-text-success {
  color: var(--wapc-success);
}

.wapc-text-danger {
  color: var(--wapc-danger);
}

/* AdSense Container */
.wapc-ad-container {
  min-height: 280px;
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wapc-text-muted);
  font-size: 0.85rem;
  margin: 24px 0;
  border-radius: var(--wapc-radius);
}

/* Disclaimer & Guide */
.wapc-disclaimer {
  background: #fffbeb;
  border-top: 1px solid #fef3c7;
  border-bottom: 1px solid #fef3c7;
  padding: 18px 0;
  margin-top: 24px;
}

.wapc-disclaimer-text {
  font-size: 0.85rem;
  color: #92400e;
  margin: 0;
}

.wapc-guide-section {
  padding: 36px 0;
  background: var(--wapc-surface);
  border-bottom: 1px solid var(--wapc-border);
}

.wapc-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.wapc-guide-card {
  border: 1px solid var(--wapc-border);
  border-radius: var(--wapc-radius);
  padding: 18px;
  background: #f8fafc;
}

.wapc-guide-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--wapc-primary);
}

.wapc-guide-card p {
  margin: 0;
  font-size: 0.85rem;
  color: #475569;
}

.wapc-faq-section {
  padding: 36px 0;
}

.wapc-faq-item {
  margin-bottom: 18px;
}

.wapc-faq-q {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: #0f172a;
}

.wapc-faq-a {
  font-size: 0.9rem;
  color: #475569;
  margin: 0;
}

.wapc-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
}

.wapc-footer p {
  margin: 0;
}

.wapc-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0f172a;
  color: #f8fafc;
  padding: 12px 0;
  font-size: 0.85rem;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
}

.wapc-consent-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
/* tf:dark-palette — generated by migrate_chrome.py */
/* Neutrals inherit the shared chrome tokens so all tools share one
   ground; brand hues are kept and lightened, never inverted. */
[data-theme="dark"] {
  --wapc-primary: #81bcda;
  --wapc-primary-hover: #69aed4;
  --wapc-surface: var(--tf-surface);
  --wapc-bg: var(--tf-surface);
  --wapc-border: var(--tf-surface);
  --wapc-text: var(--tf-ink);
  --wapc-text-muted: var(--tf-ink-faint);
  --wapc-success: #7ad89d;
  --wapc-success-bg: var(--tf-surface);
  --wapc-danger: #da8181;
}
