/**
 * CRS PRESENCE SIGNALS
 * Hardware-style status indicators (no animation, no urgency)
 */

/* ============================================
   HEADER SQUARE LOGO
   ============================================ */

.crs-square-logo {
  display: inline-flex;
  align-items: center;
  margin-right: 1rem;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.crs-square-logo:hover {
  opacity: 1;
}

.crs-square-logo img {
  width: 32px;
  height: 32px;
  display: block;
}

/* Hide on mobile to preserve space */
@media (max-width: 767px) {
  .crs-square-logo {
    display: none;
  }
}

/* ============================================
   BOOK STATUS INDICATOR (LED Logic)
   ============================================ */

.book-status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(127, 255, 0, 0.05);
  border: 1px solid rgba(127, 255, 0, 0.3);
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s ease;
  margin-left: 1rem;
}

.book-status-indicator:hover {
  background: rgba(127, 255, 0, 0.1);
}

.status-led {
  width: 6px;
  height: 6px;
  background: var(--crs-green, #7fff00);
  border-radius: 50%;
  /* No pulse, no glow - steady state only */
}

.status-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--crs-green, #7fff00);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Hide on mobile (nav already has BOOK) */
@media (max-width: 1023px) {
  .book-status-indicator {
    display: none;
  }
}

/* ============================================
   INFRASTRUCTURE IMAGERY (Functional Presence)
   ============================================ */

.infrastructure-image {
  width: 100%;
  max-width: 1200px;
  height: auto;
  margin: 3rem auto 0;
  display: block;
  opacity: 0.85;
}

.infrastructure-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   CONTEXTUAL HARDWARE IMAGERY
   ============================================ */

.hardware-image {
  max-width: 800px;
  margin: 2rem 0;
  opacity: 0.9;
}

.hardware-image img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid rgba(245, 245, 245, 0.1);
}

/* Ensure images never appear above H1 */
section > .hardware-image:first-child {
  display: none;
}

/* ============================================
   PAYMENT TERMS PANEL (Rack Authority)
   ============================================ */

.payment-terms-panel {
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(127, 255, 0, 0.3);
  border-left: 4px solid var(--crs-green, #7fff00);
  max-width: 800px;
  margin: 0 auto;
}

.panel-header {
  background: rgba(127, 255, 0, 0.05);
  border-bottom: 1px solid rgba(127, 255, 0, 0.2);
  padding: 1rem 1.5rem;
}

.panel-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--crs-green, #7fff00);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0;
}

.panel-content {
  padding: 1.5rem;
}

.payment-rule {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 0.75rem 0;
}

.rule-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  font-weight: 700;
  color: rgba(245, 245, 245, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.rule-label::before {
  content: '●';
  color: var(--crs-green, #7fff00);
  margin-right: 0.75rem;
  font-size: 0.5rem;
  vertical-align: middle;
}

.rule-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--crs-green, #7fff00);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: right;
}

.panel-divider {
  height: 1px;
  background: rgba(127, 255, 0, 0.15);
  margin: 1rem 0;
}

.panel-note {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(245, 245, 245, 0.1);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(245, 245, 245, 0.8);
}

.panel-note p {
  margin: 0;
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .payment-rule {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .rule-value {
    text-align: left;
    padding-left: 1.5rem;
  }
  
  .panel-content {
    padding: 1rem;
  }
}
