/*
 * Anisuba download page styles.
 * Supplements style.css with platform cards, badges, and installation steps.
 */

.nav-links a.is-active {
  color: var(--primary-soft);
  font-weight: 600;
}
.nav-links a.is-active::after {
  width: 100%;
}

.dl-hero {
  position: relative;
  padding: 56px 0 32px;
  text-align: center;
  overflow: hidden;
}

.dl-hero-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 380px;
  background: radial-gradient(ellipse at center, rgba(25, 172, 200, 0.22) 0%, rgba(0, 229, 255, 0.05) 50%, transparent 70%);
  filter: blur(48px);
  pointer-events: none;
  z-index: 0;
}

.dl-hero .wrap {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.dl-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(25, 172, 200, 0.1);
  border: 1px solid rgba(25, 172, 200, 0.3);
  color: var(--primary-soft);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.dl-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00e5ff;
  box-shadow: 0 0 8px #00e5ff;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.dl-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--text);
}

.dl-hero h1 span.gradient-text {
  background: linear-gradient(135deg, #19acc8 0%, #00e5ff 60%, #e9f5f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dl-hero-desc {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--muted);
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto 28px;
}

/* ---------- platform cards grid ---------- */
.dl-platforms {
  padding: 20px 0 64px;
}

.dl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: stretch;
  max-width: 880px;
  margin: 0 auto;
}

.dl-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), border-color 0.3s var(--ease), box-shadow 0.35s var(--ease);
  animation: cardFadeUp 0.6s var(--ease) both;
}

.dl-card:nth-child(1) { animation-delay: 0.1s; }
.dl-card:nth-child(2) { animation-delay: 0.2s; }
.dl-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes cardFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dl-card:hover {
  transform: translateY(-6px);
  border-color: rgba(25, 172, 200, 0.45);
  box-shadow: 0 16px 40px -12px rgba(25, 172, 200, 0.22);
}

/* Featured Android Card with Gradient Border */
.dl-card.is-featured {
  background: linear-gradient(180deg, rgba(16, 35, 44, 0.95) 0%, rgba(12, 26, 34, 0.95) 100%);
  border: 1px solid rgba(25, 172, 200, 0.45);
  box-shadow: 0 12px 36px -10px rgba(25, 172, 200, 0.25);
}

.dl-card.is-featured::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  padding: 1px;
  background: linear-gradient(145deg, rgba(25, 172, 200, 0.7) 0%, rgba(0, 229, 255, 0.3) 50%, transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.dl-card.is-featured:hover {
  box-shadow: 0 20px 48px -10px rgba(0, 229, 255, 0.32);
}

/* Card Header */
.dl-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
}

.dl-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(25, 172, 200, 0.12);
  border: 1px solid rgba(25, 172, 200, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-soft);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

.dl-card:hover .dl-icon-box {
  transform: scale(1.06);
  background: rgba(25, 172, 200, 0.2);
  color: #00e5ff;
}

.fa-platform-icon {
  font-size: 30px;
  line-height: 1;
}

.dl-meta-item .fa-solid,
.dl-meta-item .fa-brands {
  color: var(--primary-soft);
  font-size: 13px;
}

.dl-check {
  color: #3ddc84;
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 1px;
}

.dl-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dl-tag-active {
  background: rgba(0, 229, 255, 0.14);
  border: 1px solid rgba(0, 229, 255, 0.35);
  color: #5cf1ff;
}

.dl-tag-soon {
  background: rgba(255, 184, 0, 0.1);
  border: 1px solid rgba(255, 184, 0, 0.28);
  color: #ffca42;
}

/* Card Info */
.dl-platform-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.dl-platform-sub {
  font-size: 13px;
  color: var(--primary-soft);
  font-weight: 500;
  margin-bottom: 14px;
}

.dl-meta-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 12px;
  color: var(--muted);
  background: rgba(7, 16, 22, 0.6);
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(174, 228, 246, 0.08);
  margin-bottom: 20px;
}

.dl-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.dl-meta-item svg {
  color: var(--primary);
  opacity: 0.9;
}

/* Feature List */
.dl-features {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

/* Live Download Counter Badge */
.dl-live-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text);
  position: relative;
  overflow: visible;
}

.dl-live-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.dl-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00e5ff;
  box-shadow: 0 0 8px #00e5ff;
  animation: pulseDot 1.8s infinite ease-in-out;
}

.dl-live-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  color: var(--primary-soft);
}

.dl-count-num {
  font-size: 16px;
  font-weight: 800;
  color: #00e5ff;
  font-variant-numeric: tabular-nums;
  display: inline-block;
  transition: transform 0.2s ease, color 0.2s ease;
}

.dl-count-num.bump {
  animation: countBump 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes countBump {
  0% { transform: scale(1); }
  40% { transform: scale(1.38); color: #ffffff; text-shadow: 0 0 12px #00e5ff; }
  100% { transform: scale(1); color: #00e5ff; }
}

.dl-plus-one {
  position: absolute;
  right: 18px;
  top: -8px;
  font-size: 13px;
  font-weight: 800;
  color: #00e5ff;
  text-shadow: 0 0 10px #00e5ff;
  pointer-events: none;
  animation: floatPlusOne 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  z-index: 10;
}

@keyframes floatPlusOne {
  0% { opacity: 1; transform: translateY(0) scale(0.8); }
  50% { opacity: 1; transform: translateY(-16px) scale(1.15); }
  100% { opacity: 0; transform: translateY(-32px) scale(0.9); }
}

.dl-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.45;
}

.dl-check {
  color: #00e5ff;
  flex-shrink: 0;
  margin-top: 2px;
}

.dl-clock {
  color: #ffca42;
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.85;
}

/* Button & Actions */
.dl-card-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-download-primary {
  width: 100%;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 700;
  background: linear-gradient(135deg, #1cb9d6 0%, #00d2f7 50%, #0e8ba5 100%);
  color: #04141a;
  border: none;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  box-shadow: 0 10px 30px -8px var(--glow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s var(--ease);
}

.btn-download-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -8px rgba(0, 229, 255, 0.45);
  filter: brightness(1.06);
}

.btn-download-soon {
  width: 100%;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 184, 0, 0.35);
  color: #ffe082;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.btn-download-soon:hover {
  background: rgba(255, 184, 0, 0.1);
  border-color: rgba(255, 184, 0, 0.55);
}

.dl-card-note {
  font-size: 11.5px;
  color: var(--muted-dim);
  text-align: center;
  margin-top: 4px;
}

/* ---------- step by step install guide ---------- */
.dl-guide {
  padding: 60px 0;
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.dl-guide-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
}

.dl-guide-head h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  margin-bottom: 12px;
}

.dl-guide-head p {
  color: var(--muted);
  font-size: 15px;
}

.dl-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.dl-step-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 24px;
  position: relative;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.dl-step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(25, 172, 200, 0.35);
}

.dl-step-number {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(25, 172, 200, 0.25) 0%, rgba(0, 229, 255, 0.1) 100%);
  border: 1px solid rgba(25, 172, 200, 0.35);
  color: #00e5ff;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.dl-step-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.dl-step-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* ---------- faq on download page ---------- */
.dl-faq {
  padding: 64px 0 80px;
}

/* ---------- toast alert for coming soon ---------- */
.dl-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  opacity: 0;
  pointer-events: none;
  background: rgba(16, 35, 44, 0.96);
  border: 1px solid rgba(255, 184, 0, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(255, 184, 0, 0.15);
  backdrop-filter: blur(12px);
  padding: 14px 22px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text);
  z-index: 1000;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
  max-width: 90vw;
  text-align: left;
}

.dl-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.dl-toast.is-success {
  border-color: rgba(0, 229, 255, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(0, 229, 255, 0.2);
}

.dl-toast.is-success .dl-toast-icon {
  color: #00e5ff;
}

.dl-toast a {
  color: #5cf1ff;
  text-decoration: underline;
  font-weight: 600;
}

/* ---------- responsive media queries ---------- */
@media (max-width: 992px) {
  .dl-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }
  .dl-steps-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dl-card,
  .btn-download-primary,
  .dl-step-card,
  .dl-badge-dot {
    animation: none !important;
    transition: none !important;
  }
}
