/* Aube Co. — Minimalist Dawn Theme Styles */

:root {
  --bg-canvas: #fafafa;
  --text-ink: #1c1917;
  --dawn-glow: rgba(244, 184, 96, 0.16);
  --dawn-soft: rgba(253, 228, 180, 0.22);
}

html {
  background-color: var(--bg-canvas);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.keep-all {
  word-break: keep-all;
}

/* Soft ambient dawn glow behind the hero */
.dawn-ambient {
  position: fixed;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 110vw);
  height: 520px;
  background: radial-gradient(
    ellipse at 50% 35%,
    var(--dawn-glow) 0%,
    var(--dawn-soft) 36%,
    rgba(250, 250, 250, 0) 74%
  );
  pointer-events: none;
  z-index: 0;
}

header,
main,
footer {
  position: relative;
  z-index: 1;
}

/* Subtle header elevation on scroll */
#site-header.is-scrolled {
  border-bottom-color: rgba(231, 229, 228, 0.85);
  background-color: rgba(250, 250, 250, 0.88);
  box-shadow: 0 1px 12px rgba(28, 25, 23, 0.03);
}

/* Warm dawn underline accent for hero keyword */
.dawn-text-accent {
  position: relative;
  display: inline-block;
  color: #1c1917;
  background: linear-gradient(120deg, #b86b1a 0%, #d98a2b 55%, #b86b1a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Subtle warm aura inside contact card */
.contact-glow {
  position: absolute;
  top: -90px;
  right: -60px;
  width: 340px;
  height: 340px;
  background: radial-gradient(
    circle,
    rgba(248, 206, 130, 0.24) 0%,
    rgba(254, 243, 220, 0.08) 48%,
    rgba(255, 255, 255, 0) 72%
  );
  pointer-events: none;
}

/* Category Tab Styles */
.category-tab {
  position: relative;
  border-radius: 0.75rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #57534e;
  transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.category-tab:hover {
  color: #1c1917;
  background-color: rgba(245, 245, 244, 0.9);
}

.category-tab[aria-selected="true"] {
  background-color: #1c1917;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(28, 25, 23, 0.14);
}

.category-tab .tab-count {
  margin-left: 0.35rem;
  font-size: 0.7rem;
  opacity: 0.65;
}

.category-tab[aria-selected="true"] .tab-count {
  color: #f8ce82;
  opacity: 0.95;
}

/* App Card Micro-interactions */
.app-card {
  animation: cardFadeIn 0.34s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.app-card:hover .app-icon-box {
  transform: translateY(-2px) scale(1.04);
}

.app-card:hover .app-link-arrow {
  transform: translate(2px, -2px);
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Toast Visible State */
#toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .app-card {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}
