/* ==========================================================
   Premium UI Extensions
   Glassmorphism, Animations, Gradients, and Glows
   ========================================================== */

/* Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}

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

/* Premium Layout & Hero */
.hero-premium {
  position: relative;
  overflow: hidden;
  padding: 8rem 0 6rem;
  background: linear-gradient(-45deg, #f0f9ff, #e0f2fe, #bae6fd, #eff6ff);
  background-size: 400% 400%;
  animation: gradient-bg 15s ease infinite;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--ink); /* Fix for light mode */
}

/* Fix lead text color for light mode */
.hero-premium p.lead {
  color: var(--ink-2);
}

/* Fix trust row text color for light mode */
.hero-premium .trust-row {
  color: var(--ink-2);
}

/* Fix hero-pill for light mode */
.hero-premium .hero-pill {
  color: var(--brand-dark);
  border: 1px solid rgba(37, 99, 235, 0.2);
  background: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .hero-premium {
  background: linear-gradient(-45deg, #0f172a, #1e293b, #0c4a6e, #172554);
  background-size: 400% 400%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #fff;
}

[data-theme="dark"] .hero-premium p.lead {
  color: #dbeafe;
}

[data-theme="dark"] .hero-premium .trust-row {
  color: #dbeafe;
}

[data-theme="dark"] .hero-premium .hero-pill {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.14);
}

.hero-premium::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.hero-premium > * {
  position: relative;
  z-index: 1;
}

/* Glassmorphism Cards */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

[data-theme="dark"] .glass-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px -5px rgba(37, 99, 235, 0.15);
}

[data-theme="dark"] .glass-card:hover {
  box-shadow: 0 15px 40px -5px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.btn-glow {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  border: none;
  position: relative;
  z-index: 1;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
  transition: all 0.3s ease;
}

.btn-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: all 0.4s ease;
  z-index: -1;
}

.btn-glow:hover {
  color: #fff;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
  transform: translateY(-2px);
}

.btn-glow:hover::before {
  left: 100%;
}

/* Pricing Cards Premium */
.pricing-card-premium {
  position: relative;
  padding: 2.5rem 2rem;
  text-align: center;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pricing-card-premium:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.3);
}

.pricing-card-premium.popular {
  border: 2px solid var(--brand);
  transform: scale(1.03);
  box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.2);
  z-index: 2;
}

[data-theme="dark"] .pricing-card-premium.popular {
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
}

.pricing-card-premium.popular:hover {
  transform: scale(1.03) translateY(-5px);
}

.popular-badge {
  position: absolute;
  top: 15px;
  right: -35px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 40px;
  transform: rotate(45deg);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.price-display {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--ink);
  margin: 1.2rem 0 0.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  line-height: 1;
}

.price-display span.currency {
  font-size: 1.2rem;
  margin-top: 0.4rem;
  margin-right: 0.2rem;
  color: var(--muted);
}

.price-display span.period {
  font-size: 1rem;
  color: var(--muted);
  align-self: flex-end;
  margin-bottom: 0.4rem;
  margin-left: 0.2rem;
  font-weight: 500;
}

/* Feature List */
.premium-feature-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
  text-align: left;
  flex-grow: 1;
}

.premium-feature-list li {
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
  font-size: 0.95rem;
}

.premium-feature-list li:last-child {
  border-bottom: none;
}

.premium-feature-list li svg {
  color: var(--ok);
  flex-shrink: 0;
}

/* Feature Icons */
.feature-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(14, 165, 233, 0.1));
  color: var(--brand);
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.glass-card:hover .feature-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
}

/* Hero image float */
.hero-art-animated {
  animation: float 6s ease-in-out infinite;
}

/* Layout utilities */
.text-gradient {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
