/**
 * Internal Linking Page Styles
 *
 * Comprehensive styles for all internal linking components
 */

/* ========================================
   Page Container
   ======================================== */
.prorank-internal-linking-page {
  padding: 20px;
  max-width: 1600px;
  margin: 0 auto;
}

.prorank-page.prorank-internal-linking-page {
  background: var(--prorank-bg-secondary, #f6f7f9);
  min-height: 100vh;
}

/* ========================================
   Dashboard Styles
   ======================================== */
.prorank-linking-dashboard {
  animation: fadeIn 0.3s ease;
}

.prorank-linking-dashboard.prorank-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  gap: 16px;
}

.prorank-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding: 20px 24px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.prorank-dashboard-actions {
  display: flex;
  gap: 12px;
}

/* Metrics Grid */
.prorank-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.prorank-metric-card {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.prorank-metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.prorank-metric-card .components-card__body {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
}

.prorank-metric-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #f5f5f5;
  color: #374151;
  border: 1px solid #e0e0e0;
}

.prorank-metric-icon.external {
  background: #fef3c7;
  color: #92400e;
}

.prorank-metric-icon.warning {
  background: #fee2e2;
  color: #991b1b;
}

.prorank-metric-icon.success {
  background: #d1fae5;
  color: #065f46;
}

.prorank-metric-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.prorank-metric-value {
  font-size: 28px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1;
}

.prorank-metric-label {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
}

/* Dashboard Grid */
.prorank-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 1024px) {
  .prorank-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.prorank-dashboard-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.prorank-dashboard-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.prorank-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background-color: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
  border-radius: 8px 8px 0 0;
}

/* Distribution Chart */
.prorank-distribution-chart {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.prorank-distribution-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.prorank-distribution-label {
  min-width: 80px;
  font-size: 12px;
  color: #6b7280;
}

.prorank-distribution-progress {
  flex: 1;
  height: 24px;
  background: #f3f4f6;
  border-radius: 12px;
  overflow: hidden;
}

.prorank-distribution-fill {
  height: 100%;
  background: #374151;
  border-radius: 12px;
  transition: width 0.5s ease;
}

.prorank-distribution-count {
  min-width: 30px;
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
}

/* Lists */
.prorank-orphan-list,
.prorank-top-linked-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.prorank-orphan-list li,
.prorank-top-linked-list li {
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.prorank-orphan-list li:last-child,
.prorank-top-linked-list li:last-child {
  border-bottom: none;
}

.prorank-orphan-type {
  background: #f3f4f6;
  color: #6b7280;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
}

.prorank-linked-info {
  width: 100%;
}

.prorank-link-counts {
  display: flex;
  gap: 16px;
  margin-top: 4px;
}

.prorank-inbound,
.prorank-outbound {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #6b7280;
}

.prorank-inbound svg,
.prorank-outbound svg {
  opacity: 0.6;
}

/* Quick Stats */
.prorank-quick-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prorank-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
}

.prorank-stat-row:last-child {
  border-bottom: none;
}

.prorank-stat-label {
  font-size: 13px;
  color: #6b7280;
}

.prorank-stat-value {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
}

.prorank-stat-value.warning {
  color: #f59e0b;
}

/* ========================================
   Links Report Styles
   ======================================== */
.prorank-links-report {
  animation: fadeIn 0.3s ease;
}

.prorank-il-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 24px 26px;
  margin-bottom: 20px;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 122, 26, 0.28), rgba(0, 0, 0, 0) 24%),
    radial-gradient(circle at 0% 100%, rgba(255, 184, 77, 0.16), rgba(0, 0, 0, 0) 18%),
    linear-gradient(135deg, #0b1220 0%, #11233d 52%, #20345a 100%);
  color: #f8fafc;
  box-shadow: 0 28px 48px -34px rgba(15, 23, 42, 0.82);
}

.prorank-il-hero::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #ff6900 0%, #ff9f43 24%, #ffd166 52%, #ff9f43 78%, #ff6900 100%);
}

.prorank-il-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #dbeafe;
}

.prorank-il-hero__title {
  margin: 0;
  font-size: 30px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f8fafc;
  text-shadow: 0 12px 28px rgba(2, 6, 23, 0.22);
}

.prorank-il-hero__meta {
  margin: 10px 0 0;
  max-width: 760px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(226, 232, 240, 0.9);
}

.prorank-il-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.prorank-il-hero-button {
  min-height: 42px;
  border-radius: 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #f8fafc !important;
  box-shadow: none !important;
  backdrop-filter: blur(12px);
}

.prorank-il-hero-button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
}

.prorank-il-hero-button.is-primary {
  border-color: rgba(255, 185, 122, 0.48) !important;
  background: linear-gradient(135deg, #ff6900 0%, #ff8c42 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 18px 30px -24px rgba(255, 105, 0, 0.62) !important;
}

.prorank-il-hero-button.is-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #ff7a1a 0%, #ffa24d 100%) !important;
  border-color: rgba(255, 214, 102, 0.52) !important;
}

.prorank-il-panel {
  border: 1px solid #e2e8f0 !important;
  border-radius: 24px !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  box-shadow: 0 18px 38px -32px rgba(15, 23, 42, 0.26) !important;
  overflow: hidden;
}

.prorank-il-panel > div {
  padding: 24px;
}

.prorank-il-progress-card {
  position: relative;
  margin-bottom: 20px;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 122, 26, 0.24), rgba(0, 0, 0, 0) 26%),
    linear-gradient(135deg, #14233d 0%, #1d355b 100%);
  color: #f8fafc;
  box-shadow: 0 24px 42px -34px rgba(15, 23, 42, 0.8);
}

.prorank-il-progress-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #ff6900 0%, #ffd166 52%, #ff6900 100%);
}

.prorank-il-progress-card > div {
  padding: 24px;
}

.prorank-il-progress-title {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 700;
  color: #f8fafc;
}

.prorank-il-progress-copy,
.prorank-il-progress-note,
.prorank-il-progress-meta {
  margin: 0;
  color: rgba(226, 232, 240, 0.9);
}

.prorank-il-progress-note {
  font-size: 12px;
  opacity: 0.82;
}

.prorank-il-progress-track {
  height: 10px;
  margin-top: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
}

.prorank-il-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff6900 0%, #ffd166 100%);
  box-shadow: 0 6px 16px rgba(255, 209, 102, 0.25);
  transition: width 0.3s ease;
}

.prorank-il-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.prorank-il-kpi-grid--compact {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.prorank-il-kpi-card {
  border: 1px solid #e2e8f0 !important;
  border-radius: 22px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
  box-shadow: 0 16px 30px -30px rgba(15, 23, 42, 0.2) !important;
  overflow: hidden;
  position: relative;
}

.prorank-il-kpi-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: #94a3b8;
}

.prorank-il-kpi-card[data-tone="posts"]::before,
.prorank-il-kpi-card[data-tone="total"]::before {
  background: linear-gradient(90deg, #1d4ed8 0%, #60a5fa 100%);
}

.prorank-il-kpi-card[data-tone="internal"]::before {
  background: linear-gradient(90deg, #15803d 0%, #4ade80 100%);
}

.prorank-il-kpi-card[data-tone="external"]::before {
  background: linear-gradient(90deg, #0f766e 0%, #2dd4bf 100%);
}

.prorank-il-kpi-card[data-tone="orphan"]::before,
.prorank-il-kpi-card[data-tone="404"]::before {
  background: linear-gradient(90deg, #dc2626 0%, #fb7185 100%);
}

.prorank-il-kpi-card[data-tone="broken"]::before,
.prorank-il-kpi-card[data-tone="403"]::before,
.prorank-il-kpi-card[data-tone="400"]::before,
.prorank-il-kpi-card[data-tone="500"]::before {
  background: linear-gradient(90deg, #ff6900 0%, #fbbf24 100%);
}

.prorank-il-kpi-card[data-tone="ignored"]::before,
.prorank-il-kpi-card[data-tone="active"]::before {
  background: linear-gradient(90deg, #64748b 0%, #cbd5e1 100%);
}

.prorank-il-kpi-card > div {
  padding: 22px 18px 18px;
  text-align: center;
}

.prorank-il-kpi-value {
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.prorank-il-kpi-value--compact {
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.prorank-il-kpi-label {
  margin-top: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.prorank-il-kpi-meta {
  margin-top: 8px;
  font-size: 12px;
  color: #94a3b8;
}

.prorank-il-workflow-card > div {
  padding: 24px;
}

.prorank-il-workflow-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.prorank-il-workflow-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
  color: #0f172a;
}

.prorank-il-workflow-meta {
  margin: 6px 0 0;
  font-size: 13px;
  color: #64748b;
}

.prorank-il-workflow-progress {
  margin-top: 16px;
}

.prorank-il-workflow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.prorank-il-workflow-step {
  position: relative;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.prorank-il-workflow-step::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  border-radius: 20px 20px 0 0;
  background: #cbd5e1;
}

.prorank-il-workflow-step[data-state="complete"]::before {
  background: linear-gradient(90deg, #16a34a 0%, #4ade80 100%);
}

.prorank-il-workflow-step[data-state="ready"]::before {
  background: linear-gradient(90deg, #ff6900 0%, #ffd166 100%);
}

.prorank-il-workflow-step[data-state="blocked"]::before {
  background: linear-gradient(90deg, #64748b 0%, #cbd5e1 100%);
}

.prorank-il-workflow-step__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.prorank-il-workflow-step__title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.prorank-il-workflow-step__description {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.55;
  color: #64748b;
}

.prorank-il-workflow-step__reason {
  margin-top: 8px;
  font-size: 12px;
  color: #b45309;
}

.prorank-il-workflow-step__status {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prorank-il-workflow-step__status[data-state="complete"] {
  background: #dcfce7;
  color: #166534;
}

.prorank-il-workflow-step__status[data-state="ready"] {
  background: #fff7ed;
  color: #c2410c;
}

.prorank-il-workflow-step__status[data-state="blocked"] {
  background: #e2e8f0;
  color: #475569;
}

.prorank-il-step-actions {
  margin-top: 14px;
}

.prorank-il-filters-card > div,
.prorank-il-table-card > div {
  padding: 24px;
}

.prorank-il-table-toolbar {
  margin: -24px -24px 24px;
  padding: 16px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid #e2e8f0;
}

.prorank-il-table-toolbar__label {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

.prorank-il-table-card table thead tr {
  background: #f8fafc !important;
}

.prorank-il-table-card table tbody tr {
  transition: background-color 0.18s ease;
}

.prorank-il-table-card table tbody tr:hover {
  background: #fff7ed !important;
}

.prorank-il-row-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.prorank-il-row-flags {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.prorank-il-row-flag {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.prorank-il-row-flag.is-orphan {
  background: #fef2f2;
  color: #dc2626;
}

.prorank-il-row-flag.is-broken {
  background: #fff7ed;
  color: #d97706;
}

.prorank-il-soft-note {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 11px;
  font-weight: 700;
}

.prorank-report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 20px 24px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.prorank-report-filters {
  margin-bottom: 20px;
}

.prorank-filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.prorank-report-summary {
  margin-bottom: 12px;
  padding: 0 8px;
  color: #6b7280;
  font-size: 13px;
}

/* Data Table */
.prorank-report-table-card {
  overflow-x: auto;
}

.prorank-report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.prorank-report-table thead {
  background: #f9fafb;
  border-bottom: 2px solid #e5e7eb;
}

.prorank-report-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
}

.prorank-report-table th.center {
  text-align: center;
}

.prorank-report-table tbody tr {
  border-bottom: 1px solid #e5e7eb;
  transition: background-color 0.2s ease;
}

.prorank-report-table tbody tr:hover {
  background: #f9fafb;
}

.prorank-report-table tbody tr.no-links {
  background: #fef2f2;
}

.prorank-report-table td {
  padding: 12px 16px;
  color: #1f2937;
}

.prorank-report-table td.center {
  text-align: center;
}

.prorank-post-type {
  display: inline-block;
  background: #e5e7eb;
  color: #374151;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
}

.zero-links {
  color: #ef4444;
  font-weight: 600;
}

.high-density {
  color: #f59e0b;
  font-weight: 600;
}

.prorank-table-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.prorank-warning-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fef3c7;
  color: #92400e;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}

/* Pagination */
.prorank-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding: 16px;
  background: white;
  border-radius: 8px;
}

.prorank-page-info {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
}

/* No Results */
.prorank-no-results {
  text-align: center;
  padding: 48px 24px;
  color: #6b7280;
}

@media (max-width: 900px) {
  .prorank-il-hero {
    grid-template-columns: 1fr;
  }

  .prorank-il-hero__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 782px) {
  .prorank-il-hero {
    padding: 22px 20px;
    border-radius: 20px;
  }

  .prorank-il-hero__title {
    font-size: 24px;
  }

  .prorank-il-panel,
  .prorank-il-kpi-card,
  .prorank-il-progress-card {
    border-radius: 18px !important;
  }

  .prorank-il-panel > div,
  .prorank-il-progress-card > div,
  .prorank-il-workflow-card > div,
  .prorank-il-filters-card > div,
  .prorank-il-table-card > div {
    padding: 18px;
  }

  .prorank-il-table-toolbar {
    margin: -18px -18px 18px;
    padding: 14px 18px;
  }
}

/* ========================================
   Link Map Lite
   ======================================== */
.prorank-visual-link-map-modern {
  animation: fadeIn 0.3s ease;
}

.prorank-il-map-lite__hero {
  margin-bottom: 20px;
}

.prorank-il-map-lite__notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  padding: 16px 18px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #334155;
}

.prorank-il-map-lite__notice.is-error {
  border-color: rgba(248, 113, 113, 0.3);
  background: linear-gradient(180deg, #fff7f7 0%, #fef2f2 100%);
}

.prorank-il-map-lite__notice strong,
.prorank-il-map-lite__notice p {
  display: block;
  margin: 0;
}

.prorank-il-map-lite__notice p {
  margin-top: 4px;
  color: #64748b;
}

.prorank-il-map-lite__notice-icon {
  width: 20px;
  height: 20px;
  flex: none;
  color: #ff6900;
}

.prorank-map-layout.prorank-il-map-lite__layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 1100px) {
  .prorank-map-layout.prorank-il-map-lite__layout {
    grid-template-columns: 1fr;
  }
}

.prorank-map-sidebar,
.prorank-map-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.prorank-il-map-lite__card {
  overflow: hidden;
}

.prorank-il-map-lite__card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.prorank-il-map-lite__card-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.prorank-il-map-lite__card-head span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.prorank-il-map-lite__controls {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.prorank-il-map-lite__callout {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 105, 0, 0.07) 0%, rgba(255, 200, 87, 0.08) 100%);
  border: 1px solid rgba(255, 105, 0, 0.18);
}

.prorank-il-map-lite__callout strong,
.prorank-il-map-lite__callout p {
  display: block;
  margin: 0;
}

.prorank-il-map-lite__callout p {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: #475569;
}

.prorank-legend-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.prorank-il-map-lite__legend {
  gap: 12px;
}

.prorank-il-map-lite__legend-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #334155;
}

.prorank-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #6b7280;
  border: 1px solid #e5e7eb;
}

.prorank-il-map-lite__legend-dot {
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.25);
}

.prorank-il-map-lite__legend-dot.is-page {
  background: #3b82f6;
}

.prorank-il-map-lite__legend-dot.is-post {
  background: #10b981;
}

.prorank-legend-dot.prorank-orphan-dot,
.prorank-il-map-lite__legend-dot.is-orphan {
  background: #ef4444;
  animation: pulse 2s infinite;
}

.prorank-il-map-lite__legend-dot.is-missing {
  background: #ff8c42;
}

.prorank-il-map-lite__node-inspector {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.prorank-il-map-lite__node-meta strong,
.prorank-il-map-lite__node-meta a,
.prorank-il-map-lite__node-meta span {
  display: block;
}

.prorank-il-map-lite__node-meta strong {
  color: #0f172a;
  font-size: 16px;
}

.prorank-il-map-lite__node-meta a {
  margin-top: 8px;
  font-size: 12px;
  color: #2563eb;
  word-break: break-all;
}

.prorank-il-map-lite__node-type {
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.prorank-il-map-lite__node-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.prorank-il-map-lite__node-stats > div {
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
}

.prorank-il-map-lite__node-stats span,
.prorank-il-map-lite__node-list span {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.prorank-il-map-lite__node-stats strong {
  font-size: 24px;
  line-height: 1;
  color: #0f172a;
}

.prorank-il-map-lite__node-list ul {
  margin: 0;
  padding-left: 18px;
  color: #334155;
}

.prorank-il-map-lite__node-list li + li {
  margin-top: 4px;
}

.prorank-il-map-lite__node-list p,
.prorank-il-map-lite__empty-inspector p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.prorank-il-map-lite__empty-inspector {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 108px;
}

.prorank-il-map-lite__empty-icon {
  width: 22px;
  height: 22px;
  flex: none;
  color: #94a3b8;
}

.prorank-il-map-lite__stage {
  margin-bottom: 0;
}

.prorank-il-map-lite__stage-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.prorank-il-map-lite__density {
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f8fafc;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prorank-visualization-container.prorank-il-map-lite__canvas {
  min-height: 560px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 140, 66, 0.11), rgba(0, 0, 0, 0) 28%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.16) 0%, rgba(15, 23, 42, 0.28) 100%);
}

.prorank-visualization-container.prorank-il-map-lite__canvas.is-hidden {
  display: none;
}

.prorank-link-map-svg {
  width: 100%;
  height: 560px;
  display: block;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96) 0%, rgba(241, 245, 249, 0.98) 100%);
}

.prorank-link-map-svg .node circle {
  cursor: pointer;
  transition: transform 0.2s ease, stroke-width 0.2s ease, opacity 0.2s ease;
}

.prorank-link-map-svg .node.is-selected circle {
  filter: drop-shadow(0 8px 20px rgba(15, 23, 42, 0.24));
}

.prorank-link-map-svg .orphan-node circle {
  animation: pulse 2s infinite;
}

.prorank-link-map-svg__label {
  font-size: 11px;
  font-weight: 700;
  fill: #334155;
  pointer-events: none;
}

.prorank-il-map-lite__state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 420px;
  text-align: center;
}

.prorank-il-map-lite__state p {
  max-width: 560px;
  margin: 0;
  color: rgba(226, 232, 240, 0.92);
}

.prorank-il-map-lite__state-icon {
  width: 32px;
  height: 32px;
  color: rgba(255, 214, 102, 0.96);
}

.prorank-il-map-lite__state-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.prorank-il-map-lite__spinner {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-top-color: #ffd166;
  border-radius: 999px;
  animation: prorank-il-map-spin 0.8s linear infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.08);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes prorank-il-map-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ========================================
   Settings Styles
   ======================================== */
.prorank-internal-linking-settings {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.prorank-internal-linking-settings h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e5e7eb;
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
}

.prorank-internal-linking-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  margin-bottom: 16px;
  background: #f9fafb;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.prorank-internal-linking-toggle:hover {
  background: #f3f4f6;
}

.prorank-internal-linking-toggle-info h3 {
  margin: 0 0 4px 0;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
}

.prorank-internal-linking-toggle-info p {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
}

.prorank-tier-notice {
  margin-top: 8px;
  font-size: 11px;
  color: #374151;
  font-weight: 500;
}

.prorank-tier-badge {
  background: #f3f4f6;
  color: #374151;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  margin-left: 8px;
  border: 1px solid #e5e7eb;
}

.prorank-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.prorank-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
}

.prorank-checkbox-input {
  cursor: pointer;
}

.prorank-button-group {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.prorank-save-button,
.prorank-update-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 24px;
  min-height: 36px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.prorank-save-button:hover:not(:disabled),
.prorank-update-button:hover:not(:disabled) {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.prorank-save-button:disabled,
.prorank-update-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========================================
   Unified Premium Design Components
   ======================================== */

/* Buttons - 36px height standard */
.prorank-internal-linking-page .components-button {
  min-height: 36px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
}

.prorank-internal-linking-page .components-button.is-primary {
  background: #2563eb;
  border: none;
  color: white;
}

.prorank-internal-linking-page .components-button.is-secondary {
  background: white;
  border: 1px solid #e5e7eb;
  color: #374151;
}

/* Toggles - 44x24px standard */
.prorank-internal-linking-page .components-toggle-control__track {
  width: 44px;
  height: 24px;
}

/* Input fields - content-appropriate widths */
.prorank-internal-linking-page .components-text-control__input,
.prorank-internal-linking-page .components-select-control__input {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 14px;
}

/* Card styles with grey headers */
.prorank-internal-linking-page .components-card {
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: visible;
}

.prorank-internal-linking-page .components-card__header {
  background-color: #f5f5f5;
  padding: 16px 20px;
  border-bottom: 1px solid #e0e0e0;
}

/* Ensure all cards have the premium look */
.prorank-metric-card,
.prorank-dashboard-card,
.prorank-stat-card,
.prorank-settings-card,
.prorank-legend-card,
.prorank-visualization-card,
.prorank-controls-card,
.prorank-report-table-card,
.prorank-broken-links-table-card,
.prorank-auto-link-settings,
.prorank-suggestions-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
  .prorank-metrics-grid {
    grid-template-columns: 1fr;
  }

  .prorank-dashboard-header,
  .prorank-report-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .prorank-filters-grid {
    grid-template-columns: 1fr;
  }

  .prorank-report-table {
    font-size: 12px;
  }

  .prorank-report-table th,
  .prorank-report-table td {
    padding: 8px;
  }
}
