/* ==========================================================================
   DREAM OF STROKES - PWA APP DOWNLOAD & INSTALL STYLES
   Dark Luxury Aesthetics (Obsidian Monochrome, Platinum & Frosted Glass)
   ========================================================================== */

/* Navbar Logo Download Glow & Tooltip */
.motion-avatar-link.btn-install-pwa {
  position: relative;
  cursor: pointer;
  outline: none;
}

.motion-avatar-link.btn-install-pwa .motion-avatar {
  width: 36px !important;
  height: 36px !important;
  background: #000000 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 10px rgba(255, 255, 255, 0.06) !important;
  padding: 3px !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.motion-avatar-link.btn-install-pwa:hover .motion-avatar {
  transform: scale(1.08);
  border-color: rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.9), 0 0 18px rgba(255, 255, 255, 0.18) !important;
}

/* Subtle mini download indicator icon on the navbar avatar */
.motion-avatar-download-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 14px !important;
  height: 14px !important;
  background: #ffffff !important;
  color: #0b0c10 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 7.5px !important;
  font-weight: 800 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.8), 0 0 6px rgba(255, 255, 255, 0.25) !important;
  border: 1.5px solid #000000 !important;
  pointer-events: none;
  animation: pwaPulseBadge 2.8s infinite ease-in-out;
}

.motion-avatar-download-badge i {
  color: #0b0c10 !important;
  font-size: 7.5px !important;
  display: block !important;
}

@keyframes pwaPulseBadge {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50% { transform: scale(1.18); opacity: 1; }
}

/* Mobile App Icon Download Trigger */
.motion-logo-link.btn-install-pwa .motion-site-logo {
  background: #000000;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  padding: 2.5px;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Footer Download App Button (Luxury Framed Button - Clean Monochrome Theme)
   -------------------------------------------------------------------------- */
.footer-app-download-wrap {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-footer-download-app {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 8px 18px 8px 10px;
  border-radius: 9999px;
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  width: fit-content;
  max-width: 100%;
  font-family: inherit;
}

.btn-footer-download-app:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.65), 0 0 16px rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-footer-download-app:active {
  transform: translateY(0);
}

.btn-footer-download-app .btn-download-icon-box {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px !important;
  flex-shrink: 0;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-footer-download-app:hover .btn-download-icon-box {
  transform: scale(1.06);
  background: #ffffff;
  color: #0b0c10;
  border-color: #ffffff;
}

.btn-download-text-wrap {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.25;
}

.btn-download-subtitle {
  font-size: 9.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 500;
  margin-bottom: 2px;
}

.btn-download-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 7px;
  letter-spacing: 0.01em;
}

.btn-download-title i {
  font-size: 13px;
  color: #ffffff;
}

/* Drawer mobile item */
.drawer-item-download {
  margin-top: 4px;
}

.drawer-item-download a {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
}

.drawer-item-download a:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
}

/* Toast Completely Disabled */
.dos-pwa-toast {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Modal Pop-up Completely Disabled per User Request */
.dos-pwa-modal-backdrop,
.dos-pwa-modal {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Subtle top platinum highlight */
.dos-pwa-modal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  pointer-events: none;
}

/* Modal Close Button */
.dos-pwa-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 14px;
}

.dos-pwa-modal-close:hover {
  background: #ffffff;
  color: #0a0b0d;
  transform: scale(1.06) rotate(90deg);
}

/* Modal Header Content */
.dos-pwa-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

/* Big, Zoomed-in, Fully Visible App Logo */
.dos-pwa-app-icon-wrap {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  padding: 3px;
  box-sizing: border-box;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.dos-pwa-app-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 16px;
}

.dos-pwa-meta {
  flex: 1;
  min-width: 0;
}

.dos-pwa-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 4px 0;
  line-height: 1.22;
  letter-spacing: -0.015em;
}

.dos-pwa-tagline {
  margin: 0 0 10px 0;
  font-size: 12.5px;
  color: #94a3b8;
  font-weight: 300;
  line-height: 1.4;
  font-family: 'Poppins', sans-serif;
}

.dos-pwa-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.dos-pwa-pill {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 3px 9px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Poppins', sans-serif;
}

.dos-pwa-pill i {
  font-size: 10px;
  color: #94a3b8;
}

/* Platform detection banner */
.dos-pwa-platform-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 18px;
  box-sizing: border-box;
}

.dos-pwa-platform-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 11.5px;
  color: #94a3b8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 8px;
}

.dos-pwa-platform-name {
  color: #ffffff;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.dos-pwa-platform-sub {
  color: #64748b;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dos-pwa-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.dos-pwa-step-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: #cbd5e1;
  line-height: 1.45;
}

.dos-pwa-step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.dos-pwa-step-item strong {
  color: #ffffff;
  font-weight: 600;
}

.pwa-step-icon {
  color: #cbd5e1;
  margin: 0 3px;
}

/* Feature grid */
.dos-pwa-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 22px;
  box-sizing: border-box;
}

.dos-pwa-feat {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11.8px;
  color: #94a3b8;
  transition: background 0.2s ease, border-color 0.2s ease;
  box-sizing: border-box;
}

.dos-pwa-feat:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}

.dos-pwa-feat i {
  color: #cbd5e1;
  font-size: 12px;
  flex-shrink: 0;
}

/* Action Buttons */
.dos-pwa-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dos-pwa-btn-primary {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
  color: #090a0f;
  font-weight: 600;
  font-size: 14.5px;
  padding: 14px 22px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  cursor: pointer;
  box-shadow: 0 6px 25px rgba(255, 255, 255, 0.18), 0 2px 8px rgba(0, 0, 0, 0.6);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.01em;
}

.dos-pwa-btn-primary:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(255, 255, 255, 0.3), 0 4px 12px rgba(0, 0, 0, 0.7);
  color: #000000;
}

.dos-pwa-btn-primary:active {
  transform: translateY(0);
}

.dos-pwa-btn-secondary {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  color: #94a3b8;
  font-size: 12px;
  padding: 8px 16px;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
  font-family: 'Poppins', sans-serif;
}

.dos-pwa-btn-secondary:hover {
  color: #ffffff;
}

@media (max-width: 480px) {
  .btn-footer-download-app {
    padding: 9px 14px;
    gap: 11px;
    max-width: 100%;
    box-sizing: border-box;
  }
  .btn-download-title {
    font-size: 12.5px;
  }
  .btn-download-subtitle {
    font-size: 9.5px;
  }
  .dos-pwa-modal {
    padding: 24px 18px 22px;
    border-radius: 20px;
  }
  .dos-pwa-head {
    gap: 14px;
    margin-bottom: 18px;
  }
  .dos-pwa-app-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 16px;
  }
  .dos-pwa-title {
    font-size: 19px;
  }
  .dos-pwa-tagline {
    font-size: 11.5px;
    margin-bottom: 8px;
  }
  .dos-pwa-features-grid {
    grid-template-columns: 1fr;
    gap: 6px;
    margin-bottom: 18px;
  }
  .dos-pwa-btn-primary {
    padding: 13px 18px;
    font-size: 13.5px;
  }
}
