/* =========================================
   App Install Banner – GFXTooy
   Updated to work with navigation below banner
   ========================================= */
/* In your custom.css or theme.css */
nav.navbar {
  position: sticky;
  top: 0;
  z-index: 9999; /* Lower than banner's 99999 */
  transition: margin-top 0.45s ease; /* Smooth transition when banner appears/disappears */
}
/* Base banner */
.app-banner {
  position: fixed;
  left: 0;
  right: 0;
  top: 0; /* At the very top of the viewport */
  height: 72px; /* Fixed height */
  
  display: flex;
  align-items: center;
  gap: 12px;
  
  padding: 12px 14px;
  background: #0b1220;
  color: #ffffff;
  
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  
  z-index: 99999; /* Higher than navbar */
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.45);
  
  /* Slide-down animation */
  transform: translateY(-100%);
  transition: transform 0.45s ease;
}

/* Visible state */
.app-banner.show {
  transform: translateY(0);
}

/* When banner is visible, add margin-top to navbar */
body.banner-visible nav.navbar {
  margin-top: 72px; /* Same as banner height */
  transition: margin-top 0.45s ease;
}

/* When banner is hidden, remove margin */
body:not(.banner-visible) nav.navbar {
  margin-top: 0;
  transition: margin-top 0.45s ease;
}

/* App icon */
.app-banner img {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  flex-shrink: 0;
}

/* App info block */
.app-info {
  flex: 1;
  min-width: 0;
}

/* App name */
.app-info strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

/* Meta data */
.app-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11.5px;
  opacity: 0.85;
}

/* Meta pills */
.app-meta span {
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 6px;
  border-radius: 6px;
  white-space: nowrap;
}

/* Action button */
.app-btn {
  background: #22c55e;
  color: #000000;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

.app-btn:hover {
  background: #16a34a;
  transform: translateY(-1px);
}

/* Close button */
.close-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
}

/* Utility */
.hidden {
  display: none !important;
}

/* Responsive tweaks */
@media (max-width: 360px) {
  .app-banner {
    height: 68px; /* Slightly smaller on very small screens */
    padding: 10px 12px;
  }
  
  body.banner-visible nav.navbar {
    margin-top: 68px;
  }
  
  .app-info strong {
    font-size: 14px;
  }
  
  .app-btn {
    padding: 7px 12px;
    font-size: 13px;
  }
}