/* ============================================================
   site-details.css - Link Paragon website detail page (site.php)
   Rabbi-style "Website Details" layout.
   Uses the site's current theme variables (--bg-body, --bg-surface,
   --text-main, --text-muted, --border-color) so the dark-mode toggle
   keeps working.
   ============================================================ */

.sd-wrap { max-width: 1180px; margin: 0 auto; padding: 28px 20px 64px; }

/* ---------- Breadcrumb ---------- */
.sd-crumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--text-muted); margin: 0 0 18px; }
.sd-crumb a { color: var(--text-muted); text-decoration: none; }
.sd-crumb a:hover { color: #4f46e5; text-decoration: underline; }
.sd-crumb .sep { opacity: .55; }
.sd-crumb-current { color: var(--text-main); font-weight: 600; max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Layout ---------- */
.sd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.sd-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

/* ---------- Cards ---------- */
.sd-card { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: 16px; padding: 22px; }

/* ---------- Header card ---------- */
.sd-head-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sd-domain { font-size: 26px; font-weight: 800; letter-spacing: -0.01em; margin: 0; color: var(--text-main); overflow-wrap: anywhere; }
.sd-new { background: #4f46e5; color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .06em; padding: 3px 8px; border-radius: 6px; }
.sd-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sd-tag { background: rgba(79, 70, 229, .08); color: #4f46e5; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.sd-infoboxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.sd-infobox { border: 1px solid var(--border-color); border-radius: 12px; padding: 12px 14px; background: var(--bg-body); }
.sd-infobox-label { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.sd-infobox-val { font-size: 15px; font-weight: 700; color: var(--text-main); }
.sd-live { background: #16a34a; color: #fff; font-size: 9px; font-weight: 800; letter-spacing: .08em; padding: 2px 7px; border-radius: 999px; }
.sd-dash { color: var(--text-muted); }

/* ---------- Metric cards ---------- */
.sd-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sd-metric { text-align: center; padding: 20px 16px 22px; }
.sd-brand { display: block; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-brand-semrush { color: #ff642d; }
.sd-brand-moz { color: #174ee1; }
.sd-brand-ahrefs { color: #2196f3; }
.sd-metric h3 { font-size: 14px; font-weight: 700; margin: 0 0 12px; color: var(--text-main); }
.sd-gauge { position: relative; width: 96px; height: 96px; margin: 0 auto 10px; }
.sd-gauge svg { display: block; }
.sd-gauge-val { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; color: var(--text-main); }
.sd-rating { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 14px; border-radius: 999px; }
.sd-rating.low { background: rgba(245, 158, 11, .14); color: #b45309; }
.sd-rating.fair { background: rgba(59, 130, 246, .14); color: #1d4ed8; }
.sd-rating.strong { background: rgba(16, 185, 129, .14); color: #047857; }
.sd-note { font-size: 12px; color: var(--text-muted); }
.sd-traffic-val { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin: 8px 0 4px; color: var(--text-main); }
.sd-links { text-align: left; display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.sd-link-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; }
.sd-link-row .k { color: var(--text-muted); font-weight: 600; }
.sd-link-row .v { font-weight: 700; color: var(--text-main); }
.sd-pill-ok { background: rgba(16, 185, 129, .14); color: #047857; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.sd-pill-no { background: var(--bg-body); border: 1px solid var(--border-color); color: var(--text-muted); font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }

/* ---------- Country strip ---------- */
.sd-sec-title { font-size: 17px; font-weight: 800; margin: 0 0 4px; letter-spacing: -0.01em; color: var(--text-main); }
.sd-sec-title .sd-sub { color: var(--text-muted); font-weight: 600; font-size: 12px; letter-spacing: 0; }
.sd-sec-sub { font-size: 13px; color: var(--text-muted); margin: 0 0 6px; }
.sd-country-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; border: 1px solid var(--border-color); border-radius: 12px; background: var(--bg-body); }
.sd-flag { width: 36px; height: 26px; border-radius: 4px; object-fit: cover; box-shadow: 0 0 0 1px var(--border-color); flex: none; }
.sd-flag-emoji { font-size: 26px; line-height: 1; flex: none; }
.sd-country-name { font-weight: 700; font-size: 15px; color: var(--text-main); }
.sd-share { margin-left: auto; font-size: 13px; color: var(--text-muted); }
.sd-text { font-size: 14px; color: var(--text-muted); line-height: 1.65; margin: 0; }

/* ---------- Similar sites ---------- */
.sd-sim-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.sd-sim { border: 1px solid var(--border-color); border-radius: 12px; padding: 14px; background: var(--bg-body); min-width: 0; }
.sd-sim a { font-weight: 700; font-size: 14px; color: var(--text-main); text-decoration: none; overflow-wrap: anywhere; }
.sd-sim a:hover { color: #4f46e5; }
.sd-sim-meta { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

/* ---------- Sidebar ---------- */
.sd-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 96px; min-width: 0; }
.sd-order-domain { font-size: 16px; font-weight: 800; color: var(--text-main); overflow-wrap: anywhere; }
.sd-order-meta { font-size: 12.5px; color: var(--text-muted); margin: 6px 0 14px; }
.sd-price-from { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.sd-price-amount { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; color: var(--text-main); }
.sd-price-note { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.sd-members { background: var(--bg-body); border: 1px dashed var(--border-color); border-radius: 10px; padding: 10px 12px; font-size: 12.5px; color: var(--text-muted); margin: 10px 0 12px; }
.sd-order-btn { margin-top: 14px; }
.sd-service { list-style: none; margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid var(--border-color); display: flex; flex-direction: column; gap: 12px; }
.sd-service li { display: flex; gap: 10px; font-size: 13px; align-items: flex-start; }
.sd-service .ico { font-size: 16px; line-height: 1.3; flex: none; }
.sd-service .t { font-weight: 700; display: block; color: var(--text-main); }
.sd-service .d { color: var(--text-muted); font-size: 12px; display: block; margin-top: 2px; }
.sd-help h3 { font-size: 15px; font-weight: 800; margin: 0 0 6px; color: var(--text-main); }
.sd-help p { font-size: 13px; color: var(--text-muted); margin: 0 0 14px; line-height: 1.6; }
.sd-help-btn { display: block; text-align: center; border: 1px solid var(--border-color); border-radius: 10px; padding: 10px 14px; font-size: 14px; font-weight: 700; color: var(--text-main); text-decoration: none; background: var(--bg-body); }
.sd-help-btn:hover { border-color: #4f46e5; color: #4f46e5; }

/* ---------- Buttons ---------- */
.sd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; background: #4f46e5; color: #fff; border: none; border-radius: 10px; padding: 12px 16px; font-size: 15px; font-weight: 700; font-family: inherit; cursor: pointer; text-decoration: none; transition: background .15s ease; }
.sd-btn:hover { background: #4338ca; color: #fff; }
.sd-btn i { font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .sd-layout { grid-template-columns: 1fr; }
  .sd-side { position: static; }
  .sd-metrics { grid-template-columns: repeat(2, 1fr); }
  .sd-sim-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .sd-wrap { padding: 20px 14px 48px; }
  .sd-metrics { grid-template-columns: 1fr; }
  .sd-infoboxes { grid-template-columns: 1fr; }
  .sd-sim-grid { grid-template-columns: 1fr; }
  .sd-domain { font-size: 22px; }
  .sd-card { padding: 18px; }
}