/* =========================================================
   CRS TECHNICAL FOOTER
   Purpose: Service manual / datasheet footer format
   Aesthetic: Equipment documentation, not brand prose
   Load: After all other footer CSS
   ========================================================= */

/* ==========================================
   CONTAINER: Technical Metadata Block
   ========================================== */

footer.crs-footer-technical {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  line-height: 1.65;
  color: #8f8f8f; /* Low-contrast gray */
  background: #0f0f0f; /* Deep black */
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 32px 24px;
  letter-spacing: 0.02em;
  max-width: 100%;
  margin: 0;
}

/* ==========================================
   REVISION HEADER: Document Version Control
   ========================================== */

.footer-revision-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-revision-id {
  font-size: 9px;
  color: #a8a8a8;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0;
}

.footer-revision-date {
  font-size: 9px;
  color: #7a7a7a;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 400;
  margin: 0;
}

/* ==========================================
   SECTION LABEL: Small Print Header
   ========================================== */

.footer-section-label {
  font-size: 10px;
  color: #bdbdbd;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 600;
  opacity: 0.85;
}

/* ==========================================
   DATA BLOCKS: Stacked Metadata
   ========================================== */

.footer-data-block {
  margin-bottom: 20px;
  line-height: 1.65;
}

.footer-data-label {
  font-size: 10px;
  color: #a8a8a8;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 600;
}

.footer-data-line {
  font-size: 11.5px;
  color: #8f8f8f;
  margin: 0;
  padding: 0;
  line-height: 1.65;
}

/* ==========================================
   LINKS: Subtle, No Button Styling
   ========================================== */

.footer-link {
  color: #a8a8a8;
  text-decoration: none;
  border-bottom: 1px solid rgba(168, 168, 168, 0.3);
  transition: color 0.2s, border-color 0.2s;
}

.footer-link:hover {
  color: #d4a017; /* Subtle gold hover */
  border-bottom-color: rgba(212, 160, 23, 0.6);
}

/* ==========================================
   SIGNATURE BLOCK: System Credits
   ========================================== */

.footer-signature-block {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-highlight {
  color: #d4a017; /* Standby gold */
  font-weight: 800;
  letter-spacing: 0.05em;
}

/* ==========================================
   MOBILE: Maintain Readability
   ========================================== */

@media (max-width: 768px) {
  footer.crs-footer-technical {
    padding: 24px 16px;
    font-size: 11px;
  }
  
  .footer-revision-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .footer-revision-id,
  .footer-revision-date {
    font-size: 8px;
  }
  
  .footer-section-label {
    font-size: 9px;
  }
  
  .footer-data-label {
    font-size: 9px;
  }
  
  .footer-data-line {
    font-size: 11px;
  }
}

/* ==========================================
   ANTI-DRIFT: Lock Typography
   ========================================================= */

footer.crs-footer-technical * {
  box-sizing: border-box;
}

footer.crs-footer-technical p {
  margin: 0;
  padding: 0;
}

/* Remove any inherited brand styling */
footer.crs-footer-technical .footer-data-block:last-child {
  margin-bottom: 0;
}

/* ==========================================
   REVISION STAMP: Manufacturing Metadata
   Absolute bottom - like laser-etched chassis serial
   ========================================== */

.footer-revision-stamp {
  background: #0a0a0a; /* Slightly darker than footer */
  padding: 8px 24px;
  text-align: right; /* Edge-aligned like serial number */
  border-top: 1px solid rgba(255, 255, 255, 0.03); /* Barely visible seam */
}

.revision-stamp-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px; /* Smallest text size on page */
  color: #5a5a5a; /* Low contrast - present but not calling attention */
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 400;
  margin: 0;
  opacity: 0.6; /* Further reduce visibility */
}

/* Mobile: Even smaller, centered */
@media (max-width: 768px) {
  .footer-revision-stamp {
    padding: 6px 16px;
    text-align: center;
  }
  
  .revision-stamp-text {
    font-size: 7px;
  }
}
/* =========================================================
   CRS RACK FOOTER TERMINATION PANEL
   Purpose: 1U rack unit that "closes" the rack case
   Asset: transparentMaster Rack BOTTOM.png from Cloudflare R2
   Load: After all other CSS
   ========================================================= */

/* ==========================================
   CONTAINER: Rack Unit at Bottom
   Physics: Flush to content, no gaps
   ========================================== */

.rack-footer-container {
  /* Sits at the very bottom of the page */
  width: 100%;
  background-color: #1a1a1a; /* Dark Charcoal - matches header */
  overflow: hidden; /* Clean edges */
  line-height: 0; /* Removes ghost spacing below image */
  position: relative;
  
  /* Top seam - creates the joint between content and footer unit */
  border-top: 2px solid #000;
  
  /* Ensure no gap from content above */
  margin-top: 0;
}

/* ==========================================
   IMAGE: Full-Width Desktop Rack Unit
   ========================================== */

.rack-footer-img {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: crisp-edges; /* Sharp rendering for technical asset */
  
  /* Crop right side to hide CRS badge */
  object-fit: cover;
  object-position: left center;
  max-width: 85%; /* Hide the rightmost 15% where the badge is */
}

/* ==========================================
   MOBILE: Center-Crop to Keep Text Readable
   DO NOT shrink - keep fixed height and center
   ========================================== */

@media (max-width: 768px) {
  .rack-footer-container {
    height: 80px; /* Fixed readable height (matches 1U rack unit) */
    overflow: hidden; /* Crop sides */
  }
  
  .rack-footer-img {
    width: auto; /* Let it be wider than screen */
    height: 80px; /* Match container height */
    
    /* Center the "OX4 STUDIO NETWORK" screen */
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    
    /* Ensure minimum width to keep text readable */
    min-width: 100%; /* Don't let it be narrower than screen */
  }
}

/* ==========================================
   TABLET: Intermediate Responsive Step
   ========================================== */

@media (min-width: 769px) and (max-width: 1024px) {
  .rack-footer-container {
    height: 100px; /* Slightly taller for tablets */
  }
  
  .rack-footer-img {
    height: 100px;
  }
}

/* ==========================================
   ANTI-DRIFT: Lock the Physics
   ========================================== */

.rack-footer-container * {
  box-sizing: border-box;
}

/* Remove any inherited margins that could break alignment */
.rack-footer-container img {
  margin: 0;
  padding: 0;
  border: 0;
}

/* Ensure footer content sits flush against the termination panel */
footer.crs-footer {
  margin-bottom: 0 !important;
  padding-bottom: 2rem; /* Add some breathing room inside footer */
}
/**
 * CRS FOOTER FIXES (Audit Response)
 * Purpose: Reduce footer logo size, improve text hierarchy
 * Audit Issue #3: Footer logo too large (250px → 100px)
 */

/* Reduce footer brand stamp from 250px to 100px */
.footer-signature img,
.brand-stamp {
  max-width: 100px !important;
  height: auto !important;
  width: auto !important;
}

/* Increase footer credit text size */
.footer-credit {
  font-size: 13px !important;
  margin-top: 0.75rem !important;
}

/* Increase footer terminal text size from 10px to 11px */
.footer-grid {
  font-size: 11px !important;
}

/* Better visual balance */
.footer-signature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 0;
}
