/* Basic CSS file to ensure proper loading of styles */

/* Ensure proper favicon and icon handling */
.icon {
  width: 16px;
  height: 16px;
}

/* Basic body styling */
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* Responsive image handling */
img {
  max-width: 100%;
  height: auto;
}

/* Hide elements that should not be visible */
.hidden {
  display: none !important;
}

/* Custom animations for poll voting */
@keyframes fill-progress {
  0% {
    width: 0%;
  }
  100% {
    width: var(--target-width);
  }
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
  }
}

@keyframes vote-select {
  0% {
    transform: scale(1);
    background-color: transparent;
  }
  50% {
    transform: scale(1.02);
    background-color: rgba(99, 102, 241, 0.1);
  }
  100% {
    transform: scale(1);
    background-color: rgba(99, 102, 241, 0.15);
  }
}

.animate-fill-progress {
  animation: fill-progress 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-pulse-glow {
  animation: pulse-glow 1s cubic-bezier(0.4, 0, 0.6, 1);
}

.animate-vote-select {
  animation: vote-select 0.3s ease-out;
}

/* Rich Text Styles for Inscriptions */
.rich-text-content {
  font-size: 1.125rem;
  line-height: 1.75;
}

.rich-text-content h1 {
  font-size: 2rem;
  font-weight: 900;
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.05em;
}

.rich-text-content h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

[contenteditable]:empty:before {
  content: attr(data-placeholder);
  color: #94a3b8;
  pointer-events: none;
  display: block;
}

.rich-text-content p {
  margin-bottom: 1.25rem;
}

.rich-text-content b, .rich-text-content strong {
  font-weight: 700;
}

.rich-text-content i, .rich-text-content em {
  font-style: italic;
}

.rich-text-content ul {
  list-style-type: disc;
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.rich-text-content ol {
  list-style-type: decimal;
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.rich-text-content a {
  color: #4f46e5;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 600;
}

.rich-text-content img {
  border-radius: 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
/* --- Animation System --- */
.animate-in { animation-fill-mode: both; animation-duration: 300ms; animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
.duration-300 { animation-duration: 300ms; }
.duration-500 { animation-duration: 500ms; }
.duration-700 { animation-duration: 700ms; }
.duration-1000 { animation-duration: 1000ms; }
.fade-in { animation-name: fadeIn; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.zoom-in-95 { animation-name: zoomIn95; }
@keyframes zoomIn95 { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.slide-in-from-bottom-full { animation-name: slideInBottomFull; }
@keyframes slideInBottomFull { from { transform: translateY(100%); } to { transform: translateY(0); } }
.slide-in-from-bottom-4 { animation-name: slideInBottom4; }
@keyframes slideInBottom4 { from { transform: translateY(1rem); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.slide-in-from-top-4 { animation-name: slideInTop4; }
@keyframes slideInTop4 { from { transform: translateY(-1rem); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.slide-in-from-bottom-20 { animation-name: slideInBottom20; }
@keyframes slideInBottom20 { from { transform: translateY(5rem); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.animate-backdrop { animation: backdropFade 0.5s ease-out forwards; }
@keyframes backdropFade { from { opacity: 0; backdrop-filter: blur(0px); } to { opacity: 1; backdrop-filter: blur(12px); } }
.zoom-in { animation-name: zoomIn; }
@keyframes zoomIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.slide-in-from-bottom-0 { animation-name: slideInBottom0; }
@keyframes slideInBottom0 { from { transform: translateY(0); } to { transform: translateY(0); } }
