/* ==========================================================================
   BENTO.CSS - Bento Grid, Spotlight Efekti ve Canlı Kart Widget'ları (< 150 Satır)
   ========================================================================== */

.spotlight-card {
  position: relative; overflow: hidden; --mouse-x: 50%; --mouse-y: 50%; --rx: 0deg; --ry: 0deg;
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.12s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}
.spotlight-card::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mouse-x) var(--mouse-y), rgba(129, 140, 248, 0.14), transparent 45%);
  opacity: 0; transition: opacity 0.25s ease; pointer-events: none; z-index: 1;
}
.spotlight-card:hover::after { opacity: 1; }
@media (hover: none) {
  .spotlight-card { transform: none !important; }
  .spotlight-card::after { display: none !important; }
}

.bento-grid { display: grid; grid-template-columns: 1fr; gap: 1.05rem; }
@media (min-width: 640px) { .bento-grid { grid-template-columns: repeat(2, 1fr); } .bento-card.large, .bento-card.wide { grid-column: span 2; } }
@media (min-width: 860px) { .bento-grid { grid-template-columns: repeat(3, 1fr); } .bento-card.large { grid-column: span 2; } .bento-card.wide { grid-column: span 3; } }

.bento-card { padding: 1.45rem; border-radius: 1.35rem; background-color: var(--bg-card); border: 1px solid var(--border-subtle); display: flex; flex-direction: column; justify-content: space-between; gap: 1.05rem; position: relative; overflow: hidden; z-index: 1; }
.bento-card > * { position: relative; z-index: 2; }
.bento-card:hover { border-color: var(--border-hover); background-color: var(--bg-card-hover); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 25px rgba(99, 102, 241, 0.15); }
.bento-badge-row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.bento-badge { font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.28rem 0.72rem; border-radius: 9999px; display: inline-flex; align-items: center; gap: 0.35rem; }
.bento-badge.indigo { color: #a5b4fc; border: 1px solid rgba(99, 102, 241, 0.35); background: rgba(99, 102, 241, 0.12); }
.bento-badge.emerald { color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.35); background: rgba(16, 185, 129, 0.12); }
.bento-badge.purple { color: #d8b4fe; border: 1px solid rgba(168, 85, 247, 0.35); background: rgba(168, 85, 247, 0.12); }
.bento-badge.amber { color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.35); background: rgba(245, 158, 11, 0.12); }
.bento-badge.rose { color: #fda4af; border: 1px solid rgba(244, 63, 94, 0.35); background: rgba(244, 63, 94, 0.12); }
.bento-badge.cyan { color: #67e8f9; border: 1px solid rgba(6, 182, 212, 0.35); background: rgba(6, 182, 212, 0.12); }

/* Mini Card Canlı Widget'lar */
.ecg-widget { width: 90px; height: 24px; overflow: visible; }
.ecg-line { fill: none; stroke: #818cf8; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 160; stroke-dashoffset: 160; animation: ecgPulse 2.4s ease-in-out infinite; }
@keyframes ecgPulse { 0% { stroke-dashoffset: 160; opacity: 0.3; } 50% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: -160; opacity: 0.3; } }

.music-widget { display: flex; align-items: center; gap: 0.5rem; }
.vinyl-disc { width: 22px; height: 22px; border-radius: 50%; background: conic-gradient(#18181b, #a855f7, #18181b, #6366f1, #18181b); border: 2px solid #c084fc; display: flex; align-items: center; justify-content: center; animation: spinHalo 3s linear infinite; }
.vinyl-disc::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #fff; }
.equalizer { display: flex; align-items: flex-end; gap: 3px; height: 18px; }
.eq-bar { width: 3px; background: linear-gradient(180deg, #38bdf8, #a855f7); border-radius: 2px; animation: equalize 0.9s infinite alternate ease-in-out; }
.eq-bar:nth-child(1) { height: 7px; animation-duration: 0.6s; }
.eq-bar:nth-child(2) { height: 16px; animation-duration: 0.95s; animation-delay: 0.15s; }
.eq-bar:nth-child(3) { height: 10px; animation-duration: 0.75s; animation-delay: 0.3s; }
.eq-bar:nth-child(4) { height: 18px; animation-duration: 1.1s; animation-delay: 0.05s; }
.eq-bar:nth-child(5) { height: 12px; animation-duration: 0.8s; animation-delay: 0.25s; }
@keyframes equalize { 0% { transform: scaleY(0.25); } 100% { transform: scaleY(1); } }

.power-meter { display: flex; gap: 3px; align-items: center; }
.pwr-seg { width: 10px; height: 6px; border-radius: 2px; background: #10b981; animation: powerCharge 1.6s infinite; }
.pwr-seg:nth-child(2) { animation-delay: 0.25s; } .pwr-seg:nth-child(3) { animation-delay: 0.5s; } .pwr-seg:nth-child(4) { animation-delay: 0.75s; }
@keyframes powerCharge { 0%, 100% { opacity: 0.25; transform: scaleY(0.8); } 50% { opacity: 1; transform: scaleY(1.2); } }

.chat-typing { display: flex; align-items: center; gap: 4px; padding: 0.3rem 0.55rem; border-radius: 9999px; background: rgba(244, 63, 94, 0.12); border: 1px solid rgba(244, 63, 94, 0.25); }
.typing-dot { width: 5px; height: 5px; border-radius: 50%; background: #fda4af; animation: typingBounce 1.2s infinite ease-in-out; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; } .typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce { 0%, 80%, 100% { transform: translateY(0); opacity: 0.4; } 40% { transform: translateY(-4px); opacity: 1; } }

.game-hud { display: inline-flex; align-items: center; gap: 6px; padding: 0.22rem 0.55rem; border-radius: 9999px; background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.28); }
.crosshair-icon { width: 12px; height: 12px; border: 1.5px solid #fbbf24; border-radius: 50%; position: relative; display: inline-flex; align-items: center; justify-content: center; animation: spinHalo 6s linear infinite; }
.crosshair-icon::after { content: ''; width: 3px; height: 3px; border-radius: 50%; background: #10b981; box-shadow: 0 0 6px #10b981; }
.ping-text { font-size: 0.68rem; font-weight: 800; color: #fcd34d; letter-spacing: 0.02em; }

.bento-title { font-size: 1.18rem; font-weight: 800; color: #fff; line-height: 1.35; }
.bento-desc { font-size: 0.89rem; color: var(--text-muted); line-height: 1.62; }
.bento-tags { display: flex; flex-wrap: wrap; gap: 0.42rem; }
.bento-tag { font-size: 0.72rem; font-weight: 600; padding: 0.22rem 0.6rem; border-radius: 0.45rem; background-color: rgba(255, 255, 255, 0.05); color: #cbd5e1; border: 1px solid rgba(255, 255, 255, 0.07); transition: all 0.2s ease; }
.bento-card:hover .bento-tag { border-color: rgba(129, 140, 248, 0.3); color: #fff; }

@media (max-width: 480px) {
  .bento-card { padding: 1.15rem; gap: 0.85rem; border-radius: 1.2rem; }
  .bento-title { font-size: 1.08rem; }
  .bento-desc { font-size: 0.84rem; line-height: 1.55; }
}
