/* ===================================
   FREE DEMO CLASS BANNER
   Eye-catching promotional banner
   =================================== */

/* Top Sticky Banner */
.free-demo-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: white;
  padding: 8px 50px 8px 20px;
  text-align: center;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: nowrap;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.banner-icon {
  font-size: 18px;
  flex-shrink: 0;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.banner-text {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.banner-text .highlight {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0 3px;
}

.banner-cta {
  background: white;
  color: #ff6b35;
  padding: 5px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  white-space: nowrap;
}

.banner-cta:hover {
  background: #ffd700;
  color: #333;
  transform: scale(1.05);
}

.banner-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.banner-close:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-50%) rotate(90deg);
}

/* Hero Section FREE Badge */
.free-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: white;
  padding: 8px 20px;
  border-radius: 25px;
  font-weight: 800;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
  animation: pulse 2s infinite;
  margin-bottom: 15px;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
  }
}

/* Floating FREE Tag */
.floating-free-tag {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  color: white;
  padding: 15px 20px;
  border-radius: 8px 0 0 8px;
  box-shadow: -4px 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 9998;
  cursor: pointer;
  transition: all 0.3s ease;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.floating-free-tag:hover {
  right: -5px;
  box-shadow: -6px 6px 20px rgba(0, 0, 0, 0.3);
}

.floating-free-tag .tag-text {
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Ribbon Style Badge */
.ribbon-badge {
  position: relative;
  background: #ff6b35;
  color: white;
  padding: 10px 30px;
  font-weight: 800;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: inline-block;
  margin: 20px 0;
}

.ribbon-badge::before,
.ribbon-badge::after {
  content: "";
  position: absolute;
  top: 0;
  width: 0;
  height: 0;
  border-style: solid;
}

.ribbon-badge::before {
  left: -20px;
  border-width: 20px 20px 20px 0;
  border-color: transparent #ff6b35 transparent transparent;
}

.ribbon-badge::after {
  right: -20px;
  border-width: 20px 0 20px 20px;
  border-color: transparent transparent transparent #ff6b35;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .free-demo-banner {
    padding: 8px 40px 8px 12px;
    min-height: 44px;
  }

  .banner-content {
    gap: 8px;
  }

  .banner-text {
    font-size: 12px;
  }

  .banner-text .highlight {
    font-size: 13px;
  }

  .banner-cta {
    padding: 4px 12px;
    font-size: 12px;
  }

  .banner-icon {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .free-demo-banner {
    padding: 6px 36px 6px 10px;
  }

  .banner-text {
    font-size: 11px;
  }

  .banner-text .highlight {
    font-size: 12px;
  }

  /* Hide icon on very small screens to save space */
  .banner-icon {
    display: none;
  }
}
