/* Modern Design System Tokens */
:root {
  --bg-primary: #050505;
  --bg-surface: #0f0f0f;
  --bg-subtle: #161616;
  --text-primary: #f5f5f5;
  --text-secondary: #a1a1aa;
  --primary: #e9c349;
  --primary-glow: rgba(233, 195, 73, 0.15);
  --accent: #6366f1;
  --secondary: #735c00;
  --secondary-container: #fed65b;
  --primary-fixed-dim: #a5c8ff;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-glow: rgba(233, 195, 73, 0.1);
  --outline: #717783;
  --outline-variant: #c1c6d4;
  --on-secondary-fixed: #241a00;
  --surface-container-low: #f4f3f2;
  --surface-container: #eeeeed;
  --surface-container-high: #e9e8e7;
  --secondary-fixed-dim: #e9c349;
  --secondary-fixed: #ffe088;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.serif-text { font-family: "Noto Serif", serif; }

.scroll-progress {
  position: fixed;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: var(--secondary-fixed-dim);
  z-index: 200;
}

.category-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.08);
  border-color: rgba(115, 92, 0, 0.2);
}

.hero-input-shadow {
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
}

.premium-button {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-button:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 30px -10px rgba(115, 92, 0, 0.3);
}

/* Decorative Elements & Animations */
@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

.animate-float {
  animation: float 8s ease-in-out infinite;
}

.bg-mesh {
  background-color: #faf9f8;
  background-image: 
    radial-gradient(at 0% 0%, rgba(233, 195, 73, 0.1) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(0, 93, 172, 0.05) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(233, 195, 73, 0.08) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(0, 93, 172, 0.05) 0px, transparent 50%);
}

.blob-primary {
  background: rgba(233, 195, 73, 0.15);
  filter: blur(80px);
  border-radius: 50%;
  position: absolute;
}

.blob-secondary {
  background: rgba(0, 93, 172, 0.1);
  filter: blur(100px);
  border-radius: 50%;
  position: absolute;
}

.bg-radial-gradient {
  background: radial-gradient(circle at center, var(--tw-gradient-from) 0%, var(--tw-gradient-to) 100%);
}

/* Glassmorphism Card */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 1.5rem;
}

.glass-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
  transform: translateY(-4px);
}

.glass-search {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .glass-search {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

/* Premium Typography */
.font-heading { font-family: 'Outfit', sans-serif; }
.text-gradient {
  background: linear-gradient(135deg, #fff 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-primary-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, #fde68a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Modern Header Background */
.hero-gradient {
  background: 
    radial-gradient(circle at 20% 30%, rgba(233, 195, 73, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
    var(--bg-primary);
}

/* Floating Animation */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

svg.star-background {
  position: absolute;
  z-index: -1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

/* Scroll Progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--primary);
  z-index: 1000;
  transition: width 0.1s;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-surface);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--bg-subtle);
}

/* AOS Tweaks */
[data-aos] {
  pointer-events: none;
}
.aos-animate {
  pointer-events: auto;
}

/* From Uiverse.io by 3HugaDa3 */ 
.glass-btn {
  position: relative;
  padding: 10px 20px;
  font-size: 17px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  cursor: pointer;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: Arial, sans-serif;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.glass-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: 0.6s;
}

.glass-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.glass-btn:hover {
  transform: translateY(-3px) scale(1.02);
  background: rgba(255, 255, 255, 0.15);
  box-shadow:
    0 15px 30px rgba(0, 0, 0, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  letter-spacing: 1.5px;
}

.glass-btn:hover::before {
  left: 100%;
}

.glass-btn:hover::after {
  opacity: 1;
}

.glass-btn:active {
  transform: translateY(1px) scale(0.98);
  box-shadow:
    0 5px 15px rgba(0, 0, 0, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.2);
}

.glass-btn span {
  position: relative;
  z-index: 1;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Color Variations - Enhanced for visibility */
.glass-btn-primary {
  background: rgba(233, 195, 73, 0.35);
  border-color: rgba(233, 195, 73, 0.5);
  box-shadow: 0 15px 35px rgba(233, 195, 73, 0.2), inset 0 0 0 1px rgba(233, 195, 73, 0.4);
}
.glass-btn-primary:hover {
  background: rgba(233, 195, 73, 0.5);
  box-shadow: 0 20px 50px rgba(233, 195, 73, 0.35), inset 0 0 0 1px rgba(233, 195, 73, 0.6);
}

.glass-btn-secondary {
  background: rgba(115, 92, 0, 0.4);
  border-color: rgba(115, 92, 0, 0.5);
  box-shadow: 0 15px 35px rgba(115, 92, 0, 0.2), inset 0 0 0 1px rgba(115, 92, 0, 0.4);
}
.glass-btn-secondary:hover {
  background: rgba(115, 92, 0, 0.6);
  box-shadow: 0 20px 50px rgba(115, 92, 0, 0.35), inset 0 0 0 1px rgba(115, 92, 0, 0.6);
}

.glass-btn-danger {
  background: rgba(239, 68, 68, 0.35);
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 15px 35px rgba(239, 68, 68, 0.2), inset 0 0 0 1px rgba(239, 68, 68, 0.4);
}
.glass-btn-danger:hover {
  background: rgba(239, 68, 68, 0.5);
  box-shadow: 0 20px 50px rgba(239, 68, 68, 0.35), inset 0 0 0 1px rgba(239, 68, 68, 0.6);
}

/* New Design Utilities from Stitch */
.premium-button {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-button:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 30px -10px rgba(233, 195, 73, 0.3);
}

.hero-input-shadow {
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

.dark .hero-input-shadow {
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.6);
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}


    .answer-preview {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-clamp: 2;
        /* Compatibility */
    }

    .sidebar-sticky {
        position: sticky;
        top: 120px;
        max-height: calc(100vh - 160px);
        overflow-y: auto;
    }

    .custom-checkbox {
        appearance: none;
        width: 1.25rem;
        height: 1.25rem;
        border: 2px solid rgba(0, 0, 0, 0.1);
        border-radius: 0.375rem;
        cursor: pointer;
        position: relative;
        transition: all 0.2s;
        flex-shrink: 0;
    }

    .custom-checkbox:checked {
        background-color: #54a8a5;
        /* Secondary Color */
        border-color: #54a8a5;
    }

    .custom-checkbox:checked::after {
        content: '';
        font-size: 0.875rem;
        color: white;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .answer-content img {
        max-width: 100%;
        height: auto;
        border-radius: 1.5rem;
        margin: 2rem 0;
        box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    }

    .answer-content blockquote {
        border-left: 4px solid #54a8a5;
        padding-left: 1.5rem;
        font-style: italic;
        color: rgba(0, 0, 0, 0.6);
        margin: 2rem 0;
    }



    /* Interaction buttons styling */
    .interaction-btn {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.75rem 1.5rem;
        border-radius: 9999px;
        background-color: white;
        border: 1px solid rgba(193, 198, 212, 0.3);
        font-size: 10px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: var(--on-surface);
        transition: all 0.3s;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    }
    
    .interaction-btn:hover {
        background-color: var(--bg-primary);
        color: white;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    }
    
    .interaction-btn:active {
        transform: scale(0.95);
    }

    .newsletter-box {
        background-color: #f7f1e3; /* Light tan/gold for newsletter */
        border: 1px solid rgba(115, 92, 0, 0.1);
    }

    /* Quill Editor Integration */
    .ql-editor {
        padding: 0 !important; /* Reset padding when used as a display component */
        height: auto !important;
        overflow-y: visible !important;
    }
    .ql-editor .ql-video {
        width: 100%;
        height: 400px;
    }
    .ql-editor .ql-size-small { font-size: 0.75em; }
    .ql-editor .ql-size-large { font-size: 1.5em; }
    .ql-editor .ql-size-huge { font-size: 2.5em; }
    
    .ql-editor .ql-align-center { text-align: center; }
    .ql-editor .ql-align-right { text-align: right; }
    .ql-editor .ql-align-justify { text-align: justify; }

    /* Ensure prose doesn't override quill specific font sizes */
    .prose .ql-size-small { font-size: 0.75em !important; }
    .prose .ql-size-large { font-size: 1.5em !important; }
    .prose .ql-size-huge { font-size: 2.5em !important; }

    /* Fix Tailwind Prose overriding Quill Headings */
    .prose.ql-editor h1 { font-size: 2em !important; font-weight: 700 !important; line-height: 1.2 !important;}
    .prose.ql-editor h2 { font-size: 1.5em !important; font-weight: 700 !important; line-height: 1.3 !important;  }
    .prose.ql-editor h3 { font-size: 1.17em !important; font-weight: 700 !important; line-height: 1.4 !important;  }
    .prose.ql-editor h4 { font-size: 1em !important; font-weight: 700 !important; line-height: 1.5 !important;  }
    .prose.ql-editor h5 { font-size: 0.83em !important; font-weight: 700 !important; line-height: 1.5 !important; }
    .prose.ql-editor h6 { font-size: 0.67em !important; font-weight: 700 !important; line-height: 1.5 !important; }