/* gooddeeds.space Modern Soft Accessible Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

@layer base {
  html {
    font-size: 16px;
    scroll-behavior: smooth;
    background-color: #faf9f6;
    color: #1c1917;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  }
  body {
    line-height: 1.6;
    background-color: #faf9f6;
  }
  h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.02em;
  }
}

/* Enforce Minimum 48x48px Touch Targets for WCAG Accessibility */
button, 
input[type="button"], 
input[type="submit"], 
input[type="reset"], 
select,
a.touch-target {
  min-height: 48px;
  min-width: 48px;
}

button.format-pill,
button.landing-format-pill,
button.rte-toolbar-btn,
button.chat-mode-btn,
button.chat-chip-btn,
select.chat-scope-select {
  min-height: 32px;
  min-width: auto;
}

button.chat-submit-btn,
button.search-action-btn {
  min-height: 40px;
  min-width: auto;
}

button.auth-sso-btn {
  min-height: 38px;
  min-width: auto;
}

button.search-clear-btn {
  min-height: 28px;
  min-width: 28px;
}

/* Prominent Search & Discovery Spotlight Hub */
#feed-filter-bar-card,
#landing-filter-bar {
  border: 2px solid #c7d2fe !important;
  background: linear-gradient(180deg, #eef2ff 0%, #ffffff 58%) !important;
  box-shadow: 0 14px 32px -6px rgba(79, 70, 229, 0.14), 0 4px 10px -2px rgba(28, 25, 23, 0.05) !important;
}

.prominent-search-shell {
  border: 2px solid #6366f1;
  background-color: #ffffff;
  box-shadow: 0 6px 20px -4px rgba(79, 70, 229, 0.16), 0 0 0 4px rgba(99, 102, 241, 0.10);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.prominent-search-shell:focus-within {
  border-color: #4338ca;
  box-shadow: 0 10px 26px -4px rgba(79, 70, 229, 0.24), 0 0 0 5px rgba(99, 102, 241, 0.18);
}

.prominent-search-shell input[type="search"]:focus-visible {
  outline: none !important;
}

.landing-hero-cta {
  min-height: 40px;
}

button.post-expand-btn {
  min-height: 28px;
  min-width: auto;
}

.post-content-collapsed {
  max-height: 7.75rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000000 62%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to bottom, #000000 62%, rgba(0, 0, 0, 0) 100%);
}

/* Rich Formatted Post Content & Clickable Hyperlinks */
.post-rich-content p + p,
.post-rich-content p + ul,
.post-rich-content p + ol,
.post-rich-content p + blockquote,
.post-rich-content ul + p,
.post-rich-content ol + p,
.post-rich-content blockquote + p {
  margin-top: 0.5rem;
}

.post-rich-content a.rich-link,
a.rich-link {
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.kudos-rich-content blockquote {
  border-left-color: #f59e0b !important;
  background-color: rgba(254, 243, 199, 0.65) !important;
  color: #78350f !important;
}

/* Sleek High Contrast Focus States with Warm Amber Glow */
*:focus-visible {
  outline: 2px solid #f59e0b !important;
  outline-offset: 2px !important;
}

/* Clean Minimalist Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f5f5f0;
}
::-webkit-scrollbar-thumb {
  background: #d6d3d1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a8a29e;
}

/* Modal Glassmorphism Backdrop */
dialog::backdrop {
  background: rgba(28, 25, 23, 0.45);
  backdrop-filter: blur(12px);
}

dialog[open] {
  animation: modalPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) normal;
}

@keyframes modalPopIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Modern Card Accents with Soft Curves & Warm Glow */
.kudos-card {
  border: 2px solid #fde68a;
  border-left: 8px solid #f59e0b !important;
  background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 45%, #ffffff 100%) !important;
  box-shadow: 0 12px 30px -4px rgba(245, 158, 11, 0.12), 0 2px 8px -2px rgba(28, 25, 23, 0.04);
  border-radius: 1.5rem;
}

.post-card {
  border: 1px solid #e2e8f0;
  border-left: 8px solid #4f46e5 !important;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
  box-shadow: 0 10px 30px -4px rgba(79, 70, 229, 0.06), 0 2px 8px -2px rgba(28, 25, 23, 0.03);
  border-radius: 1.5rem;
}

/* Pill Buttons & Humane Hover Micro-Interactions */
.pill-btn {
  border-radius: 9999px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.pill-btn:hover {
  transform: translateY(-1px);
}
.pill-btn:active {
  transform: scale(0.98);
}

/* Disable browser-native search clear button to prevent duplicate cross marks */
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

input[type="search"]::-ms-clear,
input[type="search"]::-ms-reveal {
  display: none;
  width: 0;
  height: 0;
}
