/*
Theme Name: Código das Milhas
Theme URI: https://codigodasmilhas.com
Description: One-page sales theme for Código das Milhas e-book by Leonardo Albuquerque. Dark theme with yellow accents and conversion-focused design.
Version: 1.0
Author: Leonardo Albuquerque
Author URI: https://instagram.com/codigodasmilhas_
Text Domain: codigo-das-milhas
Domain Path: /languages/
*/

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #000000;
  color: #fafafa;
  line-height: 1.6;
  font-feature-settings: "rlig" 1, "calt" 1;
}

/* CSS Variables - Color System */
:root {
  /* Base colors - Dark theme with black background */
  --background: #000000;
  --foreground: #fafafa;
  
  /* Card and surface colors */
  --card: #141414;
  --card-foreground: #f2f2f2;
  
  /* Muted colors */
  --muted: #1f1f1f;
  --muted-foreground: #b3b3b3;
  
  /* Primary brand colors - Yellow #FFCF00 */
  --primary: #FFCF00;
  --primary-foreground: #000000;
  --primary-glow: #ffd633;
  
  /* Secondary colors */
  --secondary: #262626;
  --secondary-foreground: #f2f2f2;
  
  /* Accent colors */
  --accent: #FFCF00;
  --accent-foreground: #000000;
  
  /* Destructive/error colors */
  --destructive: #dc2626;
  --destructive-foreground: #fafafa;
  
  /* Border and input colors */
  --border: #333333;
  --input: #262626;
  --ring: #FFCF00;
  
  /* Custom gradients */
  --gradient-hero: linear-gradient(135deg, #FFCF00 0%, #ffd633 100%);
  --gradient-premium: linear-gradient(135deg, #FFCF00 0%, #e6b800 100%);
  --gradient-dark: linear-gradient(135deg, #000000 0%, #141414 100%);
  
  /* Custom shadows */
  --shadow-glow: 0 0 30px rgba(255, 207, 0, 0.3);
  --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 207, 0, 0.2);
  --shadow-card: 0 10px 25px rgba(0, 0, 0, 0.6);
  
  --radius: 0.75rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }

/* Layout Components */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero-container {
  max-width: 1536px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-cta {
  background: var(--gradient-premium);
  color: var(--primary-foreground);
  padding: 1.5rem 3rem;
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: var(--shadow-glow);
  animation: pulse-glow 2s infinite;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(255, 207, 0, 0.5);
  text-decoration: none;
  color: var(--primary-foreground);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.25rem;
}

/* Card Styles */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-premium);
  transform: translateY(-5px);
}

/* Badge Styles */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 9999px;
  background: var(--gradient-premium);
  color: var(--primary-foreground);
}

/* Progress Bar */
.progress {
  width: 100%;
  height: 0.5rem;
  background: var(--muted);
  border-radius: 9999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-premium);
  transition: width 0.3s ease;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-dark);
  color: white;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.2;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2rem;
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 2rem;
  line-height: 1.1;
}

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

/* Alert Banner */
.alert-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: var(--destructive);
  color: var(--destructive-foreground);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
}

/* Progress Section */
.progress-section {
  margin-bottom: 1.5rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.progress-text {
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: #d1d5db;
}

.progress-sub {
  text-align: center;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: #9ca3af;
}

/* Sections */
section {
  padding: 3.5rem 0;
}

.bg-muted {
  background: var(--muted);
}

/* Grid System */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-1 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Flex Utilities */
.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

/* Text Utilities */
.text-center { text-align: center; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }

.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }

/* Spacing */
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }

/* Responsive Images */
.responsive-img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.ebook-img {
  width: 12rem;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.5));
}

/* Testimonial Styles */
.testimonial {
  background: var(--card);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.testimonial-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-name {
  font-weight: 600;
  color: var(--foreground);
}

.testimonial-username {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Stats Cards */
.stat-card {
  text-align: center;
  padding: 2rem;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  font-weight: 500;
}

/* Social Media Card */
.social-card {
  background: var(--gradient-premium);
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  transition: all 0.3s ease;
}

.social-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

.social-card a {
  color: var(--primary-foreground);
  text-decoration: none;
}

/* Animations */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 207, 0, 0.4);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 207, 0, 0.8);
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .btn-cta {
    font-size: 1.125rem;
    padding: 1rem 2rem;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .hero-section {
    padding: 2rem 0;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
}

/* Desktop Only */
@media (min-width: 769px) {
  .mobile-only { 
    display: none !important; 
  }
}

/* Mobile Only */
@media (max-width: 768px) {
  .desktop-only { 
    display: none !important; 
  }
}

/* Utility Classes */
.w-full { width: 100%; }
.max-w-xs { max-width: 20rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-6xl { max-width: 72rem; }

.mx-auto { 
  margin-left: auto; 
  margin-right: auto; 
}

.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Icon styles for Lucide icons replacement */
.icon {
  width: 1.25rem;
  height: 1.25rem;
  display: inline-block;
  vertical-align: middle;
}

.icon-sm {
  width: 1rem;
  height: 1rem;
}

.icon-lg {
  width: 1.5rem;
  height: 1.5rem;
}

/* WordPress specific styles */
.wp-block-group {
  margin-bottom: 2rem;
}

/* Hide WordPress admin bar on frontend for better UX */
.admin-bar {
  margin-top: -32px;
}

/* Ensure proper z-index for sticky elements */
.sticky-cta {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 50;
}

@media (min-width: 768px) {
  .sticky-cta {
    display: none;
  }
}