/* cosmetics özellikleri: katalog kartları, canlı önizlemeler, Kozmetiklerim */

/* ---------- katalog */
.cz-mine .bb-val .cur { font-size: 14px; }
.cz-card { --rc: var(--muted); min-width: 0; }
.cz-card:hover { border-color: var(--border-2); }
.cz-card.cz-on { border-color: var(--accent-line); }
.cz-media {
  position: relative; height: 132px; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; overflow: hidden; padding: 0 14px;
  background: var(--well); border-bottom: 1px solid var(--border);
  box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--rc) 55%, transparent);
}
.cz-card .p-body { padding-top: 14px; }
.cz-card .p-body h3 { margin-top: 8px; }
.cz-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cz-foot .btn { flex: 0 0 auto; min-width: 96px; }
.cz-rarity { color: color-mix(in srgb, var(--rc) 80%, #fff); border-color: color-mix(in srgb, var(--rc) 35%, transparent); background: color-mix(in srgb, var(--rc) 10%, transparent); }

/* ---------- sohbet satırı (Minecraft sohbetine benzer) */
.cz-chat { width: 100%; min-width: 0; text-align: center; }
.cz-chat-line {
  display: inline-block; text-align: left; max-width: 100%; padding: 6px 10px; border-radius: 2px; background: rgba(0, 0, 0, .55);
  font-family: var(--mono); font-size: 13px; line-height: 1.5; color: #fff; text-shadow: 1px 1px 0 rgba(0, 0, 0, .55);
  overflow-wrap: anywhere;
}
.cz-chat-line .cz-w { color: #fff; }
.cz-chat-line .cz-g { color: #aaa; }
.cz-chat-line .cz-dg { color: #555; }

/* ---------- parçacık sahneleri */
.cz-stage { position: relative; width: 100%; height: 100%; overflow: hidden; }
.cz-fig { display: block; width: 14px; height: 28px; }
.cz-walker { position: absolute; bottom: 20px; animation: cz-walk 4.2s linear infinite; }
.cz-trail { position: absolute; inset: 0; }
.cz-p, .cz-dot { position: absolute; bottom: 24px; left: var(--x); opacity: 0; animation: cz-rise 2.1s ease-out infinite; animation-delay: var(--d); }
.cz-p { font-size: 15px; font-style: normal; }
.cz-dot { width: 6px; height: 6px; border-radius: 1px; }
.cz-stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 18px; height: 2px; background: var(--border); }
@keyframes cz-walk { from { left: -12%; } to { left: 104%; } }
@keyframes cz-rise {
  0% { opacity: 0; transform: translateY(0) scale(.6) rotate(0); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-64px) scale(1.05) rotate(var(--r)); }
}

.cz-proj .cz-arrow { position: absolute; top: 46%; width: 40px; animation: cz-fly 2.4s cubic-bezier(.3, .1, .5, 1) infinite; }
.cz-proj .cz-arrow svg { display: block; width: 40px; height: 12px; }
.cz-proj .cz-p, .cz-proj .cz-dot { bottom: auto; top: 50%; animation: cz-fade 2.4s linear infinite; animation-delay: calc(var(--d) * .9); }
@keyframes cz-fly { from { left: -10%; transform: translateY(14px) rotate(8deg); } 50% { transform: translateY(-14px) rotate(-4deg); } to { left: 105%; transform: translateY(10px) rotate(10deg); } }
@keyframes cz-fade { 0%, 100% { opacity: 0; } 30% { opacity: 1; } 70% { opacity: .3; } }

/* ---------- öldürme efektleri */
.cz-kill { display: grid; place-items: center; }
.cz-victim { position: relative; z-index: 1; animation: cz-shake 2.6s ease-in-out infinite; }
.cz-victim .cz-fig { width: 16px; height: 32px; }
.cz-bolt { position: absolute; top: 2px; animation: cz-strike 2.6s steps(1) infinite; }
.cz-bolt-svg { display: block; width: 26px; height: 44px; }
.cz-kill-lightning::before { content: ""; position: absolute; inset: 0; background: #fffbe0; opacity: 0; animation: cz-flash 2.6s steps(1) infinite; }
@keyframes cz-strike { 0%, 100% { opacity: 0; } 40% { opacity: 1; } 46% { opacity: 0; } 50% { opacity: 1; } 58% { opacity: 0; } }
@keyframes cz-flash { 0%, 100% { opacity: 0; } 40% { opacity: .14; } 46% { opacity: 0; } 50% { opacity: .08; } 58% { opacity: 0; } }
@keyframes cz-shake { 0%, 38%, 100% { transform: none; } 42% { transform: translateX(-3px) rotate(-6deg); } 48% { transform: translateX(3px) rotate(6deg); } 56% { transform: none; } }
.cz-blood { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; }
.cz-blood i { position: absolute; width: 6px; height: 6px; border-radius: 1px; background: #b3121f; opacity: 0; animation: cz-splat 2.6s ease-out infinite; }
.cz-blood i:nth-child(1) { --tx: -46px; --ty: -30px; } .cz-blood i:nth-child(2) { --tx: 40px; --ty: -36px; }
.cz-blood i:nth-child(3) { --tx: -30px; --ty: 26px; } .cz-blood i:nth-child(4) { --tx: 50px; --ty: 18px; }
.cz-blood i:nth-child(5) { --tx: 6px; --ty: -52px; } .cz-blood i:nth-child(6) { --tx: -58px; --ty: 4px; }
.cz-blood i:nth-child(7) { --tx: 24px; --ty: 40px; } .cz-blood i:nth-child(8) { --tx: -14px; --ty: -44px; }
.cz-blood i:nth-child(9) { --tx: 62px; --ty: -10px; } .cz-blood i:nth-child(10) { --tx: -40px; --ty: 40px; }
@keyframes cz-splat { 0%, 38% { opacity: 0; transform: translate(0, 0) scale(.4); } 44% { opacity: 1; } 80% { opacity: .9; transform: translate(var(--tx), var(--ty)) scale(1); } 100% { opacity: 0; transform: translate(var(--tx), calc(var(--ty) + 18px)) scale(.8); } }
.cz-burst { position: absolute; inset: 0; display: grid; place-items: center; }
.cz-burst i, .cz-burst b { position: absolute; top: 34%; left: 50%; width: 3px; height: 22px; border-radius: 1px; transform-origin: 50% 100%; opacity: 0; }
.cz-burst i { background: var(--c); transform: rotate(var(--a)) translateY(-30px); animation: cz-pop 2.6s ease-out infinite; }
.cz-burst b { background: #fff3c4; width: 2px; height: 14px; animation: cz-pop 2.6s ease-out infinite; animation-delay: .1s; }
.cz-burst b:nth-of-type(1) { --a: 22deg; } .cz-burst b:nth-of-type(2) { --a: 67deg; } .cz-burst b:nth-of-type(3) { --a: 112deg; } .cz-burst b:nth-of-type(4) { --a: 157deg; }
.cz-burst b:nth-of-type(5) { --a: 202deg; } .cz-burst b:nth-of-type(6) { --a: 247deg; } .cz-burst b:nth-of-type(7) { --a: 292deg; } .cz-burst b:nth-of-type(8) { --a: 337deg; }
.cz-burst b { transform: rotate(var(--a)) translateY(-26px); }
@keyframes cz-pop { 0%, 36% { opacity: 0; scale: .2; } 46% { opacity: 1; } 85% { opacity: .5; scale: 1.25; } 100% { opacity: 0; scale: 1.35; } }

/* ---------- Kozmetiklerim */
.cz-own-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.cz-own {
  --rc: var(--muted); text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font: inherit;
  transition: border-color .15s;
}
.cz-own:hover { border-color: var(--border-2); }
.cz-own.on { border-color: var(--accent-text); box-shadow: inset 0 0 0 1px var(--accent-line); }
.cz-own:disabled { opacity: .6; cursor: progress; }
.cz-own-prev { height: 92px; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 0 10px; background: var(--well); border-bottom: 1px solid var(--border); overflow: hidden; }
.cz-own-prev .cz-chat-line { font-size: 12px; }
.cz-own-prev .cz-walker { bottom: 12px; }
.cz-own-prev .cz-stage::after { bottom: 10px; }
.cz-own-meta { padding: 10px 12px 4px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.cz-own-state { padding: 0 12px 12px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.cz-own.on .cz-own-state { color: var(--accent); }

.cz-modal-prev { height: 124px; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; border-radius: var(--radius-sm); overflow: hidden; background: var(--well); border: 1px solid var(--border); }

/* ---------- 3B kozmetik önizlemesi (evcil hayvan, şapka, sırt, balon) */
.cz-model { display: grid; place-items: center; background: radial-gradient(ellipse 60% 55% at 50% 58%, color-mix(in srgb, var(--rc, var(--muted)) 18%, transparent), transparent 70%); }
.cz-model::after { content: ""; position: absolute; left: 50%; bottom: 10%; width: 42%; height: 8px; transform: translateX(-50%); border-radius: 50%; background: rgba(0, 0, 0, .45); filter: blur(3px); }
.cz-model img { position: relative; z-index: 1; height: 88%; max-width: 92%; object-fit: contain; image-rendering: auto; animation: cz-bob 3.2s ease-in-out infinite; }
.cz-model-pet img { animation: cz-hop 2.6s ease-in-out infinite; }
.cz-model-balloon img { animation: cz-float 4.2s ease-in-out infinite; }
.cz-model-balloon::after { display: none; }
.cz-glow img { filter: drop-shadow(0 0 10px rgba(var(--accent-rgb), .6)); }
.cz-model-fb { position: relative; z-index: 1; font-size: 44px; line-height: 1; }
@keyframes cz-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes cz-hop { 0%, 70%, 100% { transform: translateY(0) rotate(0); } 78% { transform: translateY(-9px) rotate(-3deg); } 86% { transform: translateY(0) rotate(2deg); } }
@keyframes cz-float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-6px) rotate(3deg); } }
.cz-own-prev .cz-model img { height: 84%; }

/* ---------- evcil hayvan seviyesi / yardımı */
.cz-earned { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.p-tags .cz-earned { margin-left: 6px; }
.cz-pet { margin-top: 10px; display: grid; gap: 8px; }
.cz-perk { display: flex; gap: 6px; align-items: flex-start; color: var(--text-2); }
.cz-perk .ico { flex: 0 0 auto; width: 15px; height: 15px; margin-top: 2px; color: var(--accent); }
.cz-lv-top { display: flex; gap: 4px; align-items: baseline; }
.cz-lv-top span:last-child { margin-left: auto; }
.cz-lv-bar { height: 6px; border-radius: 3px; background: var(--border); overflow: hidden; }
.cz-lv-bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.cz-pet-note { margin-top: 8px; }
.cz-own .cz-pet { padding: 0 12px 10px; margin-top: 0; text-align: left; }

@media (max-width: 560px) {
  .cz-media { height: 120px; }
  .cz-chat-line { font-size: 12px; }
  .cz-own-grid { grid-template-columns: 1fr; }
  .cz-mine { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  .cz-walker, .cz-p, .cz-dot, .cz-arrow, .cz-bolt, .cz-victim, .cz-blood i, .cz-burst i, .cz-burst b, .cz-kill-lightning::before, .cz-model img { animation: none !important; }
  .cz-p, .cz-dot, .cz-bolt, .cz-burst i, .cz-burst b, .cz-blood i { opacity: .9; }
  .cz-walker { left: 40%; }
  .cz-arrow { left: 60%; }
}
