/* StreetMBA Marketplace Premium Styles */

/* Premium Color Variables */
:root {
  --color-gold: #f59e0b;
  --color-gold-light: #fbbf24;
  --color-gold-dark: #d97706;
  --color-premium-bg: #0f172a;
  --color-premium-card: #1e293b;
  --gradient-gold: linear-gradient(to right, #fbbf24, #f59e0b);
  --gradient-premium: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Premium Typography */
.text-gradient-gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-premium {
  background: var(--gradient-premium);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero Animations */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in-down {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.5);
  }
}

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

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* Animation Classes */
.animate-fade-in-up {
  animation: fade-in-up 0.8s ease-out forwards;
}

.animate-fade-in-down {
  animation: fade-in-down 0.8s ease-out forwards;
}

.animate-pulse-glow {
  animation: pulse-glow 2s infinite;
}

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

/* Stagger animation delays */
.animation-delay-200 {
  animation-delay: 200ms;
}

.animation-delay-400 {
  animation-delay: 400ms;
}

.animation-delay-600 {
  animation-delay: 600ms;
}

.animation-delay-800 {
  animation-delay: 800ms;
}

/* Premium Card Styles */
.card-premium {
  background-color: rgb(15 23 42);
  border-radius: 1rem;
  border: 1px solid rgb(30 41 59);
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.card-premium:hover {
  border-color: rgba(251, 191, 36, 0.5);
  box-shadow: 0 20px 40px rgba(251, 191, 36, 0.1);
}

.card-featured {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.05) 0%, transparent 100%);
  border: 2px solid rgba(251, 191, 36, 0.3);
}

/* Premium Button Styles */
.btn-premium {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateZ(0);
  background: linear-gradient(to right, #fbbf24, #f59e0b);
  color: #000000;
  box-shadow: 0 10px 30px rgba(251, 191, 36, 0.3);
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(251, 191, 36, 0.4);
  filter: brightness(1.1);
  background: linear-gradient(to right, #f59e0b, #d97706);
}

/* Smaller button variant for course cards */
.btn-premium-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 9999px;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateZ(0);
  background: linear-gradient(to right, #fbbf24, #f59e0b);
  color: #000000;
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.25);
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-premium-small:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(251, 191, 36, 0.35);
  filter: brightness(1.1);
  background: linear-gradient(to right, #f59e0b, #d97706);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 500;
  border-radius: 0.75rem;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(30, 41, 59, 0.5);
  border: 2px solid rgba(148, 163, 184, 0.3);
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(251, 191, 36, 0.5);
  transform: translateY(-1px);
}

/* Badge Styles */
.badge-gold {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 9999px;
  background: linear-gradient(to right, #fbbf24, #f59e0b);
  color: #000000;
}

.badge-verified {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 9999px;
  background: rgba(251, 191, 36, 0.2);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: #fbbf24;
}

.badge-popular {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 9999px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  z-index: 10;
}

/* Trust Signal Styles */
.trust-metric {
  text-align: center;
}

.trust-metric-number {
  font-size: 2.25rem;
  font-weight: 700;
  background: linear-gradient(to right, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (min-width: 768px) {
  .trust-metric-number {
    font-size: 3rem;
  }
}

.trust-metric-label {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Course Card Enhancements */
.course-card {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ensure all gradient buttons have proper styles */
a[class*="bg-gradient-to-r"],
button[class*="bg-gradient-to-r"] {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  cursor: pointer;
}

.course-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.course-card:hover::before {
  transform: scaleX(1);
}

.course-card-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
}

.course-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(15, 23, 42, 0.8) 100%);
}

/* Instructor Verification Badge */
.instructor-verified {
  position: relative;
}

.instructor-verified::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 20px;
  height: 20px;
  background: #10b981;
  border: 2px solid #1e293b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Parallax Background */
.parallax-bg {
  position: relative;
  overflow: hidden;
}

.parallax-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(251, 191, 36, 0.05), transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(168, 85, 247, 0.05), transparent 50%);
  animation: float 20s ease-in-out infinite;
}

/* Loading Skeleton */
.skeleton {
  background: linear-gradient(90deg, #1e293b 0%, #334155 50%, #1e293b 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

/* Responsive Typography Scale */
.heading-hero {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .heading-hero {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .heading-hero {
    font-size: 3.75rem;
  }
}

@media (min-width: 1280px) {
  .heading-hero {
    font-size: 4.5rem;
  }
}

.heading-section {
  font-size: 1.875rem;
  font-weight: 700;
}

@media (min-width: 768px) {
  .heading-section {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .heading-section {
    font-size: 3rem;
  }
}

.heading-card {
  font-size: 1.25rem;
  font-weight: 600;
}

@media (min-width: 768px) {
  .heading-card {
    font-size: 1.5rem;
  }
}

/* Mobile-First Responsive Utilities */
@media (max-width: 640px) {
  .mobile-padding {
    padding: 4rem 1rem;
  }
  
  .mobile-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .mobile-text-center {
    text-align: center;
  }
  
  .hide-mobile {
    display: none;
  }
}

@media (min-width: 641px) {
  .show-desktop {
    display: block;
  }
  
  .desktop-padding {
    padding: 5rem 2rem;
  }
}

/* Interactive Hover Effects */
.hover-lift {
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
  transform: translateY(-4px);
}

.hover-glow {
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-glow:hover {
  box-shadow: 0 0 30px rgba(251, 191, 36, 0.3);
}

/* Focus States for Accessibility */
.focus-ring-gold:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgb(15 23 42), 0 0 0 4px rgb(245 158 11);
}

.focus-ring-premium:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgb(15 23 42), 0 0 0 4px rgb(168 85 247);
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #1e293b;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #475569;
  border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Performance Optimizations */
.will-change-transform {
  will-change: transform;
}

.will-change-opacity {
  will-change: opacity;
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  .print-friendly {
    color: #000 !important;
    background: #fff !important;
  }
}

/* Dark Mode Enhancements */
@media (prefers-color-scheme: dark) {
  .dark-enhance {
    filter: brightness(1.1);
  }
}

/* Accessibility Improvements */
.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;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgb(245 158 11);
  color: #000000;
  padding: 0.5rem 1rem;
  border-bottom-right-radius: 0.5rem;
  transform: translateY(-100%);
  transition: transform 200ms;
  z-index: 50;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Selection Colors */
::selection {
  background: rgba(251, 191, 36, 0.3);
  color: #fff;
}

::-moz-selection {
  background: rgba(251, 191, 36, 0.3);
  color: #fff;
}