/**
 * Custom Smart Banner - Scroll-Aware & Unified Style
 */

/* Banner container - Not fixed, flows with content */
.custom-smartbanner {
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  /* Unified Android dark gradient style for all platforms */
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 16px;
  opacity: 0;
  transform: translateY(-100%);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.custom-smartbanner--visible {
  transform: translateY(0);
  opacity: 1;
}

/* Hide banner on scroll down */
.custom-smartbanner--hidden {
  transform: translateY(-100%);
  opacity: 0;
}

.custom-smartbanner__container {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
}

/* App icon */
.custom-smartbanner__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.custom-smartbanner__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Text content */
.custom-smartbanner__info {
  flex: 1;
  min-width: 0;
}

.custom-smartbanner__title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 2px 0;
  line-height: 1.3;
}

.custom-smartbanner__author {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 2px 0;
  line-height: 1.3;
}

.custom-smartbanner__price {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* View button - Platform-specific colors */
.custom-smartbanner__button {
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  margin-left: auto;
  flex-shrink: 0;
}

.custom-smartbanner__button:hover {
  transform: translateY(-1px);
}

.custom-smartbanner__button:active {
  transform: translateY(0);
}

/* Android - Green button */
.custom-smartbanner--android .custom-smartbanner__button {
  background: #10b981;
}

.custom-smartbanner--android .custom-smartbanner__button:hover {
  background: #059669;
}


/* Responsive adjustments */
@media (max-width: 480px) {
  .custom-smartbanner {
    padding: 10px 12px;
  }
  
  .custom-smartbanner__icon {
    width: 48px;
    height: 48px;
  }
  
  .custom-smartbanner__title {
    font-size: 14px;
  }
  
  .custom-smartbanner__author {
    font-size: 12px;
  }
  
  .custom-smartbanner__button {
    padding: 6px 16px;
    font-size: 13px;
  }
}