@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Poppins:wght@300;400;500;600&display=swap');

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

@layer base {
  :root {
    --primary-gold: #D4AF37;
    --primary-gold-light: #E5C158;
    --accent-gold: #C9A227;
    --dark-bg: #111111;
    --secondary-dark: #1E1E1E;
    --light-bg: #F8F8F8;
    --text-main: #2D2D2D;
  }

  html {
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
    color: var(--text-main);
    background-color: var(--light-bg);
  }

  h1, h2, h3, h4, h5, h6, .font-serif {
    font-family: 'Playfair Display', serif;
  }

  body {
    overflow-x: hidden;
  }
}

@layer components {
  /* Buttons */
  .btn-gold {
    @apply inline-flex items-center justify-center px-8 py-3 bg-[#D4AF37] text-white font-medium tracking-wide transition-all duration-300 hover:bg-[#C9A227] hover:shadow-[0_0_20px_rgba(212,175,55,0.4)] active:scale-95;
  }
  
  .btn-outline {
    @apply inline-flex items-center justify-center px-8 py-3 border border-white text-white font-medium tracking-wide transition-all duration-300 hover:bg-white hover:text-black active:scale-95;
  }
  
  .btn-outline-dark {
    @apply inline-flex items-center justify-center px-8 py-3 border border-[#111111] text-[#111111] font-medium tracking-wide transition-all duration-300 hover:bg-[#111111] hover:text-white active:scale-95;
  }

  /* Cards */
  .product-card {
    @apply bg-white rounded-lg overflow-hidden group transition-all duration-500 hover:-translate-y-2 hover:shadow-2xl relative;
  }
  
  /* Glassmorphism */
  .glass {
    @apply bg-white/70 backdrop-blur-md border border-white/20 shadow-lg;
  }
  .glass-dark {
    @apply bg-black/60 backdrop-blur-md border border-white/10 shadow-lg;
  }
}

@layer utilities {
  .text-gold {
    color: var(--primary-gold);
  }
  .bg-gold {
    background-color: var(--primary-gold);
  }
  .border-gold {
    border-color: var(--primary-gold);
  }
  .hide-scrollbar::-webkit-scrollbar {
    display: none;
  }
  .hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--light-bg); 
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1; 
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-gold); 
}

/* Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}
.animate-float {
  animation: float 6s ease-in-out infinite;
}

@keyframes float-slow {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}
.animate-float-slow {
  animation: float-slow 8s ease-in-out infinite;
}

@keyframes pulse-gold {
  0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(212, 175, 55, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}
.pulse-btn {
  animation: pulse-gold 2s infinite;
}

/* Hover Reveals */
.img-hover-zoom {
  @apply transition-transform duration-700 ease-in-out group-hover:scale-110;
}

/* Selection */
::selection {
  background: var(--primary-gold);
  color: white;
}
