/* interactive.css — animations, ember title, small UI helpers */

/* Fade-in for sections (on load / scroll) */
.fadein {
  opacity: 0;
  transform: translateY(6px);
  animation: kcFadeIn 420ms ease forwards;
}

@keyframes kcFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Theme toggle small style */
#themeToggle {
  padding: 8px 10px;
  font-size: 0.95rem;
}

/* Focus visible for accessibility */
:focus {
  outline: 3px solid rgba(231,138,138,0.12);
  outline-offset: 2px;
}
/* Discord enhanced button */
.btn.discord {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ff9590, #ef6f6f);
  color: #081018;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(239,111,111,0.14), inset 0 -2px 0 rgba(0,0,0,0.06);
  transition: transform .14s ease, box-shadow .14s ease, filter .14s ease;
  position: relative;
  overflow: visible;
}

.btn.discord:hover, .btn.discord:focus {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(239,111,111,0.18);
  filter: saturate(1.05);
}

.discord-icon {
  flex: 0 0 auto;
  color: #081018;
  opacity: 0.98;
}

/* small tooltip-like hint */
.discord-tip {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  top: -34px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 6px 8px;
  font-size: 0.78rem;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

.btn.discord:hover .discord-tip,
.btn.discord:focus .discord-tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* pulse when new messages / attention (class .attention toggles) */
.btn.discord.attention {
  animation: discordPulse 1500ms infinite;
  box-shadow: 0 20px 40px rgba(255,90,60,0.15);
}

@keyframes discordPulse {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.02); }
  100% { transform: translateY(0) scale(1); }
}

/* long-press hint for mobile */
@media (hover: none) {
  .discord-tip { display: none; } /* no hover tooltips on touch */
}
/* ==== Quicknav (Embers buttons) ==== */
.quicknav {
  display: inline-flex;
  gap: 10px;
  margin-left: 12px;
  align-items: center;
}

/* кнопка-якорь */
.navlink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  font-size: 0.95rem;
  color: var(--muted);
  background: transparent;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .18s ease, color .18s ease, transform .14s ease, box-shadow .14s ease;
  cursor: pointer;
  user-select: none;
}

/* hover / focus */
.navlink:hover,
.navlink:focus {
  color: var(--accent);
  background: rgba(255,255,255,0.02);
  transform: translateY(-2px);
  outline: none;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
}

/* keyboard focus visible */
.navlink:focus-visible {
  outline: 3px solid rgba(231,138,138,0.14);
  outline-offset: 3px;
}

/* active state (highlighted for current section) */
.navlink.active {
  color: var(--accent);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.02));
  border-color: rgba(255,255,255,0.03);
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.04), 0 8px 20px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

/* small screens: allow horizontal scroll without breaking layout */
@media (max-width: 640px) {
  .quicknav {
    display: flex;
    gap: 8px;
    margin-left: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .quicknav::-webkit-scrollbar { display: none; }
  .navlink { padding: 8px 12px; font-size: 0.95rem; }
}

/* Respect reduced motion setting */
@media (prefers-reduced-motion: reduce) {
  .navlink, .navlink:hover, .navlink:focus, .navlink.active {
    transition: none !important;
    transform: none !important;
  }
}
/* Home screen (default center content) */
.home-screen {
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  min-height:calc(100vh - 120px);
  text-align:center;
  color:var(--muted);
  position:relative;
}

.home-inner {
  animation: fadein 1s ease forwards;
}

.home-title {
  font-size:2.2rem;
  letter-spacing:0.05em;
  font-weight:600;
  margin-bottom:0.6rem;
  color:var(--text);
}

.home-subtitle {
  font-size:1rem;
  opacity:0.8;
}

.home-subtitle span {
  color:var(--accent);
  font-weight:500;
}

/* subtle glowing ember effect */
.home-screen::after {
  content:"";
  position:absolute;
  width:180px;
  height:180px;
  border-radius:50%;
  background:radial-gradient(circle at center, rgba(255,100,40,0.25), transparent 70%);
  filter:blur(80px);
  animation: emberPulse 6s ease-in-out infinite alternate;
}

@keyframes emberPulse {
  from { transform:scale(0.9); opacity:0.7; }
  to { transform:scale(1.1); opacity:1; }
}

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