/* ========= style.css ========= */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #f0f2f5;
  color: #333;
}
/* Visually hidden (for SEO H1) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
/* Header layout */
/* Header exactly the height of the logo */
/* Page header */
.site-header {
  background: #0078d4;
  height: 180px;            /* exactly your logo’s height */
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;         /* no extra space ever */
}

/* No extra on the wrapper */
.header-content {
  margin: 0;
  padding: 0;
}

/* Make logo fill the header */
.site-logo {
  display: block;
  height: 460px;             /* stretch to fill header */
  width: auto;
  margin: 0;
  padding: 0;
}
.search-bar {
  display: block;
  width: 90%;
  max-width: 600px;
  margin: 1rem auto;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}
.ad-slot {
  background: #e9ecef;
  text-align: center;
  padding: 1rem;
  margin: 0 auto;
  max-width: 1200px;
  color: #6c757d;
}
.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  padding: 1rem;
  max-width: 1200px;
  margin: auto;
}
.card {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.logo {
  height: 50px;
  margin-bottom: 0.75rem;
}
.rename-date {
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.5rem;
}
/* Modal header styles */
.modal-header {
  text-align: center;
  margin-bottom: 1rem;
}
.modal-logo {
  display: block;
  max-height: 120px;
  width: auto;
  margin: 0 auto 0.5rem;
  object-fit: contain;
}
.modal-description {
  font-size: 1rem;
  color: #333;
  margin-bottom: 1rem;
}
.modal {
  position: fixed; /* you already have this */
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;

  z-index: 1000; /* <<< add this */
}

/* and the white box above the pills */
.modal-content {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  max-width: 500px;
  width: 100%;
  position: relative;
  max-height: 90%;
  overflow-y: auto;

  z-index: 1001; /* <<< and maybe this */
}
.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.5rem;
  color: #555;
  background: none;
  border: none;
  cursor: pointer;
}
.timeline {
  position: relative;
  margin-top: 1rem;
  padding-left: 20px;
  border-left: 2px solid #0078d4;
}
.timeline-item {
  position: relative;
  margin-bottom: 1rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -11px;
  top: 0;
  width: 8px;
  height: 8px;
  background: #0078d4;
  border-radius: 50%;
}
.timeline-item time {
  display: block;
  font-size: 0.85rem;
  color: #555;
}
.site-footer {
  background: #fff;
  border-top: 1px solid #ddd;
  padding: 1rem 0;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: #555;
  text-align: center;
}
.site-footer .footer-content {
  max-width: 800px;
  margin: auto;
  line-height: 1.4;
}
/* 1) Make cards relatively positioned */
.card {
  position: relative;
}

/* 2) Style the graveyard icon */
.grave-icon,
.tooltip {
  position: absolute;  /* you already have top/right on both */
  top: 8px;
  right: 8px;

  width: 30px !important;
  height: 30px !important;

  pointer-events: auto;
  opacity: 0.8;
}

/* ensure the inner <img> scales down */
.grave-icon img,
.tooltip img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.tooltip {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  pointer-events: none;
}

/* hide native title (optional) */
.tooltip img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: auto; /* allow hover on icon */
}

/* the actual tooltip */
.tooltip::before {
  content: attr(data-tooltip);
  position: absolute;
  top: -1.75em;
  right: 0;
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  z-index: 10;
}

/* show on hover */
.tooltip:hover::before {
  opacity: 1;
  transform: translateY(0);
}
.timeline-item.retired::before {
  background: #d9534f;  /* bootstrap “danger” red—or pick your color */
}
.ad-slot {
  display: none;
}
/* product‑type “pill” */
.product-type {
  position: absolute;
  top: 16px;
  /* 8px card padding + 15px icon + 8px gap = 31px → round up to 32px or more */
  right: 40px;   /* ← increase this from 32px to whatever gap you like */
  background: #e0e0e0;
  color: #555;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  z-index: 1;
}
.rename-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 20px;
  height: 20px;
  background: #cce4f7;       /* a much softer blue */
  /* alternatively: background: rgba(0, 120, 212, 0.3); */
  color: #005a9e;            /* a darker blue for contrast */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
  z-index: 2;
}
