/**
 * Artistic Elements CSS
 * Enhanced visual styles for creative elements
 */

/* Canvas Containers */
.canvas-container {
  position: relative;
  overflow: hidden;
}

/* Artistic Overlays */
.artistic-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

/* Gradient Text Effects */
.gradient-artistic-text {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  position: relative;
}

.gradient-artistic-text::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: blur(8px);
  opacity: 0.5;
}

/* Artistic Cards */
.artistic-card {
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.artistic-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.1) 0%, 
    rgba(37, 99, 235, 0.05) 50%, 
    rgba(29, 78, 216, 0.1) 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.artistic-card:hover::before {
  opacity: 1;
}

.artistic-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  transform: scale(0);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
  pointer-events: none;
  z-index: -1;
}

.artistic-card:hover::after {
  transform: scale(1);
  opacity: 1;
}

/* Artistic Buttons */
.artistic-button {
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.3s ease;
}

.artistic-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.8) 0%, 
    rgba(37, 99, 235, 0.8) 100%);
  z-index: -1;
  transition: opacity 0.3s ease;
}

.artistic-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0) 0%, 
    rgba(255, 255, 255, 0.2) 50%, 
    rgba(255, 255, 255, 0) 100%);
  z-index: 1;
  transition: left 0.5s ease;
}

.artistic-button:hover::after {
  left: 100%;
}

/* Artistic Borders */
.artistic-border {
  position: relative;
  border: none;
}

.artistic-border::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid transparent;
  border-image: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.5) 0%, 
    rgba(37, 99, 235, 0.5) 50%, 
    rgba(29, 78, 216, 0.5) 100%);
  border-image-slice: 1;
  z-index: 1;
  pointer-events: none;
}

/* Artistic Shadows */
.artistic-shadow {
  box-shadow: 
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05),
    0 0 20px 5px rgba(59, 130, 246, 0.1);
  transition: box-shadow 0.3s ease;
}

.artistic-shadow:hover {
  box-shadow: 
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04),
    0 0 30px 10px rgba(59, 130, 246, 0.2);
}

/* Artistic Backgrounds */
.artistic-bg {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.artistic-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(37, 99, 235, 0.1) 0%, transparent 50%);
  z-index: -1;
}

/* Artistic Animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.artistic-float {
  animation: float 6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.artistic-pulse {
  animation: pulse 4s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.artistic-shimmer {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 25%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}

/* Artistic Chart Containers */
.artistic-chart-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05),
    0 0 20px 5px rgba(59, 130, 246, 0.05);
  transition: all 0.3s ease;
}

.artistic-chart-container:hover {
  box-shadow: 
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04),
    0 0 30px 10px rgba(59, 130, 246, 0.1);
  transform: translateY(-5px);
}

/* Artistic Data Points */
.artistic-data-point {
  position: relative;
}

.artistic-data-point::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  background: radial-gradient(
    circle at center,
    rgba(59, 130, 246, 0.8) 0%,
    rgba(59, 130, 246, 0) 70%
  );
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  animation: pulse 2s infinite;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .gradient-artistic-text::after {
    filter: blur(5px);
  }
  
  .artistic-card::after {
    display: none;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .artistic-card::before {
    background: linear-gradient(135deg, 
      rgba(59, 130, 246, 0.15) 0%, 
      rgba(37, 99, 235, 0.1) 50%, 
      rgba(29, 78, 216, 0.15) 100%);
  }
  
  .artistic-shadow {
    box-shadow: 
      0 10px 15px -3px rgba(0, 0, 0, 0.3),
      0 4px 6px -2px rgba(0, 0, 0, 0.2),
      0 0 20px 5px rgba(59, 130, 246, 0.15);
  }
  
  .artistic-shadow:hover {
    box-shadow: 
      0 20px 25px -5px rgba(0, 0, 0, 0.3),
      0 10px 10px -5px rgba(0, 0, 0, 0.2),
      0 0 30px 10px rgba(59, 130, 246, 0.25);
  }
} 