
@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  :root {
    --background: 222.2 84% 4.9%;
    --foreground: 210 40% 98%;
    --card: 222.2 84% 4.9%;
    --card-foreground: 210 40% 98%;
    --popover: 222.2 84% 4.9%;
    --popover-foreground: 210 40% 98%;
    --primary: 263 84% 74%;
    --primary-foreground: 210 40% 98%;
    --secondary: 217.2 32.6% 17.5%;
    --secondary-foreground: 210 40% 98%;
    --muted: 217.2 32.6% 17.5%;
    --muted-foreground: 215 20.2% 65.1%;
    --accent: 142 76% 36%;
    --accent-foreground: 210 40% 98%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 210 40% 98%;
    --border: 217.2 32.6% 17.5%;
    --input: 217.2 32.6% 17.5%;
    --ring: 263 84% 74%;
    --radius: 0.5rem;
  }
}

@layer base {
  * {
    @apply border-border;
  }
  body {
    @apply bg-background text-foreground;
    font-feature-settings: "rlig" 1, "calt" 1;
    overflow-y: scroll !important;
    margin-right: 0 !important;
    padding-right: 0 !important;
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  body[data-state="open"] {
    overflow: hidden !important;
    padding-right: var(--removed-body-scroll-bar-size) !important;
  }
}

.nft-card {
  @apply relative overflow-hidden rounded-lg transition-all duration-300 hover:scale-105 hover:shadow-xl;
  background: linear-gradient(225deg, #2a2a2a 0%, #1a1f2c 100%);
}

.hero-gradient {
  background: linear-gradient(102.3deg, rgba(147,39,143,1) 5.9%, rgba(234,172,232,1) 64%, rgba(246,219,245,1) 89%);
}

.bg-usdt {
  background-color: #26A17B;
}

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

.animate-fade-in {
  animation: fadeIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Advanced scroll animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-60px) rotate(-5deg);
  }
  to {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(60px) rotate(5deg);
  }
  to {
    opacity: 1;
    transform: translateX(0) rotate(0deg);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.3) rotate(10deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes flipIn {
  from {
    opacity: 0;
    transform: perspective(400px) rotateY(90deg);
  }
  to {
    opacity: 1;
    transform: perspective(400px) rotateY(0deg);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3) translateY(-100px);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.05) translateY(10px);
  }
  80% {
    opacity: 1;
    transform: scale(0.95) translateY(-5px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes typewriter {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink {
  0%, 50% {
    border-color: transparent;
  }
  51%, 100% {
    border-color: hsl(var(--primary));
  }
}

/* Animation classes */
.animate-slide-up {
  animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-slide-left {
  animation: slideInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-slide-right {
  animation: slideInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-zoom-in {
  animation: zoomIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-flip-in {
  animation: flipIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-bounce-in {
  animation: bounceIn 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.animate-typewriter {
  overflow: hidden;
  border-right: 2px solid hsl(var(--primary));
  white-space: nowrap;
  animation: typewriter 2s steps(40, end), blink 1s step-end infinite;
}

/* Stagger animations */
.animate-stagger-1 { animation-delay: 0.1s; }
.animate-stagger-2 { animation-delay: 0.2s; }
.animate-stagger-3 { animation-delay: 0.3s; }
.animate-stagger-4 { animation-delay: 0.4s; }
.animate-stagger-5 { animation-delay: 0.5s; }
.animate-stagger-6 { animation-delay: 0.6s; }

/* Hover animations */
@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

.animate-shimmer {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* Magnetic hover effect */
.magnetic-hover {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.magnetic-hover:hover {
  transform: translateY(-8px) scale(1.02);
}

/* Parallax scrolling */
.parallax-slow {
  transform: translateZ(0);
  will-change: transform;
}

/* 3D card effect */
.card-3d {
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

.card-3d:hover {
  transform: rotateY(5deg) rotateX(5deg) translateZ(20px);
}

/* Advanced text effects */
@keyframes textGlow {
  0%, 100% {
    text-shadow: 0 0 5px hsl(var(--primary) / 0.5);
  }
  50% {
    text-shadow: 0 0 20px hsl(var(--primary) / 0.8), 0 0 30px hsl(var(--primary) / 0.6);
  }
}

.animate-text-glow {
  animation: textGlow 3s ease-in-out infinite;
}

/* Floating elements */
@keyframes floatUp {
  0% {
    transform: translateY(100px) scale(0);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(-20px) scale(1);
    opacity: 0;
  }
}

.animate-float-up {
  animation: floatUp 4s ease-out infinite;
}

/* Morphing background */
@keyframes morphBackground {
  0%, 100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
  50% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }
}

.animate-morph {
  animation: morphBackground 8s ease-in-out infinite;
}

/* Enhanced button effects */
.button-magnetic {
  position: relative;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
}

.button-magnetic::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, 
    hsl(var(--primary)), 
    hsl(var(--primary) / 0.8), 
    transparent, 
    hsl(var(--primary) / 0.8), 
    hsl(var(--primary))
  );
  border-radius: inherit;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.button-magnetic:hover::before {
  opacity: 0.7;
}

/* Advanced scroll indicators */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    90deg,
    hsl(var(--primary)),
    hsl(var(--primary) / 0.8),
    transparent
  );
  transform: scaleX(0);
  transform-origin: left;
  z-index: 1000;
  transition: transform 0.1s ease-out;
}

/* Improved glass morphism */
.glass-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.animate-gradient {
  animation: gradient 15s ease infinite;
  background-size: 200% 200%;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

@keyframes float-up {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

.animate-float-up {
  animation: float-up 8s linear infinite;
}

@keyframes glow {
  0% {
    box-shadow: 0 0 5px rgba(147,39,143,0.2);
  }
  50% {
    box-shadow: 0 0 20px rgba(147,39,143,0.4);
  }
  100% {
    box-shadow: 0 0 5px rgba(147,39,143,0.2);
  }
}

.animate-glow {
  animation: glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
  0% {
    opacity: 0.1;
    transform: scale(0.98);
  }
  50% {
    opacity: 1;
    transform: scale(1.01);
  }
  100% {
    opacity: 0.1;
    transform: scale(0.98);
  }
}

.pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes progress {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

/* Updated bid card styling to match screenshot */
.bid-card {
  @apply relative rounded-lg p-4 border;
  background: #131B31;
  border-color: #2A3047;
}

.bid-badge {
  @apply inline-flex items-center px-2 py-0.5 rounded-md text-xs font-medium;
}

.badge-verified {
  @apply bg-green-900/40 text-green-500 border border-green-500/30;
}

.badge-not-verified {
  @apply bg-red-900/40 text-red-500 border border-red-500/30;
}

.badge-highest {
  @apply bg-yellow-900/40 text-yellow-500 border border-yellow-500/30;
}

.bid-amount {
  @apply flex items-center text-primary-foreground font-bold;
}

.bid-time {
  @apply flex items-center text-xs text-gray-400;
}

.accept-button {
  @apply bg-green-600 hover:bg-green-700 text-white w-full flex justify-center items-center;
}

.decline-button {
  @apply bg-transparent border border-red-500 text-red-400 hover:bg-red-950/30 w-full flex justify-center items-center;
}

/* OPTIMIZED marketplace specific styles - Performance First */
.marketplace-hero-card {
  position: relative;
  overflow: hidden;
  will-change: transform;
  transform: translateZ(0); /* Hardware acceleration */
}

.marketplace-hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.03),
    transparent
  );
  transition: left 0.4s ease-out;
}

.marketplace-hero-card:hover::before {
  left: 100%;
}

/* Optimized search input styles */
.search-input {
  position: relative;
  transition: transform 0.2s ease-out;
  will-change: transform;
  transform: translateZ(0);
}

.search-input:focus {
  transform: translateY(-1px) translateZ(0);
}

.sort-trigger {
  position: relative;
  transition: transform 0.2s ease-out;
  will-change: transform;
  transform: translateZ(0);
}

.sort-trigger:hover {
  transform: translateY(-0.5px) translateZ(0);
}

/* HEAVILY OPTIMIZED NFT card styles */
.nft-card-enhanced {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  /* Removed heavy backdrop-filter and complex box-shadows */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  will-change: transform;
  transform: translateZ(0);
}

.nft-card-enhanced:hover {
  transform: translateY(-6px) translateZ(0); /* Simplified transform */
  box-shadow: 0 12px 24px rgba(147, 39, 143, 0.12); /* Single shadow */
  border-color: rgba(147, 39, 143, 0.2);
}

/* Removed complex ::before pseudo elements */

/* Optimized image hover effects */
.nft-image-container {
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.nft-image-container img {
  transition: transform 0.3s ease-out;
  will-change: transform;
  transform: translateZ(0);
}

.nft-image-container:hover img {
  transform: scale(1.05) translateZ(0); /* Simplified scaling */
}

/* Simplified price badge */
.price-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease-out;
  will-change: transform;
  transform: translateZ(0);
}

.price-badge:hover {
  background: rgba(147, 39, 143, 0.7);
  border-color: rgba(147, 39, 143, 0.4);
  transform: scale(1.02) translateZ(0);
}

/* Simplified shimmer effect */
@keyframes optimized-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.animate-optimized-shimmer {
  position: relative;
  overflow: hidden;
}

.animate-optimized-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: translateX(-100%);
  animation: optimized-shimmer 2s infinite;
}

/* Removed heavy magnetic field and complex animations */

/* Simplified floating animation */
@keyframes simple-float {
  0%, 100% { transform: translateY(0px) translateZ(0); }
  50% { transform: translateY(-5px) translateZ(0); }
}

.animate-simple-float {
  animation: simple-float 4s ease-in-out infinite;
  will-change: transform;
}

/* Removed glitch, prismatic, and other heavy effects */

/* Simplified elastic hover */
.hover-elastic:hover {
  animation: none; /* Removed complex animation */
  transform: scale(1.02) translateZ(0);
  transition: transform 0.2s ease-out;
}

/* Simplified neon glow - much lighter */
.neon-glow {
  position: relative;
}

.neon-glow::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: hsl(var(--primary) / 0.3);
  border-radius: inherit;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.neon-glow:hover::before {
  opacity: 0.5;
}

/* Removed liquid morphing - too expensive */

/* Hardware acceleration utilities */
.hw-accelerated {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Optimized gradient background */
.optimized-gradient {
  background: linear-gradient(135deg, 
    hsl(var(--primary) / 0.05) 0%, 
    hsl(var(--accent) / 0.03) 100%
  );
}

/* Remove expensive backdrop-blur usage */
.light-blur {
  background: rgba(255, 255, 255, 0.05);
  /* Removed backdrop-filter: blur() */
}

/* Performance-first card grid */
.marketplace-nft-grid {
  contain: layout style paint;
}
@media (max-width: 640px) {
  /* General padding adjustments for mobile */
  .container {
    @apply px-4;
  }
  
  /* Fix header spacing for mobile */
  header {
    @apply py-2;
  }
  
  /* Adjust font sizes for better mobile reading */
  h1 {
    @apply text-3xl;
  }
  
  h2 {
    @apply text-2xl;
  }
  
  h3 {
    @apply text-xl;
  }
  
  p {
    @apply text-sm;
  }
  
  /* Smaller buttons on mobile */
  .btn-mobile {
    @apply px-3 py-1.5 text-sm;
  }
  
  /* Adjust card padding for mobile */
  .card-mobile {
    @apply p-3;
  }
  
  .accordion-content {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
  
  .bid-card {
    padding: 0.75rem !important;
  }
  
  .bid-details {
    font-size: 0.75rem !important;
  }
  
  .action-buttons {
    flex-direction: column !important;
    width: 100% !important;
  }
  
  .action-button {
    width: 100% !important;
    margin-top: 0.5rem !important;
  }
  
  .bidder-address {
    max-width: 100px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: inline-block !important;
  }
  
  /* Improved tab navigation for mobile */
  .tabs-navigation {
    gap: 0.25rem !important;
  }
  
  .tab-trigger {
    padding: 0.5rem !important;
    min-width: 65px !important;
  }

  /* Improved transaction table for mobile */
  .transaction-table {
    display: table !important;
    width: 100% !important;
    min-width: 100% !important;
    table-layout: fixed !important;
    overflow-x: visible !important;
  }
  
  .transaction-table th, 
  .transaction-table td {
    padding: 0.5rem 0.25rem !important;
    font-size: 0.75rem !important;
    white-space: nowrap !important;
  }
  
  .transaction-table .date-column {
    width: 15% !important;
  }
  
  .transaction-table .type-column {
    width: 15% !important;
    text-align: center !important;
  }
  
  .transaction-table .amount-column {
    width: 20% !important;
  }
  
  .transaction-table .status-column {
    width: 50% !important;
  }
  
  /* Username truncation on mobile */
  .username-truncate {
    max-width: 150px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: inline-block !important;
  }
  
  /* Fix for marketplace grid on mobile */
  .marketplace-nft-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  /* Make NFT cards fully visible on mobile */
  .marketplace-nft-card {
    height: auto !important;
    max-height: none !important;
    aspect-ratio: auto !important;
  }
  
  .marketplace-nft-card .aspect-square {
    max-height: 300px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  /* NFT image centering on mobile */
  .aspect-square img {
    object-fit: contain !important;
    max-height: 100% !important;
    margin: 0 auto !important;
  }
  
  /* Transaction table container shouldn't scroll horizontally */
  .transaction-table-container {
    overflow-x: visible !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  /* Add more padding to the hero section on mobile */
  .hero-section {
    padding-top: 5rem !important;
    padding-bottom: 3rem !important;
  }
  
  /* Adjust spacing between sections on mobile */
  .section-spacing {
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
  }
  
  /* Additional mobile-specific header adjustments */
  .mobile-header {
    height: 60px !important;
  }
  
  /* Mobile menu dropdown adjustments */
  .mobile-menu {
    top: 60px !important;
  }
  
  /* Adjust icon sizes for mobile */
  .mobile-icon {
    width: 1rem !important;
    height: 1rem !important;
  }
  
  /* Improve form fields on mobile */
  .mobile-form-field {
    height: 42px !important;
    font-size: 0.875rem !important;
  }
}

/* Responsive tab styles */
.responsive-tabs-list {
  @apply flex flex-wrap gap-1 !important;
}

.responsive-tab-trigger {
  @apply flex-grow flex-shrink-0 !important;
}

/* NFT collection view animations */
.animate-in {
  animation-duration: 0.3s;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  animation-fill-mode: both;
}

.fade-in {
  animation-name: fadeIn;
}

/* Glassmorphism styles */
.glass-panel {
  background: rgba(26, 31, 44, 0.5);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(147, 39, 143, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* View mode transition */
.view-transition {
  transition: all 0.3s ease;
}

/* NFT card sizing for marketplace */
@media (max-width: 640px) {
  .marketplace-nft-grid {
    grid-template-columns: repeat(1, 1fr) !important;
    gap: 1rem !important;
  }
  
  .marketplace-nft-card .aspect-square {
    height: 300px !important;
  }
}

/* Transaction type icon-only styles */
.transaction-type-icon-only {
  display: flex;
  justify-content: center;
  align-items: center;
}

.transaction-type-icon-only span {
  display: none;
}

/* Glass effect for the circular button */
.circular-button-glow {
  position: relative;
  z-index: 10;
}

.circular-button-glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, #9b87f5, #7e69ab, #d946ef);
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.7;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.circular-button-glow:hover::before {
  opacity: 1;
}

/* Additional mobile optimizations */
@media (max-width: 768px) {
  .header-logo {
    font-size: 1.25rem !important;
  }
  
  .header-logo-icon {
    width: 1.5rem !important;
    height: 1.5rem !important;
  }
  
  /* Adjust spacing for content below fixed header */
  .main-content {
    padding-top: 4.5rem !important;
  }
  
  /* Make buttons easier to tap on mobile */
  button, 
  .button,
  a.button,
  [role="button"] {
    min-height: 42px !important;
    min-width: 42px !important;
  }
  
  /* Improve form elements spacing on mobile */
  .form-group {
    margin-bottom: 1rem !important;
  }
  
  /* Adjust card styling for mobile */
  .card {
    border-radius: 0.75rem !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
  }
}

/* GSAP Animations and Profile Enhancements */
@layer components {
  .balance-card {
    @apply transition-all duration-300 ease-out;
  }
  
  .balance-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(var(--primary), 0.15);
  }
  
  .transaction-row {
    @apply transition-all duration-200;
  }
  
  .transaction-row:hover {
    transform: translateX(4px);
    background: rgba(var(--muted), 0.3);
  }
  
  /* Floating background elements */
  .floating-bg {
    animation: float-gentle 8s ease-in-out infinite;
  }
  
  @keyframes float-gentle {
    0%, 100% {
      transform: translateY(0px) translateX(0px) rotate(0deg);
    }
    25% {
      transform: translateY(-10px) translateX(5px) rotate(1deg);
    }
    50% {
      transform: translateY(-5px) translateX(-5px) rotate(-1deg);
    }
    75% {
      transform: translateY(-15px) translateX(3px) rotate(0.5deg);
    }
  }
  
  /* Enhanced button animations */
  .profile-button {
    @apply relative overflow-hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .profile-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
  }
  
  .profile-button:hover::before {
    width: 300px;
    height: 300px;
  }
  
  /* Tab animations */
  .tab-content-enter {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  
  .tab-content-enter-active {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  /* Stagger animation delays */
  .stagger-1 { animation-delay: 0.1s; }
  .stagger-2 { animation-delay: 0.2s; }
  .stagger-3 { animation-delay: 0.3s; }
  .stagger-4 { animation-delay: 0.4s; }
  .stagger-5 { animation-delay: 0.5s; }
  
  /* Mobile-specific marketplace fixes */
  @media (max-width: 640px) {
    .marketplace-nft-grid {
      justify-items: center;
      padding: 0;
    }
    
    .nft-card-enhanced {
      max-width: calc(100vw - 2rem);
      width: 100%;
      margin: 0 auto;
    }
    
    .price-badge {
      @apply flex items-center gap-1.5 px-2 py-1 rounded-lg bg-primary/10 border border-primary/20;
    }
    
    /* Ensure proper touch targets on mobile */
    .responsive-tab-trigger {
      min-height: 44px;
      min-width: 44px;
    }
    
    /* Better spacing for mobile search */
    .search-input {
      font-size: 16px !important; /* Prevents zoom on iOS */
    }
    
    /* Mobile-friendly scroll area */
    .marketplace-scroll-area {
      -webkit-overflow-scrolling: touch;
      margin: 0;
    }
    
    /* Ensure full visibility of cards */
    .marketplace-scroll-area .scrollbar-hide {
      padding-bottom: 2rem;
    }
    
    /* Fix container margins */
    .container {
      padding-left: 0.5rem;
      padding-right: 0.5rem;
    }
  }
}
