/* ============================= */
/*      LANDING PAGES IMPORTS    */
/* ============================= */

/* Component imports */
@import '../components/landing/hero.css';
@import '../components/landing/buttons.css';
@import '../components/landing/sobre-conteudo.css';
@import '../components/landing/problems.css';
@import '../components/landing/modules.css';
@import '../components/landing/testimonials.css';
@import '../components/landing/pricing.css';
@import '../components/landing/author.css';
@import '../components/landing/faq.css';
@import '../components/landing/urgency.css';

/* ============================= */
/*      LANDING PAGES GLOBAL     */
/* ============================= */

/* Base structure for all landing pages */
main.landing-curso {
  background-color: var(--azul);
  color: var(--branco);
}

/* General container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-4);
}

/* Common section spacing */
.section {
  padding: var(--spacing-16) 0;
}

/* Typography overrides for landing pages */
.landing-curso h2 {
  font-size: clamp(var(--font-size-2xl), 3.5vw, var(--font-size-4xl));
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  margin-bottom: var(--spacing-8);
  text-align: center;
}

.landing-curso h3 {
  font-size: clamp(var(--font-size-xl), 2.5vw, var(--font-size-2xl));
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  margin-bottom: var(--spacing-6);
}

.landing-curso p {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--spacing-4);
}

/* Button components for landing pages */
.btn-primary-landing {
  background: linear-gradient(135deg, var(--primary-cyan), var(--primary-green));
  color: #000000;
  padding: var(--spacing-4) var(--spacing-8);
  border-radius: 8px;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary-landing::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: left 0.5s ease;
}

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

.btn-primary-landing:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 174, 239, 0.3);
  color: #000000;
}

.btn-secondary-landing {
  background: transparent;
  color: var(--primary-cyan);
  border: 2px solid var(--primary-cyan);
  padding: var(--spacing-3) var(--spacing-6);
  border-radius: var(--border-radius-lg);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-secondary-landing:hover {
  background: var(--primary-cyan);
  color: var(--neutral-white);
  transform: translateY(-2px);
}

/* Badge components */
.badge {
  background: linear-gradient(135deg, var(--primary-green), var(--primary-cyan));
  color: var(--neutral-white);
  padding: var(--spacing-1) var(--spacing-3);
  border-radius: var(--border-radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  display: inline-block;
  margin-bottom: var(--spacing-4);
}

.badge-warning {
  background: linear-gradient(135deg, #ff6b6b, #ff8a80);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

/* Card components */
.card-landing {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-xl);
  padding: var(--spacing-8);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.card-landing:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border-color: rgba(0, 174, 239, 0.3);
}

/* Grid layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-8);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-6);
}

/* Animations */
.animate-fade-in {
  animation: fadeIn 0.8s ease-out;
}

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

.animate-slide-in-left {
  animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-slide-in-right {
  animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scrollbar styling for landing pages */
.landing-curso ::-webkit-scrollbar {
  width: 8px;
}

.landing-curso ::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.landing-curso ::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary-cyan), var(--primary-green));
  border-radius: 4px;
}

.landing-curso ::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--primary-green), var(--primary-cyan));
}

/* ============================= */
/*         RESPONSIVE DESIGN     */
/* ============================= */

@media (max-width: 768px) {
  .container {
    padding: 0 var(--spacing-3);
  }

  .section {
    padding: var(--spacing-12) 0;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: var(--spacing-4);
  }

  .btn-primary-landing {
    font-size: var(--font-size-base);
    padding: var(--spacing-3) var(--spacing-6);
  }

  .card-landing {
    padding: var(--spacing-6);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-2);
  }

  .section {
    padding: var(--spacing-8) 0;
  }

  .landing-curso h2 {
    font-size: var(--font-size-xl);
  }

  .landing-curso h3 {
    font-size: var(--font-size-lg);
  }

  .landing-curso p {
    font-size: var(--font-size-base);
  }

  .btn-primary-landing {
    font-size: var(--font-size-sm);
    padding: var(--spacing-2) var(--spacing-4);
  }

  .card-landing {
    padding: var(--spacing-4);
  }
}

/* ============================= */
/*         ACCESSIBILITY         */
/* ============================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: high) {
  .card-landing {
    background: var(--neutral-black);
    border-color: var(--neutral-white);
  }

  .btn-primary-landing {
    background: var(--neutral-white);
    color: var(--neutral-black);
  }

  .btn-secondary-landing {
    border-color: var(--neutral-white);
    color: var(--neutral-white);
  }
}

/* Focus styles */
.btn-primary-landing:focus,
.btn-secondary-landing:focus {
  outline: 3px solid rgba(0, 174, 239, 0.5);
  outline-offset: 3px;
}

/* High contrast text */
@media (prefers-contrast: high) {
  .landing-curso {
    color: var(--neutral-white);
  }
}
/* buttons.css must be imported before rules; moved to top */
