/**
 * Uses Page - Dedicated SRE Workbench Blueprint Stylesheet
 */
:root {
  --manifest-grid: rgba(66, 133, 244, 0.03);
}

html.dark-theme, html.dark {
  --manifest-grid: rgba(255, 255, 255, 0.03);
}

.uses-blueprint {
  position: relative;
  z-index: 1;
  background-color: var(--bg-1, #101214) !important; /* Mask canvas */
  background-image: 
    linear-gradient(var(--manifest-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--manifest-grid) 1px, transparent 1px);
  background-size: 40px 40px;
  background-attachment: fixed;
  min-height: 100vh;
}

#main {
  position: relative;
  z-index: 10;
  padding: 120px 24px 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.uses-header {
  margin-bottom: 60px;
}

.inventory-section {
  margin-bottom: 80px;
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.item-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px;
  border-radius: 12px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

html.light .item-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.item-card:hover {
  border-color: var(--ds-text-brand, #0052CC);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

html.light .item-card:hover {
  box-shadow: 0 12px 30px rgba(0, 82, 204, 0.1);
}

.item-tag {
  font-family: var(--font-mono, monospace);
  font-size: 0.65rem;
  color: var(--ds-status-info, #0052CC);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.item-tag::before {
  content: "[";
  opacity: 0.5;
}

.item-tag::after {
  content: "]";
  opacity: 0.5;
}

.item-title {
  font-size: 1.25rem;
  margin: 0 0 12px 0;
  font-weight: 600;
  color: var(--text-primary, #ffffff);
}

html.light .item-title {
  color: #172B4D;
}

.item-rationale {
  font-size: 0.9rem;
  color: var(--text-secondary, rgba(255, 255, 255, 0.7));
  line-height: 1.6;
  margin: 0 0 16px 0;
  flex-grow: 1;
}

html.light .item-rationale {
  color: #42526E;
}

.adr-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--font-mono, monospace);
  font-size: 0.6rem;
  background: var(--ds-text-brand, #0052CC);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.rationale-header {
  font-family: var(--font-mono, monospace);
  font-size: 0.7rem;
  color: var(--text-primary, #ffffff);
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

html.light .rationale-header {
  color: #172B4D;
}

.rationale-header::before {
  content: "STA_LOG";
  background: var(--ds-status-info-bg, rgba(0, 82, 204, 0.1));
  padding: 2px 6px;
  border-radius: 2px;
  font-size: 0.6rem;
  color: var(--ds-text-brand, #0052CC);
  font-weight: 700;
}

.stack-updated-tag {
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  color: var(--ds-status-info, #0052CC);
  margin-top: 12px;
  display: block;
  font-weight: 600;
}
