/* ============================================================
   ArcReady — adsense.css
   Cohesive AdSense styles using native style variables
   ============================================================ */

/* ── SPONSOR AD SLOTS ───────────────────────────────────────── */
.arcready-adslot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 16px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  width: 100%;
  margin: 24px 0;
  box-sizing: border-box;
}

.arcready-adslot:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-deep);
}

/* Left-border dynamic standard accents */
.arcready-adslot.adslot--safety,
.arcready-adslot.adslot--workplace {
  border-left: 5px solid var(--red);
}

.arcready-adslot.adslot--theory,
.arcready-adslot.adslot--nfpa {
  border-left: 5px solid var(--blue);
}

.arcready-adslot.adslot--lab {
  border-left: 5px solid var(--amber);
}

.arcready-adslot.adslot--general {
  border-left: 5px solid var(--charcoal);
}

/* Technical micro-label */
.adslot-telemetry {
  position: absolute;
  top: 8px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.55;
  user-select: none;
  pointer-events: none;
}

.adslot-telemetry-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--charcoal);
}

/* Accent indicator colors matching the theme */
.adslot--safety .adslot-telemetry-dot,
.adslot--workplace .adslot-telemetry-dot {
  background: var(--red);
  box-shadow: 0 0 6px var(--red);
  animation: adslot-pulse 1.8s infinite;
}

.adslot--theory .adslot-telemetry-dot,
.adslot--nfpa .adslot-telemetry-dot {
  background: var(--blue);
  box-shadow: 0 0 6px var(--blue);
  animation: adslot-pulse 1.8s infinite;
}

.adslot--lab .adslot-telemetry-dot {
  background: var(--amber);
  box-shadow: 0 0 6px var(--amber);
  animation: adslot-pulse 1.8s infinite;
}

.adslot-telemetry-text {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--charcoal);
}

/* Ad content area */
.adslot-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* Premium dev/local placeholder mockup */
.adslot-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  padding: 16px 8px;
}

.adslot-placeholder-title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  color: var(--charcoal);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.75;
}

.adslot-placeholder-size {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--gray-text);
}

/* Layout heights for different sizes */
.arcready-adslot.adslot--horizontal {
  min-height: 90px;
}

.arcready-adslot.adslot--sidebar {
  min-height: 250px;
}

@keyframes adslot-pulse {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

/* ── COOKIE CONSENT BANNER ───────────────────────────────────── */
.arcready-consent-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 48px);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--gray-border);
  border-left: 5px solid var(--red);
  border-radius: 16px;
  box-shadow: var(--shadow-deep);
  z-index: 10000;
  padding: 20px;
  box-sizing: border-box;
  transform: translateY(120px) scale(0.95);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.arcready-consent-banner.banner--visible {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.consent-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.consent-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.consent-title {
  font-family: var(--font-base);
  font-size: 15px;
  font-weight: 800;
  color: var(--charcoal);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.consent-body {
  font-family: var(--font-base);
  font-size: 12px;
  color: var(--gray-text);
  line-height: 1.5;
  margin: 0 0 16px;
}

.consent-body a {
  color: var(--blue);
  text-decoration: underline;
}

.consent-body a:hover {
  color: var(--blue-dark);
}

.consent-actions {
  display: flex;
  gap: 10px;
}

.consent-btn {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--radius-btn);
  font-family: var(--font-base);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  box-sizing: border-box;
  border: 1px solid transparent;
}

.consent-btn--accept {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.consent-btn--accept:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.consent-btn--decline {
  background: transparent;
  border-color: var(--gray-border);
  color: var(--gray-text);
}

.consent-btn--decline:hover {
  background: var(--gray-light);
  color: var(--charcoal);
}

/* ── LAB EDUCATIONAL REFERENCE & TELEMETRY HUB ──────────────── */
.arcready-adsense-sandwich {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
  width: 100%;
}

.arcready-educational-hub {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
}

.hub-header {
  background: var(--gray-light);
  border-bottom: 1px solid var(--gray-mid);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.hub-title-wrap {
  display: flex;
  flex-direction: column;
}

.hub-eyebrow {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red);
}

/* Dynamic eyebrow colors matching the context standard */
.adslot--safety .hub-eyebrow,
.adslot--workplace .hub-eyebrow {
  color: var(--red);
}

.adslot--theory .hub-eyebrow,
.adslot--nfpa .hub-eyebrow {
  color: var(--blue);
}

.adslot--lab .hub-eyebrow {
  color: var(--amber);
}

.hub-title {
  font-family: var(--font-base);
  font-size: 15px;
  font-weight: 800;
  color: var(--charcoal);
  margin: 2px 0 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.hub-tabs {
  display: flex;
  background: var(--gray-mid);
  padding: 3px;
  border-radius: 6px;
}

.hub-tab {
  border: none;
  background: transparent;
  padding: 6px 14px;
  font-family: var(--font-base);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-text);
  cursor: pointer;
  border-radius: 4px;
  transition: var(--transition);
}

.hub-tab.active {
  background: var(--white);
  color: var(--charcoal);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.hub-content {
  padding: 20px 24px;
  min-height: 150px;
  box-sizing: border-box;
}

.hub-panel {
  display: none;
  animation: hub-fade 0.25s ease-out;
}

.hub-panel.active {
  display: block;
}

.hub-panel h4 {
  font-family: var(--font-base);
  font-size: 13px;
  font-weight: 700;
  color: var(--charcoal);
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hub-panel p {
  font-family: var(--font-base);
  font-size: 13px;
  color: var(--gray-text);
  line-height: 1.6;
  margin: 0 0 16px;
}

.hub-panel p:last-child {
  margin-bottom: 0;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 16px;
}

.hub-col {
  display: flex;
  flex-direction: column;
}

.hub-list {
  padding-left: 20px;
  margin: 0 0 16px;
}

.hub-list li {
  font-family: var(--font-base);
  font-size: 13px;
  color: var(--gray-text);
  margin-bottom: 8px;
  line-height: 1.5;
  list-style: decimal;
}

.hub-table-wrap {
  border: 1px solid var(--gray-mid);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 12px;
}

.hub-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.hub-table th {
  background: var(--gray-light);
  color: var(--charcoal);
  font-weight: 700;
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--gray-mid);
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hub-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--gray-mid);
  color: var(--gray-text);
  font-family: var(--font-base);
}

.hub-table tr:last-child td {
  border-bottom: none;
}

.hub-table tr:nth-child(even) td {
  background: #FAFAFA;
}

.hub-table td strong {
  color: var(--charcoal);
  font-family: var(--font-mono);
  font-size: 11px;
}

@keyframes hub-fade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .arcready-consent-banner {
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
    padding: 16px;
  }
  .hub-header {
    padding: 12px 16px;
    flex-direction: column;
    align-items: flex-start;
  }
  .hub-tabs {
    width: 100%;
  }
  .hub-tab {
    flex: 1;
    text-align: center;
    padding: 6px 4px;
    font-size: 10px;
  }
}
