/**
 * JukeTune - Professional SaaS Landing Page Styles
 * Complete visual overhaul for modern, polished look
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  /* Brand Colors */
  --jt-primary: #6366f1;
  --jt-primary-light: #818cf8;
  --jt-primary-dark: #4f46e5;
  --jt-secondary: #ec4899;
  --jt-secondary-light: #f472b6;
  --jt-accent: #06b6d4;

  /* Gradients */
  --jt-gradient-primary: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
  --jt-gradient-hero: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
  --jt-gradient-dark: linear-gradient(180deg, #0f0f23 0%, #1a1a2e 100%);
  --jt-gradient-card: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);

  /* Neutrals */
  --jt-dark: #0f0f23;
  --jt-dark-light: #1a1a2e;
  --jt-gray-900: #1f2937;
  --jt-gray-700: #374151;
  --jt-gray-500: #6b7280;
  --jt-gray-300: #d1d5db;
  --jt-gray-100: #f3f4f6;
  --jt-white: #ffffff;

  /* Typography */
  --jt-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Shadows */
  --jt-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --jt-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --jt-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --jt-shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --jt-shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
  --jt-shadow-glow-pink: 0 0 40px rgba(236, 72, 153, 0.3);

  /* Animation */
  --jt-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --jt-transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   GLOBAL RESETS & BASE
   ============================================ */
body {
  font-family: var(--jt-font);
  background: var(--jt-white);
  color: var(--jt-gray-700);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Hide default page title */
.entry-header.ast-no-thumbnail,
.entry-title {
  display: none !important;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--jt-gray-900);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 1.875rem); }
h4 { font-size: 1.5rem; }

p {
  font-size: 1.125rem;
  color: var(--jt-gray-500);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.ast-primary-header-bar,
.main-header-bar {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  box-shadow: var(--jt-shadow-sm);
}

.main-header-menu a,
.ast-header-menu a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--jt-gray-700) !important;
  transition: var(--jt-transition);
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
}

.main-header-menu a:hover,
.ast-header-menu a:hover {
  color: var(--jt-primary) !important;
  background: rgba(99, 102, 241, 0.08);
}

.site-title a,
.ast-site-identity a {
  font-weight: 800 !important;
  font-size: 1.5rem !important;
  background: var(--jt-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   HERO SECTION (Cover Block)
   ============================================ */
.wp-block-cover.alignfull {
  min-height: 90vh !important;
  background: var(--jt-gradient-hero) !important;
  position: relative;
  overflow: hidden;
}

/* Remove the dark overlay */
.wp-block-cover__background,
.wp-block-cover .has-black-background-color,
.wp-block-cover__background.has-black-background-color {
  background: transparent !important;
  opacity: 0 !important;
}

/* Add animated gradient background */
.wp-block-cover.alignfull::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(236, 72, 153, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(99, 102, 241, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 40% 40%, rgba(6, 182, 212, 0.2) 0%, transparent 40%);
  z-index: 0;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

/* Floating orbs decoration */
.wp-block-cover.alignfull::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(120deg); }
  66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.wp-block-cover__inner-container {
  position: relative;
  z-index: 10;
  max-width: 900px !important;
  margin: 0 auto;
  padding: 2rem;
}

/* Hero Title */
.wp-block-cover h1,
.wp-block-cover .wp-block-heading {
  color: var(--jt-white) !important;
  font-size: clamp(3rem, 8vw, 5rem) !important;
  font-weight: 800 !important;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  margin-bottom: 1rem !important;
  letter-spacing: -0.02em;
}

/* Hero Subtitle */
.wp-block-cover p {
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: clamp(1.25rem, 3vw, 1.75rem) !important;
  font-weight: 500;
  margin-bottom: 1.5rem !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.wp-block-cover p:last-of-type {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 1.125rem !important;
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto 2rem auto !important;
}

/* ============================================
   BUTTONS
   ============================================ */
.wp-block-button__link,
.wp-element-button,
button,
input[type="submit"],
.ast-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  border-radius: 12px !important;
  border: none !important;
  cursor: pointer;
  transition: var(--jt-transition);
  text-decoration: none !important;
  gap: 0.5rem;
}

/* Primary Button */
.wp-block-button__link.has-vivid-cyan-blue-background-color,
.wp-block-button__link.has-background,
.wp-block-button:not(.is-style-outline) .wp-block-button__link {
  background: var(--jt-gradient-primary) !important;
  color: var(--jt-white) !important;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4), 0 2px 4px rgba(0,0,0,0.1);
}

.wp-block-button__link.has-vivid-cyan-blue-background-color:hover,
.wp-block-button__link.has-background:hover,
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5), 0 4px 8px rgba(0,0,0,0.15);
}

/* Outline Button */
.wp-block-button.is-style-outline .wp-block-button__link {
  background: rgba(255, 255, 255, 0.1) !important;
  color: var(--jt-white) !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  backdrop-filter: blur(10px);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  transform: translateY(-3px);
}

/* Button Group */
.wp-block-buttons {
  gap: 1rem !important;
  margin-top: 2rem !important;
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */
.entry-content > *:not(.wp-block-cover):not(.alignfull) {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Section Headings */
.entry-content > h2.wp-block-heading {
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.75rem) !important;
  font-weight: 700;
  color: var(--jt-gray-900);
  margin-top: 5rem !important;
  margin-bottom: 1rem !important;
  position: relative;
}

.entry-content > h2.wp-block-heading::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--jt-gradient-primary);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* ============================================
   FEATURE CARDS (Columns)
   ============================================ */
.wp-block-columns {
  gap: 2rem !important;
  margin-top: 3rem !important;
  margin-bottom: 3rem !important;
}

.wp-block-column {
  background: var(--jt-white);
  border-radius: 20px;
  padding: 2.5rem !important;
  box-shadow: var(--jt-shadow-lg);
  border: 1px solid rgba(0,0,0,0.05);
  transition: var(--jt-transition);
  position: relative;
  overflow: hidden;
}

.wp-block-column::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--jt-gradient-primary);
  opacity: 0;
  transition: var(--jt-transition);
}

.wp-block-column:hover {
  transform: translateY(-8px);
  box-shadow: var(--jt-shadow-xl), var(--jt-shadow-glow);
}

.wp-block-column:hover::before {
  opacity: 1;
}

/* Card Headings */
.wp-block-column h3,
.wp-block-column h4,
.wp-block-column .wp-block-heading {
  color: var(--jt-gray-900) !important;
  font-size: 1.5rem !important;
  font-weight: 700;
  margin-bottom: 1rem !important;
}

/* Step Numbers */
.wp-block-column h3:first-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.wp-block-column h3:first-child::before {
  content: '';
  width: 60px;
  height: 60px;
  background: var(--jt-gradient-primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* Number icons for steps */
.wp-block-columns:first-of-type .wp-block-column:nth-child(1) h3::before { content: '1'; }
.wp-block-columns:first-of-type .wp-block-column:nth-child(2) h3::before { content: '2'; }
.wp-block-columns:first-of-type .wp-block-column:nth-child(3) h3::before { content: '3'; }

.wp-block-column p {
  color: var(--jt-gray-500) !important;
  font-size: 1rem !important;
  line-height: 1.7;
  margin-bottom: 0 !important;
}

/* ============================================
   SEPARATOR
   ============================================ */
hr.wp-block-separator {
  border: none !important;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--jt-gray-300), transparent);
  margin: 4rem auto !important;
  max-width: 600px;
}

/* ============================================
   WHY CHOOSE SECTION (Second Columns Block)
   ============================================ */
.entry-content > .wp-block-columns:nth-of-type(2) .wp-block-column {
  text-align: left;
}

.entry-content > .wp-block-columns:nth-of-type(2) .wp-block-column h4::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border-radius: 50%;
  font-size: 0.875rem;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.entry-content > .wp-block-columns:nth-of-type(2) .wp-block-column h4 {
  display: flex !important;
  align-items: center;
  font-size: 1.25rem !important;
}

/* ============================================
   CALL TO ACTION SECTIONS
   ============================================ */
.wp-block-group.has-background,
.wp-block-cover:not(.alignfull) {
  background: var(--jt-gradient-hero) !important;
  border-radius: 24px;
  padding: 4rem 2rem !important;
  margin: 4rem auto !important;
  max-width: 1000px;
  text-align: center;
}

.wp-block-group.has-background h2,
.wp-block-group.has-background h3 {
  color: var(--jt-white) !important;
}

.wp-block-group.has-background p {
  color: rgba(255,255,255,0.9) !important;
}

/* ============================================
   FOOTER
   ============================================ */
.ast-footer,
.site-footer,
footer {
  background: var(--jt-dark) !important;
  color: var(--jt-gray-300);
  padding: 3rem 0;
}

.ast-footer a,
.site-footer a {
  color: var(--jt-gray-300);
  transition: var(--jt-transition);
}

.ast-footer a:hover,
.site-footer a:hover {
  color: var(--jt-primary-light);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .wp-block-columns {
    flex-direction: column;
  }

  .wp-block-column {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 768px) {
  .wp-block-cover.alignfull {
    min-height: 80vh !important;
  }

  .wp-block-cover h1 {
    font-size: 2.5rem !important;
  }

  .wp-block-cover p {
    font-size: 1.125rem !important;
  }

  .wp-block-buttons {
    flex-direction: column;
    align-items: center;
  }

  .wp-block-button__link {
    width: 100%;
    max-width: 280px;
  }

  .wp-block-column {
    padding: 1.5rem !important;
  }
}

/* ============================================
   ANIMATIONS ON SCROLL (via CSS)
   ============================================ */
.wp-block-column,
.entry-content > h2,
.wp-block-buttons {
  animation: fadeInUp 0.6s ease-out forwards;
}

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

/* Stagger animation for columns */
.wp-block-column:nth-child(1) { animation-delay: 0.1s; }
.wp-block-column:nth-child(2) { animation-delay: 0.2s; }
.wp-block-column:nth-child(3) { animation-delay: 0.3s; }
.wp-block-column:nth-child(4) { animation-delay: 0.4s; }

/* ============================================
   GLASSMORPHISM EFFECTS
   ============================================ */
.has-glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ============================================
   LINK STYLES
   ============================================ */
a:not(.wp-block-button__link) {
  color: var(--jt-primary);
  text-decoration: none;
  transition: var(--jt-transition);
}

a:not(.wp-block-button__link):hover {
  color: var(--jt-primary-dark);
}

/* ============================================
   FORMS
   ============================================ */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea,
select {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid var(--jt-gray-300);
  border-radius: 12px;
  font-size: 1rem;
  transition: var(--jt-transition);
  background: var(--jt-white);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--jt-primary);
  outline: none;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-gradient {
  background: var(--jt-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient {
  background: var(--jt-gradient-primary);
}

.shadow-glow {
  box-shadow: var(--jt-shadow-glow);
}

/* ============================================
   INNER PAGES (Documentation, etc.)
   ============================================ */

/* Page header for pages without cover block */
.page:not(.home) .entry-content > h1.wp-block-heading:first-child,
.page:not(.home) .entry-content > h1.wp-block-heading:first-of-type {
  background: var(--jt-gradient-hero);
  color: var(--jt-white) !important;
  text-align: center;
  padding: 4rem 2rem !important;
  margin: -2rem -2rem 3rem -2rem !important;
  font-size: clamp(2.5rem, 5vw, 3.5rem) !important;
  border-radius: 0 0 30px 30px;
  position: relative;
  overflow: hidden;
}

.page:not(.home) .entry-content > h1.wp-block-heading:first-child::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(236, 72, 153, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(99, 102, 241, 0.4) 0%, transparent 50%);
  z-index: 0;
}

.page:not(.home) .entry-content > h1.wp-block-heading:first-child + p {
  text-align: center;
  font-size: 1.25rem !important;
  color: var(--jt-gray-500) !important;
  max-width: 700px;
  margin: -2rem auto 3rem auto !important;
}

/* Inner page container */
.page:not(.home) .entry-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

/* Section headings on inner pages */
.page:not(.home) .entry-content h2.wp-block-heading {
  font-size: 2rem !important;
  color: var(--jt-gray-900);
  margin-top: 3rem !important;
  margin-bottom: 1.5rem !important;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--jt-primary);
  display: inline-block;
}

.page:not(.home) .entry-content h2.wp-block-heading::after {
  display: none;
}

.page:not(.home) .entry-content h3.wp-block-heading {
  font-size: 1.5rem !important;
  color: var(--jt-gray-900);
  margin-top: 2rem !important;
  margin-bottom: 1rem !important;
}

/* ============================================
   LISTS STYLING
   ============================================ */
.wp-block-list,
.entry-content ul,
.entry-content ol {
  margin: 1.5rem 0 !important;
  padding-left: 0 !important;
  list-style: none !important;
}

.wp-block-list li,
.entry-content ul li,
.entry-content ol li {
  position: relative;
  padding: 0.75rem 1rem 0.75rem 3rem !important;
  margin-bottom: 0.5rem !important;
  background: var(--jt-gray-100);
  border-radius: 12px;
  font-size: 1rem;
  color: var(--jt-gray-700);
  transition: var(--jt-transition);
}

.wp-block-list li:hover,
.entry-content ul li:hover,
.entry-content ol li:hover {
  background: var(--jt-white);
  box-shadow: var(--jt-shadow-md);
  transform: translateX(4px);
}

/* Ordered list numbers */
.entry-content ol {
  counter-reset: item;
}

.entry-content ol li::before {
  counter-increment: item;
  content: counter(item);
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background: var(--jt-gradient-primary);
  color: var(--jt-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Unordered list bullets */
.entry-content ul:not(.wp-block-list) li::before,
ul.wp-block-list li::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--jt-gradient-primary);
  border-radius: 50%;
}

/* Nested lists */
.entry-content li ul,
.entry-content li ol {
  margin-top: 0.75rem !important;
  margin-bottom: 0 !important;
}

.entry-content li li {
  background: var(--jt-white);
  border: 1px solid var(--jt-gray-300);
}

/* Strong text in lists */
.entry-content li strong {
  color: var(--jt-gray-900);
  font-weight: 600;
}

/* ============================================
   LINKS IN CONTENT
   ============================================ */
.entry-content p a,
.entry-content li a {
  color: var(--jt-primary);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: var(--jt-transition);
}

.entry-content p a:hover,
.entry-content li a:hover {
  color: var(--jt-primary-dark);
  border-bottom-color: var(--jt-primary);
}

/* ============================================
   SEPARATORS ON INNER PAGES
   ============================================ */
.page:not(.home) hr.wp-block-separator {
  margin: 3rem 0 !important;
  max-width: 100%;
  background: var(--jt-gray-300);
}

/* ============================================
   PARAGRAPHS ON INNER PAGES
   ============================================ */
.page:not(.home) .entry-content > p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--jt-gray-600);
  margin-bottom: 1.5rem !important;
}

/* ============================================
   CODE BLOCKS (if any)
   ============================================ */
code,
.entry-content code {
  background: var(--jt-gray-100);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.9em;
  color: var(--jt-secondary);
}

pre {
  background: var(--jt-dark);
  color: var(--jt-gray-100);
  padding: 1.5rem;
  border-radius: 12px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

/* ============================================
   BLOCKQUOTES
   ============================================ */
blockquote,
.wp-block-quote {
  border-left: 4px solid var(--jt-primary);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--jt-gray-700);
}

blockquote p,
.wp-block-quote p {
  margin-bottom: 0 !important;
  font-size: 1.125rem;
}

/* ============================================
   TABLES (if any)
   ============================================ */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--jt-shadow-md);
}

th {
  background: var(--jt-gradient-primary);
  color: var(--jt-white);
  padding: 1rem;
  text-align: left;
  font-weight: 600;
}

td {
  padding: 1rem;
  border-bottom: 1px solid var(--jt-gray-200);
}

tr:hover td {
  background: var(--jt-gray-100);
}

/* ============================================
   FEATURES PAGE ADJUSTMENTS
   ============================================ */
.page .entry-content > .wp-block-columns {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Reset column styles for non-homepage columns if they look off */
.page:not(.home) .wp-block-column h3:first-child::before {
  display: none;
}
