/* ==========================================================================
   Digital DreamWorks - Affiliate Hardware Hub Styling
   Modern Dark Theme Design System for Live Stream & AV Hardware
   ========================================================================== */

:root {
  --ddw-bg: #07080b;
  --ddw-bg-soft: #0d121c;
  --ddw-bg-card: #121824;
  --ddw-bg-card-hover: #161f30;
  --ddw-text: #eef2ff;
  --ddw-text-muted: #94a3b8;
  --ddw-accent: #76e3ff;
  --ddw-accent-glow: rgba(118, 227, 255, 0.22);
  --ddw-accent-2: #5ca8ff;
  --ddw-border: rgba(255, 255, 255, 0.12);
  --ddw-border-hover: rgba(118, 227, 255, 0.35);
  --ddw-success: #10b981;
  --ddw-warning: #f59e0b;
  --ddw-danger: #f87171;
  --amazon-orange: #ff9900;
  --amazon-btn-hover: #ffad33;
}

/* Base Body Override for Hardware Hub */
.hardware-body {
  background-color: var(--ddw-bg);
  color: var(--ddw-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}

/* Amazon Compliance Disclosure Banners */
.compliance-top-banner {
  background: linear-gradient(90deg, rgba(255, 153, 0, 0.15) 0%, rgba(13, 18, 28, 0.95) 50%, rgba(118, 227, 255, 0.1) 100%);
  border-bottom: 1px solid rgba(255, 153, 0, 0.25);
  font-size: 0.84rem;
  color: #cbd5e1;
  padding: 0.55rem 1rem;
  text-align: center;
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 1040;
}

.compliance-top-banner .disclosure-tag {
  background: rgba(255, 153, 0, 0.2);
  color: #ffb84d;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 153, 0, 0.4);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-right: 0.5rem;
  display: inline-block;
}

.compliance-box {
  background: rgba(18, 24, 36, 0.85);
  border: 1px solid rgba(255, 153, 0, 0.25);
  border-left: 4px solid var(--amazon-orange);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Hero Section */
.hardware-hero {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  background: 
    radial-gradient(circle at 50% 0%, rgba(118, 227, 255, 0.12) 0%, transparent 65%),
    radial-gradient(circle at 85% 25%, rgba(92, 168, 255, 0.08) 0%, transparent 55%),
    var(--ddw-bg);
  border-bottom: 1px solid var(--ddw-border);
}

.hardware-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(118, 227, 255, 0.09);
  border: 1px solid rgba(118, 227, 255, 0.28);
  color: var(--ddw-accent);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 1.25rem;
}

.hardware-hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 40%, #a5b4fc 80%, #76e3ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.2rem;
}

.hardware-hero-subtitle {
  color: #94a3b8;
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  max-width: 780px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

/* Quick Stat Chips */
.hardware-stat-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--ddw-border);
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 140px;
}

.hardware-stat-val {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ddw-accent);
}

.hardware-stat-lbl {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ddw-text-muted);
}

/* Quick Verdict Cards (Above the fold 3-item grid) */
.verdict-card {
  background: var(--ddw-bg-card);
  border: 1px solid var(--ddw-border);
  border-radius: 20px;
  padding: 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.verdict-card:hover {
  transform: translateY(-6px);
  border-color: var(--ddw-border-hover);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(118, 227, 255, 0.12);
}

.verdict-card.featured {
  background: linear-gradient(180deg, rgba(22, 33, 52, 0.9) 0%, rgba(14, 20, 31, 0.95) 100%);
  border: 1.5px solid rgba(118, 227, 255, 0.4);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.55), 0 0 30px rgba(118, 227, 255, 0.15);
}

.verdict-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.badge-budget {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-value {
  background: rgba(118, 227, 255, 0.15);
  color: var(--ddw-accent);
  border: 1px solid rgba(118, 227, 255, 0.35);
}

.badge-premium {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.verdict-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
  padding-right: 5rem;
}

.verdict-target {
  font-size: 0.85rem;
  color: var(--ddw-text-muted);
  margin-bottom: 1.25rem;
}

.verdict-hardware-summary {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 1.25rem;
}

.verdict-hardware-summary p {
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
  color: #e2e8f0;
}

.verdict-hardware-summary p:last-child {
  margin-bottom: 0;
}

/* Qualitative Price Badge (Strictly adhering to Amazon PA-API without static prices) */
.price-indicator-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* High-Converting Amazon CTA Button */
.btn-amazon-cta {
  background: linear-gradient(135deg, var(--amazon-orange) 0%, #e68a00 100%);
  color: #111827 !important;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-decoration: none;
  width: 100%;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(255, 153, 0, 0.25);
}

.btn-amazon-cta:hover {
  background: linear-gradient(135deg, var(--amazon-btn-hover) 0%, var(--amazon-orange) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 153, 0, 0.4);
  color: #000000 !important;
}

.btn-amazon-cta i {
  font-size: 1.05rem;
}

.btn-amazon-cta.btn-sm-inline {
  width: auto;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}

/* Section Kickers & Headers */
.section-kicker-dark {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ddw-accent);
  margin-bottom: 0.5rem;
}

.section-title-dark {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.section-desc-dark {
  color: var(--ddw-text-muted);
  font-size: 1.05rem;
  max-width: 650px;
}

/* Tier Category Navigation Tabs */
.tier-nav-pill-group {
  display: inline-flex;
  background: rgba(18, 24, 36, 0.9);
  padding: 0.35rem;
  border-radius: 999px;
  border: 1px solid var(--ddw-border);
}

.tier-filter-btn {
  background: transparent;
  border: none;
  color: var(--ddw-text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.45rem 1.25rem;
  border-radius: 999px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.tier-filter-btn:hover {
  color: #ffffff;
}

.tier-filter-btn.active {
  background: linear-gradient(135deg, var(--ddw-accent), var(--ddw-accent-2));
  color: #07080b;
  box-shadow: 0 4px 15px rgba(118, 227, 255, 0.3);
}

/* Tier Group Section Container */
.tier-group-container {
  border-radius: 24px;
  border: 1px solid var(--ddw-border);
  background: rgba(14, 20, 31, 0.6);
  padding: 2.25rem;
  margin-bottom: 3.5rem;
  position: relative;
}

.tier-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.tier-1-badge { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.tier-2-badge { background: rgba(118, 227, 255, 0.15); color: #76e3ff; border: 1px solid rgba(118, 227, 255, 0.35); }
.tier-3-badge { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.35); }

/* Detailed Product Card */
.product-card {
  background: var(--ddw-bg-card);
  border: 1px solid var(--ddw-border);
  border-radius: 18px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--ddw-border-hover);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.product-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.product-category-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ddw-accent);
}

.product-role-badge {
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-weight: 600;
}

.product-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

/* Feature bullets */
.product-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem 0;
}

.product-features-list li {
  font-size: 0.86rem;
  color: #cbd5e1;
  margin-bottom: 0.45rem;
  position: relative;
  padding-left: 1.25rem;
  line-height: 1.45;
}

.product-features-list li::before {
  content: "•";
  color: var(--ddw-accent);
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 1.1rem;
  line-height: 1;
}

/* Pros and Cons Box */
.pros-cons-box {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 12px;
  padding: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: auto;
  margin-bottom: 1.25rem;
}

.pros-list, .cons-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pros-list li {
  font-size: 0.82rem;
  color: #a7f3d0;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  line-height: 1.4;
}

.pros-list li i {
  color: var(--ddw-success);
  font-size: 0.85rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.cons-list li {
  font-size: 0.82rem;
  color: #fca5a5;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  line-height: 1.4;
}

.cons-list li i {
  color: var(--ddw-danger);
  font-size: 0.85rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

/* Responsive Comparison Matrix Table */
.matrix-wrapper {
  background: var(--ddw-bg-card);
  border: 1px solid var(--ddw-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5);
}

.matrix-table {
  width: 100%;
  margin-bottom: 0;
  color: #e2e8f0;
  border-collapse: separate;
  border-spacing: 0;
}

.matrix-table th {
  background: #0f1624;
  padding: 1.1rem 1rem;
  font-weight: 700;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--ddw-border);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.matrix-table th:last-child {
  border-right: none;
}

.matrix-table th.col-feature {
  width: 22%;
  color: var(--ddw-accent);
}

.matrix-table th.col-tier1 {
  width: 26%;
  border-top: 3px solid #10b981;
}

.matrix-table th.col-tier2 {
  width: 26%;
  background: #141d2f;
  border-top: 3px solid var(--ddw-accent);
}

.matrix-table th.col-tier3 {
  width: 26%;
  border-top: 3px solid #c084fc;
}

.matrix-table td {
  padding: 1rem;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
  line-height: 1.45;
}

.matrix-table td:last-child {
  border-right: none;
}

.matrix-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.matrix-table td.tier2-highlight {
  background: rgba(118, 227, 255, 0.03);
}

.spec-badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

.badge-latency-low { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.badge-latency-ultra { background: rgba(118, 227, 255, 0.2); color: #76e3ff; }

/* Engineering Callout / FAQ Cards */
.eng-callout-card {
  background: rgba(18, 24, 36, 0.7);
  border: 1px solid var(--ddw-border);
  border-radius: 16px;
  padding: 1.5rem;
  height: 100%;
}

.eng-callout-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.eng-callout-card h4 i {
  color: var(--ddw-accent);
}

.eng-callout-card p {
  font-size: 0.88rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Service Integration CTA Banner */
.consultation-cta-card {
  background: linear-gradient(135deg, rgba(14, 23, 42, 0.95) 0%, rgba(10, 16, 26, 0.98) 100%);
  border: 1px solid rgba(118, 227, 255, 0.3);
  border-radius: 24px;
  padding: 3rem 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(118, 227, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.consultation-cta-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(118, 227, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .verdict-title {
    padding-right: 0;
  }
  .matrix-wrapper {
    overflow-x: auto;
  }
  .matrix-table {
    min-width: 720px;
  }
  .tier-group-container {
    padding: 1.5rem 1rem;
  }
}
