/* App Banner Styles */
.app-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #3d3e16 50%, #605c0f 100%);
  color: white;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.app-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
}

.app-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
}

/* Alternative background options - uncomment the one you prefer */

/* Option 1: Soft white background with subtle shadow */
.app-icon {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* Option 2: Glassmorphism effect */
/*
.app-icon {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
*/

/* Option 3: Gradient background matching banner */
/*
.app-icon {
    background: linear-gradient(135deg, #ffffff 0%, #e8f2ff 100%);
    box-shadow: 0 3px 12px rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(255,255,255,0.3);
}
*/

/* Option 4: Minimal white background */
/*
.app-icon {
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    border: none;
}
*/

.app-details {
  display: flex;
  flex-direction: column;
}

.app-name {
  font-weight: 600;
  font-size: 16px;
  margin: 0;
  color: #ffffff;
}

.app-description {
  font-size: 12px;
  opacity: 0.8;
  margin: 0;
  color: #b8c5d6;
}

.open-button {
  background: linear-gradient(135deg, #D5FF00 0%, #F2FF00 50%, #FFE500 100%);
  color: black;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
  
}

.open-button:hover {
  background: linear-gradient(135deg, #D5FF00 0%, #F2FF00 50%, #FFE500 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(205, 234, 102, 0.2);
}

/* Main Content Styles */
.main-content {
  padding-top: 80px;
  text-align: center;
  padding: 80px 20px 40px 20px;
  background: #f8f9fa;
  min-height: 100vh;
}

.fallback-message {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.store-links {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 15px;
}

/* Platform-specific styles */
.android-link {
  display: none;
}

.ios-link {
  display: none;
}

/* Show appropriate store link based on platform */
.android .android-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ios .ios-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Desktop shows both links by default */
.desktop .ios-link,
.desktop .android-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.store-link {
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.store-link:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.store-link img {
  border-radius: 6px;
  object-fit: cover;
  vertical-align: middle;
  height: 50px;
  width: 140px;
}

.store-link.ios-link img {
  height: 40px;
  width: 120px;
}

.store-link.android-link img {
  height: 40px;
  width: 150px;
}

/* Responsive design */
@media (max-width: 480px) {
  .app-banner {
    padding: 12px 16px;
  }

  .app-icon {
    width: 36px;
    height: 36px;
  }

  .app-icon img {
    width: 28px;
    height: 28px;
  }

  .app-name {
    font-size: 14px;
  }

  .app-description {
    font-size: 11px;
  }

  .open-button {
    padding: 8px 16px;
    font-size: 13px;
  }

  .store-links {
    flex-direction: column;
    gap: 8px;
  }

  .main-content {
    padding: 70px 20px 40px 20px;
  }
}
