/**
 * Deepak Tools — Functional Execution Engine Stylesheet
 * Native DeepakPaswan Design System Integration
 * Color Palette: Primary #CA4B00, Soft #FFF8F2, Text #202020, Fonts: Inter, Plus Jakarta Sans, JetBrains Mono
 */

:root {
  --dp-primary: #CA4B00;
  --dp-primary-hover: #b04100;
  --dp-primary-soft: #FFF8F2;
  --dp-primary-dim: #ffdbce;
  --dp-surface: #FFFFFF;
  --dp-surface-low: #FFF8F2;
  --dp-surface-high: #E9E9E9;
  --dp-surface-border: #E5E7EB;
  --dp-text: #202020;
  --dp-text-muted: #666666;
  --dp-success: #00872e;
  --dp-success-bg: #e6f7ec;
  --dp-warning: #b45309;
  --dp-warning-bg: #fef3c7;
  --dp-error: #ba1a1a;
  --dp-error-bg: #ffdad6;
  --dp-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --dp-font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --dp-font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --dp-radius: 14px;
  --dp-radius-sm: 8px;
  --dp-radius-xs: 6px;
  --dp-shadow-sm: 0 1px 3px rgba(24, 29, 26, 0.05);
  --dp-shadow-md: 0 4px 14px rgba(24, 29, 26, 0.06);
  --dp-shadow-lg: 0 10px 25px -5px rgba(24, 29, 26, 0.08);
  --dp-transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Tool Container */
.dp-tool-interface {
  position: relative;
  background: var(--dp-surface);
  border: 1px solid var(--dp-surface-border);
  border-radius: var(--dp-radius);
  padding: 1.75rem;
  box-shadow: var(--dp-shadow-sm);
  font-family: var(--dp-font-sans);
  color: var(--dp-text);
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .dp-tool-interface {
    padding: 2.25rem;
  }
}

/* Tool Header */
.dp-tool-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--dp-surface-high);
}

.dp-tool-header-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dp-tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dp-primary);
  background: var(--dp-primary-soft);
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  width: fit-content;
  border: 1px solid rgba(202, 75, 0, 0.15);
}

.dp-tool-title {
  font-family: var(--dp-font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #181d1a;
  margin: 0;
  line-height: 1.3;
}

@media (min-width: 640px) {
  .dp-tool-title {
    font-size: 1.5rem;
  }
}

/* Status Indicator Dot & Label */
.dp-tool-header-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--dp-surface-low);
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid var(--dp-surface-high);
  font-size: 12px;
  font-weight: 600;
}

.dp-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  display: inline-block;
  background: #9ca3af;
}

.dp-status-dot.dp-status-idle { background: #9ca3af; }
.dp-status-dot.dp-status-loading {
  background: var(--dp-primary);
  box-shadow: 0 0 0 3px rgba(202, 75, 0, 0.2);
  animation: dp-pulse 1.5s infinite;
}
.dp-status-dot.dp-status-success { background: var(--dp-success); }
.dp-status-dot.dp-status-error { background: var(--dp-error); }

@keyframes dp-pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Forms & Grid Layouts */
.dp-tool-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.dp-tool-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .dp-tool-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.dp-tool-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .dp-tool-grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.dp-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.dp-label {
  font-size: 13px;
  font-weight: 600;
  color: #181d1a;
  letter-spacing: -0.01em;
}

.dp-hint {
  font-size: 12px;
  color: var(--dp-text-muted);
  line-height: 1.4;
}

/* Inputs & Form Elements */
.dp-input,
.dp-select,
.dp-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 14px;
  color: var(--dp-text);
  background: #ffffff;
  border: 1px solid var(--dp-surface-high);
  border-radius: var(--dp-radius-sm);
  outline: none;
  transition: var(--dp-transition);
  box-sizing: border-box;
}

.dp-input:focus,
.dp-select:focus,
.dp-textarea:focus {
  border-color: var(--dp-primary);
  box-shadow: 0 0 0 3px rgba(202, 75, 0, 0.15);
}

.dp-input::placeholder,
.dp-textarea::placeholder {
  color: #9ca3af;
}

.dp-textarea {
  resize: vertical;
  line-height: 1.5;
}

.dp-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px;
  padding-right: 2.25rem;
  appearance: none;
  -webkit-appearance: none;
}

/* Actions & Buttons */
.dp-tool-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.dp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--dp-radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--dp-transition);
  text-decoration: none;
  white-space: nowrap;
}

.dp-btn:focus-visible {
  outline: 2px solid var(--dp-primary);
  outline-offset: 2px;
}

.dp-btn-primary {
  background: var(--dp-primary);
  color: #ffffff;
}

.dp-btn-primary:hover {
  background: var(--dp-primary-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: var(--dp-shadow-md);
}

.dp-btn-secondary {
  background: var(--dp-surface-low);
  color: var(--dp-text);
  border-color: var(--dp-surface-high);
}

.dp-btn-secondary:hover {
  background: #ffffff;
  border-color: #d1d5db;
  color: var(--dp-primary);
}

/* Action Toolbar Buttons (Copy, Download) */
.dp-btn-tool-action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  font-size: 12px;
  font-weight: 600;
  color: var(--dp-text);
  background: var(--dp-surface);
  border: 1px solid var(--dp-surface-high);
  border-radius: var(--dp-radius-xs);
  cursor: pointer;
  transition: var(--dp-transition);
}

.dp-btn-tool-action:hover {
  background: var(--dp-primary-soft);
  color: var(--dp-primary);
  border-color: rgba(202, 75, 0, 0.3);
}

.dp-btn-tool-action:focus-visible {
  outline: 2px solid var(--dp-primary);
  outline-offset: 1px;
}

/* Spinner */
.dp-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 9999px;
  animation: dp-spin 0.8s linear infinite;
}

.dp-tool-interface.is-loading .dp-spinner {
  display: inline-block;
}

.dp-tool-interface.is-loading .dp-btn-icon {
  display: none;
}

.dp-tool-interface.is-loading .dp-tool-submit {
  opacity: 0.85;
  pointer-events: none;
}

@keyframes dp-spin {
  to { transform: rotate(360deg); }
}

/* Results Container */
.dp-tool-result {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--dp-surface-high);
  animation: dp-fade-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

@keyframes dp-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.dp-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.dp-result-title-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dp-result-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Code Blocks */
.dp-code-block {
  margin: 0;
  padding: 1.25rem;
  background: #0d1117;
  color: #e6edf3;
  border-radius: var(--dp-radius-sm);
  border: 1px solid #30363d;
  font-family: var(--dp-font-mono);
  font-size: 13px;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre;
}

.dp-code-block code {
  font-family: inherit;
  color: inherit;
  background: transparent;
  padding: 0;
}

/* Tables */
.dp-table-wrap {
  border: 1px solid var(--dp-surface-high);
  border-radius: var(--dp-radius-sm);
  overflow: hidden;
}

.dp-tool-result-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.dp-tool-result-table th,
.dp-tool-result-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--dp-surface-high);
}

.dp-tool-result-table th {
  background: var(--dp-surface-low);
  font-weight: 600;
  color: #181d1a;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.dp-tool-result-table tr:last-child td {
  border-bottom: none;
}

.dp-tool-result-table tr:hover td {
  background: rgba(255, 248, 242, 0.4);
}

/* Summary Cards */
.dp-summary-cards {
  display: grid;
  gap: 0.75rem;
}

.dp-summary-card {
  padding: 0.85rem 1rem;
  background: var(--dp-surface-low);
  border: 1px solid rgba(233, 233, 233, 0.7);
  border-radius: var(--dp-radius-sm);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.dp-card-stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--dp-text-muted);
}

.dp-card-stat-value {
  font-size: 1rem;
  font-weight: 700;
  color: #181d1a;
}

/* Status Hero Box */
.dp-status-hero {
  background: var(--dp-surface);
  border-color: var(--dp-surface-high);
}

.dp-status-hero.status-success {
  background: var(--dp-success-bg);
  border-color: rgba(0, 135, 46, 0.25);
}

.dp-status-hero.status-warning {
  background: var(--dp-warning-bg);
  border-color: rgba(180, 83, 9, 0.25);
}

.dp-status-hero.status-error {
  background: var(--dp-error-bg);
  border-color: rgba(186, 26, 26, 0.25);
}

.dp-status-code-badge {
  background: #181d1a;
  color: #ffffff;
}

.status-success .dp-status-code-badge {
  background: var(--dp-success);
}

.status-warning .dp-status-code-badge {
  background: var(--dp-warning);
}

.status-error .dp-status-code-badge {
  background: var(--dp-error);
}

/* Error Notice Banner */
.dp-tool-error-banner {
  padding: 1rem 1.25rem;
  background: var(--dp-error-bg);
  border: 1px solid rgba(186, 26, 26, 0.25);
  border-radius: var(--dp-radius-sm);
  color: #550f0f;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  animation: dp-fade-in 0.2s ease-out;
}

.dp-tool-error-banner .material-symbols-outlined {
  color: var(--dp-error);
  font-size: 20px;
}

/* Open Graph Social Card Preview */
.dp-social-card-preview {
  max-width: 520px;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--dp-shadow-sm);
}

.dp-card-img-wrap {
  width: 100%;
  aspect-ratio: 1.91 / 1;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.dp-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dp-card-img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.dp-card-meta-wrap {
  padding: 0.85rem 1rem;
  background: #ffffff;
}

.dp-card-domain {
  font-size: 11px;
  text-transform: uppercase;
  color: #6b7280;
  letter-spacing: 0.03em;
  display: block;
  margin-bottom: 0.25rem;
}

.dp-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.35rem 0;
  line-height: 1.35;
}

.dp-card-desc {
  font-size: 12px;
  color: #4b5563;
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* FAQ Rows & Preview */
.dp-faq-row {
  padding: 1.25rem;
  background: var(--dp-surface-low);
  border: 1px solid var(--dp-surface-high);
  border-radius: var(--dp-radius-sm);
  margin-bottom: 0.75rem;
  position: relative;
}

.dp-faq-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.dp-faq-row-num {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--dp-primary);
}

.dp-btn-remove-row {
  background: transparent;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
}

.dp-btn-remove-row:hover {
  color: var(--dp-error);
  background: rgba(186, 26, 26, 0.1);
}

.dp-faq-preview-item {
  border: 1px solid var(--dp-surface-high);
  border-radius: var(--dp-radius-sm);
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.dp-faq-preview-q {
  padding: 0.85rem 1rem;
  background: var(--dp-surface-low);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dp-faq-preview-a {
  padding: 0.85rem 1rem;
  font-size: 13px;
  line-height: 1.6;
  background: #ffffff;
  border-top: 1px solid var(--dp-surface-high);
}

/* Redirect Chain Visualizer */
.dp-redirect-chain-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.dp-redirect-node {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--dp-surface);
  border: 1px solid var(--dp-surface-high);
  border-radius: var(--dp-radius-sm);
  position: relative;
}

.dp-redirect-node.is-final {
  border-color: rgba(0, 135, 46, 0.4);
  background: rgba(230, 247, 236, 0.3);
}

.dp-redirect-hop-num {
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  background: var(--dp-surface-low);
  color: var(--dp-primary);
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(202, 75, 0, 0.2);
  shrink: 0;
}

.dp-redirect-node.is-final .dp-redirect-hop-num {
  background: var(--dp-success);
  color: #ffffff;
  border-color: transparent;
}

.dp-redirect-details {
  flex: 1;
  min-width: 0;
}

.dp-redirect-url {
  font-family: var(--dp-font-mono);
  font-size: 13px;
  color: #181d1a;
  word-break: break-all;
  margin: 0 0 0.35rem 0;
}

.dp-redirect-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dp-badge-status {
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-family: var(--dp-font-mono);
  font-size: 11px;
  font-weight: 700;
}

.badge-301, .badge-308 { background: #fef3c7; color: #92400e; }
.badge-302, .badge-307 { background: #e0f2fe; color: #075985; }
.badge-200 { background: #dcfce7; color: #166534; }

/* Toast Notifications */
.dp-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #181d1a;
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--dp-radius-sm);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--dp-shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 9999;
  animation: dp-toast-in 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dp-toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   DP Tool Interface 2.0 Extensions
   ========================================================================== */

/* Metrics Summary Grid */
.dp-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.dp-metric-card {
  background: var(--dp-surface-low);
  border: 1px solid rgba(202, 75, 0, 0.12);
  border-radius: var(--dp-radius-sm);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.dp-metric-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--dp-text-muted);
  letter-spacing: 0.04em;
}

.dp-metric-value {
  font-family: var(--dp-font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: #181d1a;
}

.dp-metric-value.is-good { color: var(--dp-success); }
.dp-metric-value.is-warn { color: var(--dp-warning); }
.dp-metric-value.is-bad  { color: var(--dp-error); }

/* Responsive Result Tables */
.dp-table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--dp-surface-high);
  border-radius: var(--dp-radius-sm);
  margin-bottom: 1.25rem;
  background: #ffffff;
}

.dp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.dp-table th {
  background: var(--dp-surface-low);
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: #181d1a;
  border-bottom: 1px solid var(--dp-surface-high);
  white-space: nowrap;
}

.dp-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--dp-surface-high);
  color: var(--dp-text);
  vertical-align: middle;
}

.dp-table tr:last-child td {
  border-bottom: none;
}

/* File Upload Drag-and-Drop Zone (PDF & Images) */
.dp-file-dropzone {
  border: 2px dashed rgba(202, 75, 0, 0.35);
  background: var(--dp-surface-low);
  border-radius: var(--dp-radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--dp-transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.dp-file-dropzone:hover,
.dp-file-dropzone.is-dragover {
  border-color: var(--dp-primary);
  background: #fff3ea;
}

.dp-dropzone-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--dp-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--dp-shadow-sm);
}

.dp-dropzone-title {
  font-weight: 700;
  font-size: 15px;
  color: #181d1a;
  margin: 0;
}

.dp-dropzone-sub {
  font-size: 12px;
  color: var(--dp-text-muted);
  margin: 0;
}

.dp-file-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.dp-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  background: #ffffff;
  border: 1px solid var(--dp-surface-high);
  border-radius: var(--dp-radius-xs);
  font-size: 12px;
}

.dp-file-name {
  font-weight: 600;
  color: #181d1a;
  truncate: true;
}

.dp-file-size {
  color: var(--dp-text-muted);
  font-family: var(--dp-font-mono);
  margin-left: 0.5rem;
}

/* Progress Bar */
.dp-progress-wrap {
  width: 100%;
  height: 8px;
  background: var(--dp-surface-high);
  border-radius: 9999px;
  overflow: hidden;
  margin: 1rem 0;
}

.dp-progress-bar {
  height: 100%;
  background: var(--dp-primary);
  width: 0%;
  transition: width 0.3s ease;
}

/* SERP Google Preview Simulator */
.dp-serp-preview-box {
  background: #ffffff;
  border: 1px solid var(--dp-surface-high);
  border-radius: var(--dp-radius-sm);
  padding: 1.25rem 1.5rem;
  max-width: 650px;
  box-shadow: var(--dp-shadow-sm);
  font-family: arial, sans-serif;
  text-align: left;
}

.dp-serp-url-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.dp-serp-favicon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f1f3f4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #5f6368;
}

.dp-serp-domain {
  font-size: 14px;
  color: #202124;
  line-height: 1.3;
}

.dp-serp-slug {
  font-size: 12px;
  color: #5f6368;
}

.dp-serp-title {
  font-size: 20px;
  line-height: 1.3;
  color: #1a0dab;
  cursor: pointer;
  margin: 0 0 4px 0;
  font-weight: 400;
}

.dp-serp-title:hover {
  text-decoration: underline;
}

.dp-serp-snippet {
  font-size: 14px;
  line-height: 1.58;
  color: #4d5156;
  margin: 0;
  word-wrap: break-word;
}

/* Social Card Preview */
.dp-social-card-preview {
  border: 1px solid var(--dp-surface-high);
  border-radius: var(--dp-radius-sm);
  overflow: hidden;
  max-width: 520px;
  background: #ffffff;
  box-shadow: var(--dp-shadow-sm);
}

.dp-social-card-img-placeholder {
  width: 100%;
  height: 240px;
  background: var(--dp-surface-low);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dp-text-muted);
  font-size: 13px;
  border-bottom: 1px solid var(--dp-surface-high);
  position: relative;
  overflow: hidden;
}

.dp-social-card-img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dp-social-card-body {
  padding: 1rem 1.25rem;
}

.dp-social-card-domain {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--dp-text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.dp-social-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #181d1a;
  margin: 0 0 0.35rem 0;
  line-height: 1.35;
}

.dp-social-card-desc {
  font-size: 13px;
  color: var(--dp-text-muted);
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Skeleton Loading Animation */
.dp-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: dp-skeleton-loading 1.5s infinite;
  border-radius: var(--dp-radius-xs);
}

@keyframes dp-skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* =========================================================================
   WordPress Theme Detector — Advanced Report Styles
   ========================================================================= */

.dp-wpt-report {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.dp-wpt-card {
  background: #ffffff;
  border: 1px solid var(--dp-surface-border);
  border-radius: var(--dp-radius);
  padding: 1.5rem;
  box-shadow: var(--dp-shadow-sm);
  transition: var(--dp-transition);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.dp-wpt-card:hover {
  box-shadow: var(--dp-shadow-md);
}

.dp-wpt-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.dp-wpt-hero > * {
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 768px) {
  .dp-wpt-hero {
    grid-template-columns: 280px minmax(0, 1fr);
  }
}

.dp-wpt-thumb-wrap {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--dp-radius-sm);
  overflow: hidden;
  background: var(--dp-surface-low);
  border: 1px solid var(--dp-surface-high);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.dp-wpt-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dp-wpt-thumb-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  color: var(--dp-text-muted);
}

.dp-wpt-meta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem 1.25rem;
  margin-top: 1rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .dp-wpt-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.dp-wpt-meta-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  max-width: 100%;
}

.dp-wpt-meta-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--dp-text-muted);
}

.dp-wpt-meta-val {
  font-size: 13px;
  font-weight: 500;
  color: var(--dp-text);
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}

.dp-wpt-meta-val a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.dp-wpt-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
  max-width: 100%;
}

.dp-wpt-tag-pill {
  font-family: var(--dp-font-mono);
  font-size: 11px;
  padding: 0.2rem 0.55rem;
  background: var(--dp-surface-low);
  color: var(--dp-text);
  border: 1px solid var(--dp-surface-high);
  border-radius: 9999px;
  white-space: nowrap;
}

/* =========================================================================
   Detected Plugins Grid & Card Architecture
   - Desktop (>= 1024px): 2 columns
   - Tablet (640px - 1023px): 1-2 columns depending on available width
   - Mobile (< 640px): 1 column
   - Tracks use minmax(0, 1fr) to guarantee no blowout from long content
   - min-width: 0 on all items
   - overflow-wrap: anywhere on long URLs and text
   ========================================================================= */

.dp-wpt-plugin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Tablet (640px to 1023px): 1-2 columns depending on available width */
@media (min-width: 640px) and (max-width: 1023px) {
  .dp-wpt-plugin-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  }
}

/* Desktop (>= 1024px): 2 columns */
@media (min-width: 1024px) {
  .dp-wpt-plugin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.dp-wpt-plugin-item {
  background: var(--dp-surface);
  border: 1px solid var(--dp-surface-border);
  border-radius: var(--dp-radius-sm);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  transition: var(--dp-transition);
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.dp-wpt-plugin-item:hover {
  border-color: rgba(202, 75, 0, 0.4);
  box-shadow: var(--dp-shadow-sm);
}

.dp-wpt-plugin-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
  width: 100%;
}

.dp-wpt-plugin-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  flex: 1 1 0%;
}

.dp-wpt-plugin-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--dp-text);
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  line-height: 1.35;
}

.dp-wpt-plugin-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.35rem;
  min-width: 0;
  width: 100%;
  font-size: 12px;
  color: var(--dp-text-muted);
}

.dp-wpt-plugin-category {
  font-weight: 500;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.dp-wpt-plugin-version {
  font-family: var(--dp-font-mono);
  font-size: 11px;
  padding: 0.15rem 0.5rem;
  background: var(--dp-surface-high);
  border-radius: 4px;
  color: var(--dp-text);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.dp-wpt-plugin-evidence {
  padding-top: 0.5rem;
  border-top: 1px solid var(--dp-surface-high);
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.dp-wpt-evidence-text {
  display: block;
  font-family: var(--dp-font-mono);
  font-size: 10.5px;
  color: var(--dp-text-muted);
  line-height: 1.45;
  min-width: 0;
  width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.dp-wpt-badge-free {
  font-size: 11px;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  background: var(--dp-success-bg);
  color: var(--dp-success);
  border: 1px solid rgba(0, 135, 46, 0.2);
  flex-shrink: 0;
  white-space: nowrap;
}

.dp-wpt-badge-premium {
  font-size: 11px;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  background: var(--dp-primary-soft);
  color: var(--dp-primary);
  border: 1px solid rgba(202, 75, 0, 0.25);
  flex-shrink: 0;
  white-space: nowrap;
}

.dp-wpt-badge-unknown {
  font-size: 11px;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  background: var(--dp-surface-high);
  color: var(--dp-text-muted);
  flex-shrink: 0;
  white-space: nowrap;
}


