/* Decorative Elements for Visual Enhancement */

/* Hero Section - Decorative Background Pattern */
.welcome-panel {
  position: relative;
  overflow: hidden;
}

.welcome-panel::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.welcome-panel::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.welcome-panel > * {
  position: relative;
  z-index: 1;
}

/* Hero Content - Decorative Icon */
.hero-content {
  position: relative;
}

.hero-content::before {
  content: '🎌';
  position: absolute;
  top: -20px;
  right: -20px;
  font-size: 4rem;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}

/* Learning Path - Level Icons */
.path-card {
  position: relative;
  overflow: hidden;
}

.path-card::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.path-card[data-level="n5"]::after {
  content: '📚';
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 1.5rem;
  opacity: 0.3;
  z-index: 1;
}

.path-card[data-level="n4"]::after {
  content: '📖';
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 1.5rem;
  opacity: 0.3;
  z-index: 1;
}

.path-card[data-level="n3"]::after {
  content: '📝';
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 1.5rem;
  opacity: 0.3;
  z-index: 1;
}

.path-card[data-level="news"]::after {
  content: '📰';
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 1.5rem;
  opacity: 0.3;
  z-index: 1;
}

.path-card > * {
  position: relative;
  z-index: 2;
}

/* Situation Cards - Enhanced with Background Patterns */
.situation-card {
  position: relative;
  overflow: hidden;
}

.situation-card::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  transition: transform 0.3s ease;
}

.situation-card:hover::before {
  transform: translate(-50%, -50%) scale(1.2);
}

.situation-card > * {
  position: relative;
  z-index: 1;
}

/* Featured Cards - Decorative Elements */
.featured-card {
  position: relative;
  overflow: hidden;
}

.featured-card::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  transition: transform 0.3s ease;
}

.featured-card:hover::before {
  transform: scale(1.3);
}

.featured-card > * {
  position: relative;
  z-index: 1;
}

/* Progress Bars - Animated Gradient */
.progress-fill-mini,
.path-progress-fill {
  position: relative;
  overflow: hidden;
}

.progress-fill-mini::after,
.path-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Section Titles - Decorative Underline */
.section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
  border-radius: 2px;
}

/* Hero Progress - Decorative Border */
.hero-progress {
  position: relative;
}

.hero-progress::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(236, 72, 153, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}

.hero-progress > * {
  position: relative;
  z-index: 1;
}

/* Path Arrow - Animated */
.path-arrow {
  position: relative;
  animation: pulse-arrow 2s ease-in-out infinite;
}

@keyframes pulse-arrow {
  0%, 100% {
    opacity: 0.6;
    transform: translateX(0);
  }
  50% {
    opacity: 1;
    transform: translateX(4px);
  }
}

/* Situation Icon - Hover Animation */
.situation-icon {
  transition: transform 0.3s ease;
}

.situation-card:hover .situation-icon {
  transform: scale(1.15) rotate(5deg);
}

/* Featured Card Button - Icon Animation */
.featured-card-btn {
  position: relative;
  overflow: hidden;
}

.featured-card-btn::after {
  content: '→';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

.featured-card-btn:hover::after {
  transform: translateY(-50%) translateX(4px);
}

/* Dark Mode Adjustments */
body.theme-dark .welcome-panel::before,
body.theme-dark .welcome-panel::after {
  opacity: 0.3;
}

body.theme-dark .path-card::before {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
}

body.theme-dark .situation-card::before {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
}

body.theme-dark .featured-card::before {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.15) 0%, rgba(59, 130, 246, 0.15) 100%);
}

body.theme-dark .hero-content::before {
  opacity: 0.15;
}

/* Mobile - Reduce decorative elements for performance */
@media (max-width: 768px) {
  .welcome-panel::before,
  .welcome-panel::after {
    display: none;
  }

  .hero-content::before {
    display: none;
  }

  .path-card::before,
  .path-card::after {
    display: none;
  }

  .situation-card::before {
    display: none;
  }

  .featured-card::before {
    display: none;
  }

  .progress-fill-mini::after,
  .path-progress-fill::after {
    animation: none;
  }
}

