/* Scarrix Store – Design-System (DonutSMP-Look · Rot-Akzent · echte Minecraft-Schrift) */

:root {
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hair: rgba(255,255,255,0.06);
  --hair2: rgba(255,255,255,0.11);
}

html { scroll-behavior: smooth; }
body {
  background: #0a0a0b;
  color: #f4f4f6;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(228,32,47,.3); }

.display { font-family: 'Minecraft', 'Monocraft', ui-monospace, monospace; font-weight: 700; line-height: 1.1; }
.mc { font-family: 'Minecraft', 'Monocraft', ui-monospace, monospace; font-weight: 400; }
.pixel { image-rendering: pixelated; image-rendering: crisp-edges; }

/* sehr dezenter Glow hinterm Titel (optional) */
.glow-blood { background: radial-gradient(closest-side, rgba(228,32,47,.16), transparent 70%); }
.glass { background: rgba(10,10,11,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

/* Karten */
.card {
  background: #161619;
  border: 1px solid var(--hair);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
  border-radius: 18px;
  transition: transform .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.card:hover {
  border-color: rgba(228,32,47,.22);
}

/* Buttons – Minecraft-Stil (blockig, pixeliger 3D-Rand, kein modernes Rund) */
.btn-blood, .btn-ghost {
  font-family: 'Minecraft', 'Monocraft', ui-monospace, monospace;
  border-radius: 0;
  letter-spacing: .02em;
  image-rendering: pixelated;
  transition: filter .12s var(--ease), transform .04s var(--ease), background .12s var(--ease);
}
.btn-blood {
  background: #c8202c; color: #fff;
  border: 2px solid #2a0509;
  box-shadow: inset 2px 2px 0 rgba(255,255,255,.28), inset -3px -3px 0 rgba(0,0,0,.42);
}
.btn-blood:hover { background: #e4202f; filter: brightness(1.05); }
.btn-blood:active { transform: translateY(1px); box-shadow: inset -2px -2px 0 rgba(255,255,255,.14), inset 3px 3px 0 rgba(0,0,0,.46); }
.btn-ghost {
  background: #2b2b31; color: #f4f4f6;
  border: 2px solid #000;
  box-shadow: inset 2px 2px 0 rgba(255,255,255,.14), inset -3px -3px 0 rgba(0,0,0,.46);
}
.btn-ghost:hover { background: #34343b; }
.btn-ghost:active { transform: translateY(1px); box-shadow: inset -2px -2px 0 rgba(255,255,255,.10), inset 3px 3px 0 rgba(0,0,0,.5); }

/* Preis-Box als Minecraft-Button */
.pricebox {
  font-family: 'Minecraft', 'Monocraft', ui-monospace, monospace;
  border-radius: 0;
  background: #1d1d21;
  border: 2px solid #000;
  box-shadow: inset 2px 2px 0 rgba(255,255,255,.12), inset -3px -3px 0 rgba(0,0,0,.46);
  transition: filter .12s var(--ease), transform .04s var(--ease);
}
.pricebox:hover { filter: brightness(1.18); }
.pricebox:active { transform: translateY(1px); box-shadow: inset -2px -2px 0 rgba(255,255,255,.10), inset 3px 3px 0 rgba(0,0,0,.5); }
.pricebox-blood {
  background: #3a0d12;
  border-color: #2a0509;
  box-shadow: inset 2px 2px 0 rgba(255,120,128,.22), inset -3px -3px 0 rgba(0,0,0,.5);
}
.pricebox-blood:hover { filter: brightness(1.22); }

/* Blutkristall-Render (rot eingefärbtes Amethyst) als Pile */
.crystal { position: relative; width: 130px; height: 116px; margin: 0 auto; }
.crystal img {
  position: absolute; image-rendering: pixelated;
  filter: brightness(.5) sepia(1) saturate(10) hue-rotate(-30deg) drop-shadow(0 0 10px rgba(228,32,47,.55));
}
.render-glow { position: relative; }
.render-glow::before { content: ""; position: absolute; inset: 0; margin: auto; width: 68%; height: 68%; background: radial-gradient(closest-side, rgba(228,32,47,.32), transparent 70%); filter: blur(4px); }

.floaty { animation: float 5s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* Scroll-Reveal */
.reveal { opacity: 0; transform: translateY(20px); filter: blur(5px); transition: opacity .7s var(--ease), transform .7s var(--ease), filter .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: blur(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; filter: none; } }

/* Toast */
#toast { transition: opacity .25s var(--ease), transform .25s var(--ease); }
.toast-show { opacity: 1 !important; transform: translateY(0) !important; }

/* Server-IP-Box (Klick zum Kopieren) */
.ipbox { border: 1px solid var(--hair2); border-radius: 14px; background: rgba(255,255,255,.02); cursor: pointer; transition: border-color .3s var(--ease), background .3s var(--ease); }
.ipbox:hover { border-color: rgba(228,32,47,.55); background: rgba(228,32,47,.06); }
.ipbox:active { transform: scale(.98); }

/* Live-Dot (Server online) */
.live-dot { position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 999px; background: #22c55e; }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 999px; background: #22c55e; opacity: .55; animation: ping 1.9s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .live-dot::after { animation: none; } }

/* Formular-Felder */
.label { display: block; margin-bottom: .45rem; font-size: .8rem; color: #b9b9c2; }
.field { width: 100%; background: #101013; border: 1px solid var(--hair2); border-radius: 12px; padding: .72rem .9rem; color: #f4f4f6; font-size: .9rem; font-family: inherit; transition: border-color .25s var(--ease), background .25s var(--ease); }
.field::placeholder { color: #6b6b74; }
.field:focus { outline: none; border-color: rgba(228,32,47,.6); background: #141417; }
textarea.field { resize: vertical; min-height: 130px; line-height: 1.6; }
select.field { appearance: none; -webkit-appearance: none; padding-right: 2.4rem; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' width='14' height='14' fill='none' stroke='%238a8a94' stroke-width='2'><path d='M2 5l5 5 5-5'/></svg>");
  background-repeat: no-repeat; background-position: right .9rem center; }

/* Tags / Badges */
.tag { display: inline-flex; align-items: center; gap: .3rem; border-radius: 999px; padding: .18rem .62rem; font-size: 11px; font-weight: 600; letter-spacing: .02em; }
.tag-blood { background: rgba(228,32,47,.14); color: #ff6b75; }
.tag-green { background: rgba(34,197,94,.14); color: #4ade80; }
.tag-blue  { background: rgba(59,130,246,.14); color: #60a5fa; }
.tag-amber { background: rgba(245,158,11,.14); color: #fbbf24; }
.tag-gray  { background: rgba(255,255,255,.07); color: #b9b9c2; }

/* FAQ */
.faq summary { cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq .chev { transition: transform .3s var(--ease); }
.faq[open] .chev { transform: rotate(180deg); }

/* Modals (News-Popup & Login) */
.modal { position: fixed; inset: 0; z-index: 70; display: none; align-items: center; justify-content: center; padding: 1rem; }
.modal.is-open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.modal-card { position: relative; width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; animation: modalin .3s var(--ease); }
@keyframes modalin { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .modal-card { animation: none; } }
.news-body p { margin: 0; }

/* Navbar-Links in Minecraft-Schrift */
.navlink { font-family: 'Minecraft', 'Monocraft', ui-monospace, monospace; }

/* Hinweis-Box (provisorisch / in Bearbeitung) */
.notice { display: flex; align-items: flex-start; gap: .75rem; border-radius: 18px; border: 1px solid rgba(245,158,11,.3); background: rgba(245,158,11,.06); padding: 1.05rem 1.2rem; }

/* Dropdown-Panels im Minecraft-Stil (blockig, pixeliger Rand) */
.mc-menu {
  font-family: 'Minecraft', 'Monocraft', ui-monospace, monospace;
  background: #17171b;
  border: 2px solid #000;
  border-radius: 0;
  box-shadow: inset 2px 2px 0 rgba(255,255,255,.10), inset -3px -3px 0 rgba(0,0,0,.45);
}
.mc-menu a, .mc-menu button { border-radius: 0; }
.mc-menu a:hover, .mc-menu button:hover { background: rgba(228,32,47,.16); color: #fff; }

/* Dropdown (Support) */
.dd-menu { animation: modalin .18s var(--ease); }

/* Strafen-Status (Entbannungsantrag) */
.strafe-ok { border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.06); }
.strafe-ok:hover { transform: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.03); }
.strafe-bad { border-color: rgba(228,32,47,.45); background: rgba(228,32,47,.07); }

/* Chat-Bubbles */
.chat-scroll { max-height: 46vh; overflow-y: auto; }
.bubble { max-width: 82%; border-radius: 12px; padding: .6rem .85rem; font-size: .85rem; line-height: 1.5; }
.bubble-me { margin-left: auto; background: #3a0d12; border: 1px solid rgba(228,32,47,.4); color: #fff; border-bottom-right-radius: 3px; }
.bubble-mod { margin-right: auto; background: #1d1d21; border: 1px solid var(--hair2); color: #f4f4f6; border-bottom-left-radius: 3px; }
.bubble-sys { margin: .2rem auto; font-size: .72rem; color: #8a8a94; text-align: center; }
