/* ========================================
   MOBILE APP DOWNLOAD BANNER
   ======================================== */

/* Smart App Banner - Shows on mobile only */
.app-download-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #003087 0%, #001a4d 100%);
  color: white;
  padding: 1rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
  z-index: 99998;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: none;
}

.app-download-banner.show {
  transform: translateY(0);
  display: block;
}

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

.app-banner-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.app-banner-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  flex-shrink: 0;
}

.app-banner-info {
  flex: 1;
  min-width: 0;
}

.app-banner-title {
  font-size: 1rem;
  font-weight: bold;
  margin: 0 0 0.25rem 0;
  line-height: 1.2;
}

.app-banner-subtitle {
  font-size: 0.75rem;
  opacity: 0.9;
  margin: 0;
  line-height: 1.2;
}

.app-banner-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.app-banner-btn {
  background: #C8102E;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  font-size: 0.875rem;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.app-banner-btn:hover {
  background: #a50d24;
  transform: scale(1.05);
  color: white;
}

.app-banner-close {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  opacity: 0.7;
  transition: opacity 0.3s;
  line-height: 1;
}

.app-banner-close:hover {
  opacity: 1;
}

/* Floating Download Button (Alternative Style) */
.app-download-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #C8102E, #a50d24);
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(200,16,46,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99997;
  transition: all 0.3s;
  animation: pulse 2s infinite;
}

.app-download-fab.show {
  display: flex;
}

.app-download-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(200,16,46,0.7);
}

.app-download-fab i {
  color: white;
  font-size: 1.5rem;
}

.app-download-fab .badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #28a745;
  color: white;
  font-size: 0.6rem;
  padding: 0.25rem 0.4rem;
  border-radius: 10px;
  font-weight: bold;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 6px 20px rgba(200,16,46,0.5);
  }
  50% {
    box-shadow: 0 6px 30px rgba(200,16,46,0.8);
  }
}

/* Top Banner Style (Alternative) */
.app-download-top-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #C8102E, #a50d24);
  color: white;
  padding: 0.75rem 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  z-index: 99998;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: none;
}

.app-download-top-banner.show {
  transform: translateY(0);
  display: block;
}

.app-top-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 1rem;
}

.app-top-banner-text {
  flex: 1;
  font-size: 0.875rem;
}

.app-top-banner-text strong {
  font-weight: bold;
}

/* Modal Popup Style */
.app-download-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.8);
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.app-download-modal.show {
  display: flex;
}

.app-modal-content {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
  position: relative;
  animation: modalSlideUp 0.4s ease;
}

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

.app-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
  line-height: 1;
  padding: 0;
}

.app-modal-icon {
  width: 100px;
  height: 100px;
  border-radius: 20px;
  margin: 0 auto 1rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.app-modal-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #003087;
  margin-bottom: 0.5rem;
}

.app-modal-subtitle {
  color: #666;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.app-modal-features {
  text-align: left;
  margin-bottom: 1.5rem;
}

.app-modal-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.app-modal-feature i {
  color: #28a745;
  font-size: 1.2rem;
}

.app-modal-btn {
  background: linear-gradient(135deg, #C8102E, #a50d24);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.app-modal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,16,46,0.4);
  color: white;
}

.app-modal-later {
  background: transparent;
  border: none;
  color: #666;
  margin-top: 1rem;
  cursor: pointer;
  font-size: 0.875rem;
}

/* Hide on desktop */
@media (min-width: 992px) {
  .app-download-banner,
  .app-download-fab,
  .app-download-top-banner {
    display: none !important;
  }
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .app-banner-content {
    gap: 0.75rem;
  }
  
  .app-banner-icon {
    width: 50px;
    height: 50px;
  }
  
  .app-banner-title {
    font-size: 0.9rem;
  }
  
  .app-banner-subtitle {
    font-size: 0.7rem;
  }
  
  .app-banner-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
  
  .app-download-fab {
    bottom: 15px;
    right: 15px;
    width: 55px;
    height: 55px;
  }
}
