/* ── OPTrade Custom Styles (supplements Tailwind + DaisyUI) ── */

/* Page visibility for SPA routing */
.page { display: none; }
.page.active { display: block; }

/* Tab panels */
.tab-panel { display: none; }
.tab-panel:not(.hidden) { display: block; }

/* NFT card hover overlay for Buy Now / Cart buttons */
.nft-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  display: flex;
  gap: 4px;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.2s ease;
  pointer-events: none;
}
.group:hover .nft-card-overlay {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
/* On touch devices, always show overlay */
@media (hover: none) {
  .nft-card-overlay {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* Search results dropdown */
#search-results.active { display: block !important; }
#search-results:not(.active) { display: none !important; }

/* Trait filter sidebar toggle */
#trait-filter-panel.open { display: block !important; }
#activity-panel.open { display: block !important; }

/* Smooth image zoom on card hover */
.nft-img-zoom { transition: transform 0.3s ease; }
.group:hover .nft-img-zoom { transform: scale(1.05); }

/* Scrollbar styling */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

/* Brand gradient text */
.text-gradient {
  background: linear-gradient(135deg, #8B5CF6, #EC4899, #F7931A);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Brand gradient border glow */
.border-gradient {
  border-image: linear-gradient(135deg, #8B5CF6, #EC4899, #F7931A) 1;
}

/* Loading animation */
@keyframes pulse-fade {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
.loading-text { animation: pulse-fade 1.5s ease-in-out infinite; }
