/**
 * Centralized CTA & Promotional Component Styles
 *
 * Provides responsive presentation styling for the 9 visual variants:
 * hero, landscape, horizontal, compact, inline, floating, bottom_bar, popup, modal.
 *
 * @package CeesaAcademy
 * @since 1.0.0
 */

:root {
  --cta-teal-start: #065C48;
  --cta-teal-end: #0A9373;
  --cta-dark-start: #0f172a;
  --cta-dark-end: #1e293b;
  --cta-emerald-start: #064e3b;
  --cta-emerald-end: #059669;
  --cta-orange-start: #7c2d12;
  --cta-orange-end: #ea580c;
  --cta-purple-start: #4c1d95;
  --cta-purple-end: #7c3aed;
}

/* Background Color Presets */
.bg-theme-teal {
  background: linear-gradient(135deg, var(--cta-teal-start) 0%, var(--cta-teal-end) 100%);
  color: #ffffff;
}

.bg-theme-dark {
  background: linear-gradient(135deg, var(--cta-dark-start) 0%, var(--cta-dark-end) 100%);
  color: #ffffff;
}

.bg-theme-emerald {
  background: linear-gradient(135deg, var(--cta-emerald-start) 0%, var(--cta-emerald-end) 100%);
  color: #ffffff;
}

.bg-theme-orange {
  background: linear-gradient(135deg, var(--cta-orange-start) 0%, var(--cta-orange-end) 100%);
  color: #ffffff;
}

.bg-theme-purple {
  background: linear-gradient(135deg, var(--cta-purple-start) 0%, var(--cta-purple-end) 100%);
  color: #ffffff;
}

/* Base Wrapper */
.ceesa-cta-wrap {
  border-radius: var(--radius-lg, 16px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  margin: 32px 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ceesa-cta-title {
  color: #ffffff;
  font-weight: 800;
  margin: 0 0 8px;
  line-height: 1.25;
}

.ceesa-cta-subtitle {
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  margin: 0 0 16px;
  line-height: 1.5;
}

.ceesa-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(4px);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: #ffffff;
}

/* Buttons */
.ceesa-cta-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.ceesa-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none !important;
  border-radius: 50px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.ceesa-cta-btn-primary {
  background: #ffffff;
  color: #065C48 !important;
  padding: 12px 26px;
  font-size: 15px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.ceesa-cta-btn-primary:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.ceesa-cta-btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff !important;
  padding: 12px 22px;
  font-size: 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.ceesa-cta-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* 1. Variant: Hero */
.ceesa-cta-hero {
  padding: 60px 48px;
}

.ceesa-cta-hero-inner {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 40px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 991px) {
  .ceesa-cta-hero-inner {
    grid-template-columns: 1fr;
  }
  .ceesa-cta-hero {
    padding: 36px 24px;
  }
}

.ceesa-cta-hero .ceesa-cta-title {
  font-size: 36px;
}

.ceesa-cta-hero .ceesa-cta-subtitle {
  font-size: 17px;
}

.ceesa-cta-hero .ceesa-cta-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 24px;
}

.ceesa-cta-graphic img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* 2. Variant: Landscape */
.ceesa-cta-landscape {
  padding: 32px 40px;
}

.ceesa-cta-landscape-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.ceesa-cta-landscape .ceesa-cta-title {
  font-size: 24px;
}

.ceesa-cta-landscape .ceesa-cta-subtitle {
  margin-bottom: 0;
  max-width: 650px;
}

/* 3. Variant: Horizontal */
.ceesa-cta-horizontal {
  padding: 28px 32px;
}

.ceesa-cta-horizontal-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.ceesa-cta-horizontal .ceesa-cta-title {
  font-size: 20px;
}

.ceesa-cta-horizontal .ceesa-cta-subtitle {
  margin-bottom: 0;
  font-size: 14px;
}

/* 4. Variant: Compact (Sidebar & Card) */
.ceesa-cta-compact {
  padding: 24px;
}

.ceesa-cta-compact .ceesa-cta-title {
  font-size: 17px;
}

.ceesa-cta-compact .ceesa-cta-subtitle {
  font-size: 13px;
  margin-bottom: 0;
}

/* 5. Variant: Inline (In-Article Callout) */
.ceesa-cta-inline {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.ceesa-cta-inline-icon {
  font-size: 32px;
  color: rgba(255, 255, 255, 0.9);
  flex-shrink: 0;
}

.ceesa-cta-inline .ceesa-cta-title {
  font-size: 18px;
  margin-bottom: 4px;
}

.ceesa-cta-inline .ceesa-cta-subtitle {
  font-size: 13px;
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .ceesa-cta-inline {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* 6. Variant: Floating (Sticky Bottom-Right) */
.ceesa-cta-floating {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 320px;
  max-width: calc(100vw - 48px);
  padding: 18px 20px;
  border-radius: 14px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  z-index: 9990;
  animation: slide-up 0.4s ease forwards;
}

.ceesa-cta-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 20px;
  cursor: pointer;
}

@keyframes slide-up {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* 7. Variant: Bottom Bar (Sticky Full-Width) */
.ceesa-cta-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 24px;
  z-index: 9980;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.ceesa-cta-bottom-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ceesa-cta-close-bar {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 22px;
  cursor: pointer;
  padding: 0 6px;
}
