/* App Download Banner Styles */

/* Add padding to body when banner is visible */
body:has(#app-download-banner:not(.hidden)) {
  padding-top: 80px;
}

#app-download-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

#app-download-banner.show {
  transform: translateY(0);
  opacity: 1;
}

#app-download-banner.hidden {
  display: none;
}

.banner-content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.banner-logo {
  width: 60px;
  height: 60px;
  background: transparent;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
}

.banner-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.banner-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.banner-title {
  font-size: 20px;
  font-weight: bold;
  font-family: Tahoma, Geneva, sans-serif;
  color: white;
  margin: 0;
  line-height: 1.2;
}

.banner-subtitle {
  font-size: 14px;
  color: #cccccc;
  margin: 0;
  line-height: 1.2;
}

.banner-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.banner-download-btn {
  background: white;
  color: #1a1a1a;
  border: none;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}

.banner-download-btn:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

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

.banner-close-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 8px;
  opacity: 0.7;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.banner-close-btn:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  #app-download-banner {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  }
  
  .banner-download-btn {
    background: #e0e0e0;
  }
  
  .banner-download-btn:hover {
    background: #d0d0d0;
  }
}

/* Light Mode Override */
@media (prefers-color-scheme: light) {
  #app-download-banner {
    background: linear-gradient(135deg, #2a2a2a 0%, #3d3d3d 100%);
  }
}

/* Tablet Responsive */
@media (max-width: 1024px) {
  #app-download-banner {
    padding: 10px 20px;
  }
  
  .banner-logo {
    width: 55px;
    height: 55px;
    font-size: 28px;
  }
  
  .banner-title {
    font-size: 18px;
  }
  
  .banner-subtitle {
    font-size: 13px;
  }
  
  .banner-download-btn {
    padding: 10px 24px;
    font-size: 15px;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  body:has(#app-download-banner:not(.hidden)) {
    padding-top: 80px;
  }
  
  #app-download-banner {
    padding: 10px 12px;
    gap: 8px;
  }
  
  .banner-content {
    gap: 10px;
  }
  
  .banner-logo {
    width: 50px;
    height: 50px;
    font-size: 26px;
  }
  
  .banner-title {
    font-size: 16px;
  }
  
  .banner-subtitle {
    font-size: 11px;
  }
  
  .banner-actions {
    gap: 8px;
  }
  
  .banner-download-btn {
    padding: 10px 16px;
    font-size: 14px;
    white-space: nowrap;
  }
  
  .banner-close-btn {
    width: 36px;
    height: 36px;
    font-size: 24px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  #app-download-banner {
    padding: 8px 10px;
  }
  
  .banner-content {
    gap: 8px;
  }
  
  .banner-logo {
    width: 45px;
    height: 45px;
    font-size: 24px;
  }
  
  .banner-title {
    font-size: 15px;
  }
  
  .banner-subtitle {
    font-size: 10px;
  }
  
  .banner-download-btn {
    padding: 8px 12px;
    font-size: 13px;
  }
  
  .banner-close-btn {
    width: 32px;
    height: 32px;
    font-size: 22px;
  }
}

/* Slide out animation */
@keyframes slideOut {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(-100%);
    opacity: 0;
  }
}

#app-download-banner.slide-out {
  animation: slideOut 0.4s ease-in forwards;
}
