/**
 * ReelQuest Deep Link Button Styles
 */

/* Open in App Button */
.reelquest-open-app-button {
  display: inline-block;
  background: linear-gradient(135deg, #006D77 0%, #005760 100%);
  color: #FFFFFF;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Public Sans', sans-serif;
  text-decoration: none;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 109, 119, 0.25);
  margin: 16px 0;
}

.reelquest-open-app-button:hover {
  background: linear-gradient(135deg, #005760 0%, #004650 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 109, 119, 0.35);
}

.reelquest-open-app-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 109, 119, 0.25);
}

/* Mobile App Banner (for devices without smart banner support) */
.reelquest-mobile-banner {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #006D77 0%, #005760 100%);
  color: #FFFFFF;
  padding: 12px 16px;
  z-index: 9999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.reelquest-mobile-banner.show {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.reelquest-mobile-banner .banner-content {
  display: flex;
  align-items: center;
  flex: 1;
}

.reelquest-mobile-banner .app-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  margin-right: 12px;
  background: #FFFFFF;
}

.reelquest-mobile-banner .app-info {
  flex: 1;
}

.reelquest-mobile-banner .app-name {
  font-weight: 600;
  font-size: 14px;
  margin: 0 0 4px 0;
}

.reelquest-mobile-banner .app-description {
  font-size: 12px;
  opacity: 0.9;
  margin: 0;
}

.reelquest-mobile-banner .banner-button {
  background: #FFFFFF;
  color: #006D77;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  margin-left: 12px;
}

.reelquest-mobile-banner .close-banner {
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 24px;
  cursor: pointer;
  padding: 0 8px;
  margin-left: 8px;
  opacity: 0.8;
}

.reelquest-mobile-banner .close-banner:hover {
  opacity: 1;
}

/* Tournament card "Open in App" button styling (legacy) */
.tournament-card .open-in-app {
  display: none; /* Hidden by default, shown via JavaScript on mobile */
  background: linear-gradient(135deg, #F77F00 0%, #E66F00 100%);
  color: #FFFFFF;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.3s ease;
  width: 100%;
  text-align: center;
}

.tournament-card .open-in-app:hover {
  background: linear-gradient(135deg, #E66F00 0%, #D65F00 100%);
  transform: translateY(-1px);
}

/* Modern tournament card "Open in App" button styling */
.tournament-card-modern .open-in-app,
.tournament-card-modern .btn-open-app {
  display: none; /* Hidden by default on desktop */
}

/* Show on mobile devices */
@media (max-width: 768px) {
  .tournament-card .open-in-app,
  .tournament-card-modern .open-in-app,
  .tournament-card-modern .btn-open-app {
    display: inline-block;
  }

  /* Adjust spacing when button is visible */
  body.has-app-banner {
    padding-top: 80px;
  }
}

/* Desktop: hide mobile-only elements */
@media (min-width: 769px) {
  .reelquest-mobile-banner {
    display: none !important;
  }

  .mobile-only {
    display: none !important;
  }
}
