/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Campaign Status Colors */
.status-analyzing {
  background-color: #fef3c7;
  color: #92400e;
}

.status-analyzed {
  background-color: #dbeafe;
  color: #1e40af;
}

.status-generating {
  background-color: #e0e7ff;
  color: #3730a3;
}

.status-completed {
  background-color: #d1fae5;
  color: #065f46;
}

.status-failed {
  background-color: #fee2e2;
  color: #991b1b;
}

/* Flash Messages */
.fixed.top-4.right-4 {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Smooth transitions */
a, button {
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out;
}

/* Form focus improvements */
input:focus, textarea:focus, select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1);
}

/* Circular Grade Meter */
.grade-meter-container {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto;
}

.grade-meter {
  transform: rotate(-90deg);
}

.grade-meter-progress {
  transition: stroke-dashoffset 0.3s ease;
}

.grade-meter-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.grade-meter-letter {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
}

.grade-meter-score {
  font-size: 1.25rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

/* Archetype Reveal Animations */
.archetype-reveal {
  animation: fadeIn 0.5s ease-out;
}

.archetype-icon-container {
  position: relative;
  display: inline-block;
  animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.archetype-icon-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  opacity: 0.2;
  animation: pulse 2s ease-in-out infinite;
}

.archetype-sparkles {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.sparkle {
  position: absolute;
  font-size: 1.5rem;
  opacity: 0;
  animation: sparkle 1.5s ease-in-out infinite;
}

.sparkle-1 {
  top: 0;
  left: 20%;
  animation-delay: 0s;
}

.sparkle-2 {
  top: 10%;
  right: 15%;
  animation-delay: 0.3s;
}

.sparkle-3 {
  bottom: 20%;
  left: 10%;
  animation-delay: 0.6s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.2;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.3;
  }
}

@keyframes sparkle {
  0%, 100% {
    opacity: 0;
    transform: scale(0.5);
  }
  50% {
    opacity: 1;
    transform: scale(1) rotate(180deg);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.animate-fade-in-up-delayed {
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Copy button feedback */
.copy-button, .copy-button-tweet {
  transition: all 0.2s ease-in-out;
}

.copy-button:active, .copy-button-tweet:active {
  transform: scale(0.95);
}
