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

@layer base {
  html {
    scroll-behavior: smooth;
  }

  body {
    @apply font-body text-gray-800 antialiased;
  }

  h1, h2, h3, h4, h5, h6 {
    @apply font-heading font-bold;
  }
}

@layer components {
  .btn-primary {
    @apply px-8 py-4 bg-victory-gold text-deep-navy font-semibold rounded-xl
           hover:bg-victory-gold-dark transform hover:scale-105 transition-all
           duration-200 shadow-lg hover:shadow-xl;
  }

  .btn-app-store {
    @apply px-8 py-4 bg-black text-white font-semibold rounded-xl
           hover:bg-gray-800 transform hover:scale-105 transition-all
           duration-200 shadow-lg hover:shadow-xl inline-flex items-center gap-3;
  }

  .btn-google-play {
    @apply px-8 py-4 bg-[#34A853] text-white font-semibold rounded-xl
           hover:bg-[#2D8E47] transform hover:scale-105 transition-all
           duration-200 shadow-lg hover:shadow-xl inline-flex items-center gap-3;
  }

  .card {
    @apply bg-white rounded-2xl p-8 shadow-card hover:shadow-card-hover
           transition-all duration-300;
  }

  .card-premium {
    @apply card ring-4 ring-victory-gold scale-105 relative;
  }

  .gradient-hero {
    @apply bg-gradient-to-br from-winning-green via-emerald to-forest-green;
  }

  .gradient-cta {
    @apply bg-gradient-to-r from-winning-green to-success-green;
  }

  .gradient-success {
    @apply bg-gradient-to-br from-success-green via-winning-green to-lucky-green-dark;
  }
}

@layer utilities {
  .text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .text-glow {
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  }

  .animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  }

  .animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Screen reader only utility */
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
  }

  .focus\:not-sr-only:focus {
    position: static;
    width: auto;
    height: auto;
    padding: initial;
    margin: initial;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }
}

/* Custom animations */
@keyframes sparkle {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}

.sparkle {
  animation: sparkle 2s ease-in-out infinite;
}
