/* Custom Styles & Visual Effects for Zipify */

/* Root tokens for custom visual extensions */
:root {
  --glass-bg-light: rgba(255, 255, 255, 0.75);
  --glass-bg-dark: rgba(15, 23, 42, 0.8);
  --glass-border-light: rgba(241, 245, 249, 0.8);
  --glass-border-dark: rgba(30, 41, 59, 0.7);
}

/* Base custom resets and scrollbar styling */
body {
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-outfit {
  font-family: 'Outfit', sans-serif;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.dark ::-webkit-scrollbar-thumb {
  background: #334155;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Glassmorphism Classes */
.header-glass {
  background: var(--glass-bg-light);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border-light);
}

.dark .header-glass {
  background: var(--glass-bg-dark);
  border-bottom: 1px solid var(--glass-border-dark);
}

.card-glass {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.dark .card-glass {
  background: rgba(15, 23, 42, 0.5);
}

/* Animation Keyframes */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes pulseGlow {
  0%, 100% { border-color: rgba(59, 130, 246, 0.4); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.1); }
  50% { border-color: rgba(59, 130, 246, 0.8); box-shadow: 0 0 12px 2px rgba(59, 130, 246, 0.2); }
}

/* Animation Helpers */
.animate-fade-in {
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slide-up {
  animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.drag-pulse {
  animation: pulseGlow 1.5s infinite;
}

/* Loading spinner */
.spinner {
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top: 3px solid #3b82f6;
  width: 24px;
  height: 24px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Rich interactive buttons */
.btn-premium {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-premium::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 120%;
  background: rgba(255, 255, 255, 0.15);
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%;
  transition: transform 0.5s ease;
}

.btn-premium:active::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 0;
  transition: 0s;
}

/* Accordion transition utility */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-item.active .accordion-content {
  max-height: 200px;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

/* Toast Notifications styling */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: rgba(15, 23, 42, 0.9);
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast.toast-error {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  backdrop-filter: blur(12px);
}

.toast.toast-success {
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.1);
  color: #86efac;
  backdrop-filter: blur(12px);
}

/* Custom styled inputs for Admin editor */
.editor-textarea {
  min-height: 250px;
  font-family: inherit;
}

/* Restore heading styles inside blog content (prose container) */
.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
  font-family: 'Outfit', sans-serif;
}

.prose h1 {
  font-size: 2em;
  font-weight: 800;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 0.89em;
}

.prose h2 {
  font-size: 1.5em;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 1.56em;
  margin-bottom: 0.89em;
}

.prose h3 {
  font-size: 1.25em;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 1.33em;
  margin-bottom: 0.67em;
}

.prose h4 {
  font-size: 1em;
  font-weight: 600;
  line-height: 1.5;
  margin-top: 1.2em;
  margin-bottom: 0.6em;
}

.prose h5 {
  font-size: 0.875em;
  font-weight: 600;
  line-height: 1.5;
  margin-top: 1.11em;
  margin-bottom: 0.44em;
}

.prose h6 {
  font-size: 0.85em;
  font-weight: 600;
  line-height: 1.5;
  margin-top: 1em;
  margin-bottom: 0.44em;
}
