/*
  products.css
  Shared styles for product pages and download-related pages.

  Notes:
  - Depends on CSS variables defined in site.css (e.g. --text, --muted, --muted2, --radius).
  - Keep selectors scoped to product/download components to avoid global side effects.
*/

/* =============================
   Screenshots grid (product pages)
============================= */

.shots {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 980px) {
  .shots {
    grid-template-columns: 1fr;
  }
}

.shot {
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(17, 28, 53, 0.35);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

.shot figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* =============================
   Tabs
============================= */

/* Product-page Archicad selector */
.tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 18px 0;
}

.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.tab.active {
  background: rgba(255, 255, 255, 0.10);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.22);
}

/* Download-page Archicad selector */
.acTabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 18px;
}

.acTab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  text-decoration: none;
  color: var(--text);
}

.acTab.active {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.22);
}

/* =============================
   Download cards (product pages + download page)
============================= */

/* Product page: two-column layout */
.dlGrid {
  grid-template-columns: repeat(2, 1fr);
  align-items: stretch;
}

@media (max-width: 980px) {
  .dlGrid {
    grid-template-columns: 1fr;
  }
}

.dlCard {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: linear-gradient(180deg, rgba(17, 28, 53, 0.48), rgba(14, 23, 48, 0.36));
  padding: 18px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.dlTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.dlBadge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  white-space: nowrap;
}

.dlBadge.ok {
  color: #07101f;
  border: none;
  background: linear-gradient(135deg, rgba(102, 214, 255, 0.95), rgba(140, 255, 200, 0.95));
}

.dlBadge.soon {
  color: var(--muted);
}

.dlMuted {
  margin: 0 0 12px 0;
  color: var(--muted);
  font-size: 14px;
}

.dlBtns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Disabled buttons matching existing .btn shape */
.btn.disabled {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

.dlSmall {
  margin-top: 12px;
  color: var(--muted2);
  font-size: 12px;
}

/* =============================
   Download page layout
============================= */

.dlRow {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
}

.dlItems {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 980px) {
  .dlItems {
    grid-template-columns: 1fr;
  }
}

.dlItem {
  position: relative;
}

.dlMeta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.dlLinks {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

.dlSmallLink {
  opacity: 0.9;
  text-decoration: none;
}

.dlSmallLink:hover {
  opacity: 1;
}

.dlNote {
  color: var(--muted);
  font-size: 14px;
  margin-top: 10px;
}
