/* ========================================
   CURSO PROMO - Banner & Pop-up
   Sistema Milionário - 497 MT
======================================== */

/* ========== BANNER FIXO ========== */
.curso-banner {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border: 2px solid #f1c40f;
  border-radius: 16px;
  padding: 20px;
  margin: 20px 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(241, 196, 15, 0.2);
}

.curso-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(241, 196, 15, 0.1) 0%, transparent 70%);
  animation: bannerGlow 4s ease-in-out infinite;
}

@keyframes bannerGlow {
  0%, 100% { transform: translate(0, 0); opacity: 0.5; }
  50% { transform: translate(10%, 10%); opacity: 1; }
}

.curso-banner-content {
  position: relative;
  z-index: 1;
}

.curso-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%);
  color: #000;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.curso-banner-badge::before {
  content: '🎓';
}

.curso-banner-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.curso-banner-title span {
  color: #f1c40f;
}

.curso-banner-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 16px 0;
  line-height: 1.5;
}

.curso-banner-modules {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.curso-module {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.curso-module-icon {
  font-size: 14px;
}

.curso-banner-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.curso-price {
  display: flex;
  flex-direction: column;
}

.curso-price-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
}

.curso-price-value {
  font-size: 48px;
  font-weight: 700;
  color: #22c55e;
}

.curso-price-value small {
  font-size: 24px;
  color: rgba(255, 255, 255, 0.6);
}

.curso-banner-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.curso-banner-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.curso-banner-cta::before {
  content: '';
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* ========== POP-UP INTELIGENTE ========== */
.curso-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.curso-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.curso-popup {
  background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
  border: 2px solid #f1c40f;
  border-radius: 24px;
  padding: 0;
  max-width: 400px;
  width: 100%;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(241, 196, 15, 0.3);
  margin-top: 20px;
  margin-bottom: 20px;
}

.curso-popup-overlay.active .curso-popup {
  transform: scale(1) translateY(0);
}

.curso-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
}

.curso-popup-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.curso-popup-header {
  background: linear-gradient(135deg, #12aa87 0%, #12aa87 100%);
  padding: 24px 20px;
  text-align: center;
}

.curso-popup-features a {
    margin-top: 10px;
}

.curso-popup-emoji {
  font-size: 48px;
  margin-bottom: 8px;
  animation: popupBounce 2s ease-in-out infinite;
}

@keyframes popupBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.curso-popup-header h3 {
  font-size: 24px;
  font-weight: 700;
  color: #fafafa;
  margin: 0;
  line-height: 1.2;
}

.curso-popup-header p {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.7);
  margin: 8px 0 0 0;
}

.curso-popup-body {
  padding: 24px 20px;
  padding-bottom: 0;
}

.curso-popup-question {
  font-size: 16px;
  color: #fff;
  text-align: center;
  margin: 0 0 20px 0;
  line-height: 1.5;
}

.curso-popup-question strong {
  color: #f1c40f;
}

.curso-popup-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.curso-popup-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.curso-popup-feature-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #f1c40f 0%, #f39c12 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.curso-popup-feature-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}

.curso-popup-feature-text strong {
  color: #fff;
  display: block;
  font-size: 14px;
}

.curso-popup-price-box {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(34, 197, 94, 0.05) 100%);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  margin-bottom: 16px;
}

.curso-popup-price-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.curso-popup-price {
  font-size: 36px;
  font-weight: 700;
  color: #22c55e;
}

.curso-popup-price small {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
}

.curso-popup-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 16px 24px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}

.curso-popup-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

/*.curso-popup-cta::before {
  content: '';
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}*/

.curso-popup-skip {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  padding: 12px;
  cursor: pointer;
  margin-top: 8px;
  transition: color 0.2s;
}

.curso-popup-skip:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 480px) {
  .curso-banner {
    padding: 16px;
  }

  .curso-banner-title {
    font-size: 18px;
  }

  .curso-banner-modules {
    grid-template-columns: 1fr;
  }

  .curso-banner-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .curso-price {
    text-align: center;
    margin-bottom: 8px;
  }

  .curso-popup {
    margin: 10px;
    max-width: calc(100% - 20px);
  }

  .curso-popup-header h3 {
    font-size: 16px;
  }

  .curso-popup-price {
    font-size: 32px;
  }
}
