/* DIGITAL TWIN GREENHOUSE SIMULATOR STYLES */
:root {
  --bg-dark: #0f172a;
  --panel-bg: rgba(30, 41, 59, 0.85);
  --panel-border: rgba(255, 255, 255, 0.1);
  --accent-emerald: #10b981;
  --accent-cyan: #06b6d4;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

.sim-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 16px;
}

.sim-header {
  text-align: center;
  margin-bottom: 28px;
}

.sim-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0 0 8px 0;
  background: linear-gradient(135deg, #34d399, #06b6d4, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sim-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0;
}

.sim-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
}

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

.viewport-panel {
  background: var(--panel-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

.canvas-wrapper {
  position: relative;
  width: 100%;
  height: 480px;
  background: #020617;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

#ghCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.telemetry-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 20px;
}

@media (max-width: 640px) {
  .telemetry-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

.telemetry-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}

.telemetry-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.telemetry-val {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.controls-panel {
  background: var(--panel-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.control-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
  margin-top: 0;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.control-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.control-label-row span:last-child {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent-emerald);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent-emerald);
  cursor: pointer;
}

.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.btn-action {
  background: linear-gradient(135deg, var(--accent-emerald), #059669);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3);
}

.btn-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px -2px rgba(16, 185, 129, 0.5);
}

/* ==========================================================================
   TOOL EDITORIAL & AMAZON ASSOCIATES HARDWARE STYLES
   ========================================================================== */
.tool-editorial-wrapper {
  max-width: 1400px;
  margin: 32px auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.editorial-card {
  background: rgba(30, 41, 59, 0.75);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.editorial-card h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.editorial-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin: 20px 0 10px 0;
}

.editorial-card p {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0 0 14px 0;
}

.formula-box {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-left: 4px solid var(--accent-cyan);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 16px 0;
  font-family: var(--font-mono);
  color: #38bdf8;
  font-size: 0.95rem;
  line-height: 1.6;
  overflow-x: auto;
}

.benchmark-table-wrapper {
  overflow-x: auto;
  margin: 18px 0;
}

.benchmark-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: left;
}

.benchmark-table th {
  background: rgba(15, 23, 42, 0.7);
  color: var(--accent-emerald);
  padding: 12px 14px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
  font-weight: 700;
}

.benchmark-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

.benchmark-table tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* FAQ Accordions */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.faq-item {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-item[open] {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(15, 23, 42, 0.8);
}

.faq-summary {
  padding: 14px 18px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-content {
  padding: 0 18px 16px 18px;
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.65;
}

/* Amazon Equipment Showcase */
.amazon-showcase {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.4);
}

.amazon-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 14px;
}

.amazon-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fbbf24;
  display: flex;
  align-items: center;
  gap: 8px;
}

.amazon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.amazon-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.amazon-card:hover {
  transform: translateY(-3px);
  border-color: #f59e0b;
  box-shadow: 0 8px 20px -3px rgba(245, 158, 11, 0.2);
}

.amazon-badge {
  display: inline-block;
  align-self: flex-start;
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.amazon-product-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.amazon-product-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
  flex-grow: 1;
}

.amazon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0f172a;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 10px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.amazon-btn:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.affiliate-disclosure {
  margin-top: 16px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 6px;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.5;
  text-align: center;
}

