/* Course Banner CSS Variables */
:root {
  --course-primary: hsl(18, 100%, 60%);
  --course-secondary: hsl(0, 100%, 60%);
  --course-gradient: linear-gradient(
    135deg,
    var(--course-primary),
    var(--course-secondary)
  );
  --course-shadow: 0 10px 30px -10px hsl(18 100% 60% / 0.3);
  --course-glow: 0 0 20px hsl(18 100% 60% / 0.4);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Course Banner Styles */
.course-banner {
  position: fixed;
  z-index: 1000;
  bottom: 0;
  width: 100%;
}

/* Desktop Version */
.course-banner__desktop {
  display: block;
  bottom: 1.5rem;
  left: 1.5rem;
  padding: 0.5rem;
  animation: slideUp 0.3s ease-out;
}

.course-banner__card {
  position: relative;
  background: var(--course-gradient);
  padding: 1.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--course-glow);
  max-width: 24rem;
  border-radius: 0.75rem;
  border: none;
}

.course-banner__card:hover {
  transform: scale(1.05);
}

.course-banner__card--mobile {
  width: 100%;
  max-width: none; /* убираем ограничение 24rem */
  border-radius: 0.75rem;
  animation: pulseGlow 3s ease-in-out infinite;
}

.course-banner__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  height: 1.5rem;
  width: 1.5rem;
  padding: 0;
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 0.25rem;
  transition: background-color 0.2s;
}

.course-banner__close:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.course-banner__content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.course-banner__content--mobile {
  align-items: center;
  padding-right: 2rem;
  gap: 0.75rem;
}

.course-banner__icon {
  flex-shrink: 0;
}

.course-banner__image {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.course-banner__image--mobile {
  width: 2.5rem;
  height: 2.5rem;
}

.course-banner__text {
  color: white;
}

.course-banner__text--mobile {
  flex: 1;
}

.course-banner__title {
  font-weight: bold;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.course-banner__title--mobile {
  font-size: 1rem;
  line-height: 1.25;
  margin-bottom: 0.25rem;
}

.course-banner__subtitle {
  font-size: 0.875rem;
  opacity: 0.9;
  margin-bottom: 0.75rem;
}

.course-banner__cta {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.course-banner__cta--mobile {
  font-size: 0.75rem;
}

.course-banner__shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
  border-radius: 0.75rem;
  pointer-events: none;
}

/* Mobile Version */
.course-banner__mobile {
  display: none;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem;
  animation: slideUp 0.3s ease-out;
}

/* Animations */
@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.02);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Hidden State */
.course-banner--hidden {
  display: none !important;
}

/* Media Queries */
@media (max-width: 767px) {
  .course-banner__desktop {
    display: none;
  }

  .course-banner__mobile {
    display: block;
  }
}
