/* ============================================
   askingg Ecosystem - Main Stylesheet
   ============================================ */

/* --- Base Styles --- */
body {
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.font-hand {
  font-family: 'Architects Daughter', cursive;
}

/* --- Scrollbar Styles --- */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
    height: 6px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.dark .custom-scrollbar::-webkit-scrollbar-thumb {
    background: #52525b;
}

/* --- Animations --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.animate-zoom-in {
  animation: zoomIn 0.6s ease-out forwards;
}

@keyframes slideUp {
   from { opacity: 0; transform: translateY(20px); }
   to { opacity: 1; transform: translateY(0); }
}
.animate-slide-up {
  animation: slideUp 0.8s ease-out forwards;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}
.animate-shake {
  animation: shake 0.5s ease-in-out;
}

.path-rough {
   stroke-dasharray: 800;
   stroke-dashoffset: 800;
   animation: draw 2s ease-out forwards;
}
@keyframes draw {
  to { stroke-dashoffset: 0; }
}

/* --- Helper Classes --- */
.hidden {
    display: none !important;
}

/* --- Accessibility Classes --- */
.high-contrast {
    background-color: #000 !important;
    color: #fff !important;
}
.high-contrast h1, .high-contrast h2, .high-contrast h3, .high-contrast span {
    color: #fff !important;
}
.high-contrast button {
     border: 1px solid #ff0 !important;
     color: #ff0 !important;
}
.larger-text {
    font-size: 112.5%; /* 18px base */
}
.reduce-motion * {
    transition: none !important;
    animation: none !important;
}

/* --- Wavy Border Styles --- */
.wavy-border-primary, .wavy-border-primary-dark {
  position: relative;
  padding-left: 1.5rem; /* 24px */
}
.wavy-border-primary::before, .wavy-border-primary-dark::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0;
  bottom: 0;
  width: 10px;
  background-repeat: repeat-y;
  background-size: 10px 40px;
}

.wavy-border-primary::before {
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M 5 0 C -5 10, 15 30, 5 40' stroke='%2300CCCC' fill='none' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.wavy-border-primary-dark::before {
   background-image: url("data:image/svg+xml,%3Csvg width='10' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M 5 0 C -5 10, 15 30, 5 40' stroke='%23009999' fill='none' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* --- Focus Styles for Accessibility --- */
*:focus-visible {
  outline: 2px solid #00CCCC;
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #00CCCC;
  outline-offset: 2px;
}

/* --- Skip Link for Screen Readers --- */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #00CCCC;
  color: white;
  padding: 8px 16px;
  z-index: 100;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* --- Responsive Utilities --- */
@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .hide-desktop {
    display: none !important;
  }
}

/* --- Print Styles --- */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
}

/* --- Reduced Motion Preference --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- High Contrast Mode Support --- */
@media (prefers-contrast: high) {
  .high-contrast-auto {
    background-color: #000 !important;
    color: #fff !important;
  }
}