/* ═══════════════════════════════════════════════════════════════
   downloads.css — Page-specific styles for downloads.html
   Requires: style.css (base + Tailwind utilities)
   ═══════════════════════════════════════════════════════════════ */

/* ── Animations ─────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes expandDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 800px;
  }
}

.fade-in,
.fade-in-2,
.fade-in-3 {
  opacity: 1;
}

/* ── Section heading ─────────────────────────── */
.section-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
  padding: 0 4px;
  margin: 0 0 10px 0;
}

/* ── Download Row Card ──────────────────────── */
.dl-row {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  transition:
    border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 10px;
  will-change: transform, box-shadow;
}
.dl-row:last-child {
  margin-bottom: 0;
}
.dl-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}
.dl-row.is-open {
  border-color: #2563eb;
  box-shadow: 0 4px 28px rgba(37, 99, 235, 0.1);
  transform: translateY(0);
}
.dl-row.is-open.green {
  border-color: #16a34a;
  box-shadow: 0 4px 28px rgba(22, 163, 74, 0.1);
}
.dl-row.is-open.dark {
  border-color: #334155;
  box-shadow: 0 4px 28px rgba(51, 65, 85, 0.1);
}
.dl-row.is-open.indigo {
  border-color: #4f46e5;
  box-shadow: 0 4px 28px rgba(79, 70, 229, 0.1);
}
.dl-row.is-open.orange {
  border-color: #ea580c;
  box-shadow: 0 4px 28px rgba(234, 88, 12, 0.1);
}

/* ── Card trigger row ───────────────────────── */
.dl-trigger {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  transition: background 0.15s;
  text-decoration: none;
  color: inherit;
  font-family: inherit;
}
.dl-trigger:hover {
  background: #f8fafc;
}
.dl-trigger.is-link:hover {
  background: #eff6ff;
}

.dl-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dl-info {
  flex: 1;
  min-width: 0;
}
.dl-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 3px 0;
}
.dl-sub {
  font-size: 13px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}
.dl-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: 99px;
  white-space: nowrap;
  flex-shrink: 0;
}
.badge-soon {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}
.badge-pro {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}
.badge-ai {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.badge-free {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}
.badge-oss {
  background: #1e293b;
  color: #e2e8f0;
  border: 1px solid #475569;
}
.badge-store {
  background: #eff6ff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
}
.badge-trial {
  background: #fdf4ff;
  color: #7e22ce;
  border: 1px solid #e9d5ff;
}
.badge-linux {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.dl-arrow {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: #94a3b8;
  flex-shrink: 0;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.25s;
}
.dl-trigger:hover .dl-arrow {
  background: #e0e7ff;
  color: #2563eb;
}
.dl-row.is-open .dl-arrow {
  background: #2563eb;
  color: #fff;
  transform: rotate(90deg);
}
.dl-row.is-open.green .dl-arrow {
  background: #16a34a;
}
.dl-row.is-open.dark .dl-arrow {
  background: #334155;
}
.dl-row.is-open.indigo .dl-arrow {
  background: #4f46e5;
}
.dl-row.is-open.orange .dl-arrow {
  background: #ea580c;
}

/* ── Expandable panel (smooth close) ────────── */
.dl-panel {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  border-top: 1.5px solid transparent;
  transition:
    grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #fafbfc;
}
.dl-panel > * {
  min-height: 0;
}
.dl-row.is-open .dl-panel {
  grid-template-rows: 1fr;
  border-top-color: #e2e8f0;
}
.dl-panel-inner {
  padding: 0 28px;
  transition: padding 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.dl-row.is-open .dl-panel-inner {
  padding: 28px 28px 32px;
}

/* Feature list inside panel */
.panel-feat {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  color: #334155;
}
.panel-feat.muted {
  color: #94a3b8;
}
.panel-feat svg {
  flex-shrink: 0;
  margin-top: 1px;
}

/* Meta chips */
.meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.meta-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}
.meta-chip svg {
  flex-shrink: 0;
}

/* Info note */
.panel-note {
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 12px;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}
.panel-note svg {
  flex-shrink: 0;
  margin-top: 1px;
}

/* Primary CTA button */
.panel-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  color: #fff;
  transition:
    filter 0.2s,
    transform 0.15s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.panel-cta:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}
.panel-cta:active {
  transform: translateY(0);
}

/* Code block */
.code-block {
  background: #1e293b;
  color: #94a3b8;
  border-radius: 12px;
  padding: 16px 20px;
  font-family: "Courier New", monospace;
  font-size: 12px;
  line-height: 1.8;
  margin-bottom: 20px;
}
.code-block .cm {
  color: #475569;
}
.code-block .co {
  color: #7dd3fc;
}

/* Disabled row */
.dl-row.disabled {
  opacity: 0.55;
}
.dl-row.disabled .dl-trigger {
  cursor: not-allowed;
}
.dl-row.disabled .dl-trigger:hover {
  background: transparent;
}
.dl-row.disabled .dl-arrow {
  display: none;
}

/* Tooltip copy */
.tooltip {
  position: relative;
}
.tooltip::after {
  content: "Copied!";
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #fff;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  white-space: nowrap;
}
.tooltip.active::after {
  opacity: 1;
  top: -24px;
}

/* VirusTotal row */
.vt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 16px;
  text-decoration: none;
  margin-bottom: 8px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.vt-row:hover {
  border-color: #2563eb;
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.08);
}

/* SmartScreen collapsible */
.ss-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  transition: color 0.2s;
  width: 100%;
  margin-top: 4px;
}
.ss-toggle:hover {
  color: #475569;
}
.ss-toggle svg {
  transition: transform 0.25s;
}
.ss-toggle.open svg {
  transform: rotate(180deg);
}

.ss-content {
  display: none;
  margin-top: 12px;
}
.ss-content.open {
  display: block;
}

.slider-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.slider-container::-webkit-scrollbar {
  display: none;
}
.slide {
  scroll-snap-align: center;
  flex: none;
  width: 100%;
}

/* Trust bar */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  border-top: 1.5px solid #e2e8f0;
  padding-top: 36px;
  margin-top: 56px;
  font-size: 13px;
  color: #64748b;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 480px) {
  .dl-trigger {
    padding: 16px 18px;
    gap: 12px;
  }
  .dl-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
  .dl-title {
    font-size: 14px;
  }
  .dl-sub {
    font-size: 12px;
  }
  .dl-panel-inner {
    padding-left: 18px;
    padding-right: 18px;
  }
  .dl-row.is-open .dl-panel-inner {
    padding: 20px 18px 24px;
  }
  .meta-chip {
    padding: 6px 10px;
    font-size: 11px;
  }
  .panel-cta {
    padding: 14px 18px;
    font-size: 14px;
  }
  .trust-bar {
    gap: 16px;
    font-size: 12px;
  }
}

/* ── Noscript fallback ──────────────────────── */
noscript .dl-panel {
  grid-template-rows: 1fr;
  opacity: 1;
}
noscript .dl-panel-inner {
  padding: 28px 28px 32px;
}
noscript .dl-panel {
  border-top-color: #e2e8f0;
}
