/* =====================================================================
   MOR TEMA: renkli kartlar, parlamalar ve animasyonlar.
   theme.css'ten SONRA yuklenir. Kapatmak icin index.html'den bu <link> satirini kaldirmak yeterli.
   Hareketi azaltma acik cihazlarda style.css'teki genel kural tum animasyonlari kapatir.
   ===================================================================== */
@property --p { syntax: "<number>"; inherits: false; initial-value: 0; }
@keyframes aurora { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(-4%, 3%, 0) scale(1.08); } 100% { transform: translate3d(0, 0, 0) scale(1); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes growX { from { width: 0; } }
@keyframes gradShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes shine { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(260%) skewX(-20deg); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 currentColor; } 80%, 100% { box-shadow: 0 0 0 7px transparent; } }
@keyframes ringIn { from { --p: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

/* Arka plan: yavasca dolasan mor/pembe isiklar (GPU, dusuk maliyet) */
body::before {
  content: ""; position: fixed; inset: -20%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 32% at 78% 8%, rgba(124, 58, 237, .22), transparent 70%),
    radial-gradient(30% 28% at 12% 92%, rgba(236, 72, 153, .10), transparent 70%),
    radial-gradient(26% 24% at 50% 55%, rgba(59, 130, 246, .06), transparent 70%);
  animation: aurora 26s ease-in-out infinite; will-change: transform;
}
#app, .login { position: relative; z-index: 0; }

/* Yuzeyler: hafif mor isilti */
.panel, .kpi, .card, .section, .tcard, .more, .sf-card {
  background: linear-gradient(160deg, rgba(167, 139, 250, .07), rgba(255, 255, 255, 0) 45%), var(--card);
  border-color: var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 18px 40px -28px rgba(0, 0, 0, .8);
}
.panel { transition: border-color .2s, box-shadow .25s; }
.panel:hover { border-color: var(--line-2); }

/* Giris animasyonu: kartlar sirayla yukari suzulerek gelir */
.dh, .alerts, .kpi, .dgrid .panel, .tcard, #tab-trends .section, #tab-calendar .panel { animation: fadeUp .55s cubic-bezier(.2, .8, .2, 1) both; }
.kpi:nth-child(2) { animation-delay: .06s; }
.kpi:nth-child(3) { animation-delay: .12s; }
.kpi:nth-child(4) { animation-delay: .18s; }
.dcol > .panel:nth-child(2), .dcol .duo .panel:nth-child(1) { animation-delay: .14s; }
.dcol > .panel:nth-child(3), .dcol .duo .panel:nth-child(2) { animation-delay: .2s; }
.dcol.side > .panel:nth-child(1) { animation-delay: .1s; }
.tcard:nth-child(2) { animation-delay: .05s; }
.tcard:nth-child(3) { animation-delay: .1s; }
.tcard:nth-child(4) { animation-delay: .15s; }
.tcard:nth-child(n+5) { animation-delay: .2s; }

/* Istatistik kartlari (renkli) */
.kpi { --kc: #a78bfa; --kbg: rgba(139, 92, 246, .16); display: grid; grid-template-rows: auto auto auto 1fr; gap: 8px; padding: 18px 18px 14px; min-height: 150px; overflow: hidden; isolation: isolate; }
.kpi.k-blue { --kc: #60a5fa; --kbg: rgba(59, 130, 246, .16); }
.kpi.k-pink { --kc: #f472b6; --kbg: rgba(236, 72, 153, .16); }
.kpi.k-green { --kc: #4ade80; --kbg: rgba(34, 197, 94, .14); }
.kpi::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: var(--kbg); filter: blur(30px); z-index: -1; transition: transform .4s; }
.kpi:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--kc) 45%, transparent); box-shadow: 0 18px 40px -18px color-mix(in srgb, var(--kc) 55%, transparent); }
.kpi:hover::after { transform: scale(1.25); }
.kpi .kh { display: flex; align-items: center; gap: 12px; }
.kpi .ki { position: static; width: 40px; height: 40px; border-radius: 12px; background: var(--kbg) !important; color: var(--kc) !important; box-shadow: 0 0 0 1px color-mix(in srgb, var(--kc) 25%, transparent) inset; }
.kpi .ki svg { width: 20px; height: 20px; }
.kpi:hover .ki { animation: float 1.6s ease-in-out infinite; }
.kpi .kl { font-size: 14px; color: var(--text); font-weight: 550; padding-right: 0 !important; }
.kpi .kl small { font-size: 12px; color: var(--text-2); font-weight: 500; margin-left: 2px; }
.kpi .kv { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 31px; }
.kpi .kv b { font-weight: 700; font-variant-numeric: tabular-nums; }
.kpill { display: inline-flex; align-items: center; gap: 2px; font-size: 12.5px; font-weight: 650; padding: 2px 7px; border-radius: 7px; }
.kpill svg { width: 12px; height: 12px; }
.kpill.up { color: var(--ok); background: rgba(52, 211, 153, .12); }
.kpill.dn { color: var(--bad); background: rgba(248, 113, 113, .12); }
.kpi .kd { font-size: 12.5px; color: var(--text-2); }
.kpi .spark { position: static; width: 100%; height: 40px; align-self: end; margin-top: -2px; }
.sp-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.3s cubic-bezier(.4, 0, .2, 1) .35s forwards; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--kc) 60%, transparent)); }
.sp-area { opacity: 0; animation: fadeIn .8s ease .9s forwards; }
.sp-dot { opacity: 0; animation: fadeIn .3s ease 1.5s forwards; }
.kmeter { height: 7px; border-radius: 4px; background: var(--card-3); overflow: hidden; align-self: end; }
.kmeter > i { display: block; height: 100%; width: var(--w); border-radius: 4px; background: linear-gradient(90deg, #a78bfa, #7c3aed); animation: growX 1.1s cubic-bezier(.4, 0, .2, 1) .3s both; box-shadow: 0 0 12px rgba(167, 139, 250, .6); }
.kbars { display: flex; align-items: flex-end; gap: 6px; height: 40px; align-self: end; }
.kbars i { flex: 1; height: var(--h); border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #4ade80, rgba(34, 197, 94, .25)); transform-origin: bottom; animation: grow .8s cubic-bezier(.4, 0, .2, 1) both; animation-delay: calc(.3s + var(--d)); }

/* Yan menu: aktif oge canli degisen gradyan + isilti */
@media (min-width: 861px) {
  .top { background: linear-gradient(180deg, #120d33 0%, #0b0824 100%); }
  .tabs button.active { background: linear-gradient(120deg, #8b5cf6, #6d28d9, #7c3aed, #a855f7); background-size: 300% 300%; animation: gradShift 8s ease infinite; }
  .tabs svg { transition: transform .18s, color .18s; }
  .tabs button:not(.active):hover svg { color: var(--accent-text); transform: translateX(2px); }
}
.brand .mark { background: linear-gradient(135deg, #a855f7, #7c3aed 55%, #ec4899); box-shadow: 0 8px 22px -6px rgba(168, 85, 247, .8); }

/* Butonlar: birincil butonda isik suzulmesi */
.btn { transition: background .15s, border-color .15s, transform .15s, box-shadow .2s; }
.btn:active { transform: scale(.97); }
.btn.primary { position: relative; overflow: hidden; background: linear-gradient(120deg, #8b5cf6, #7c3aed 50%, #a855f7); background-size: 200% 200%; box-shadow: 0 10px 26px -10px rgba(139, 92, 246, .9); }
.btn.primary:hover { animation: gradShift 3s ease infinite; box-shadow: 0 14px 32px -10px rgba(168, 85, 247, 1); }
.btn.primary::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent); transform: translateX(-120%) skewX(-20deg); pointer-events: none; }
.btn.primary:hover::after { animation: shine .9s ease; }

/* Durum noktalari nabiz gibi atar */
.st-dot.ok { color: rgba(52, 211, 153, .55); animation: ping 2.2s cubic-bezier(0, 0, .2, 1) infinite; }
.st-dot.bad { color: rgba(248, 113, 113, .55); animation: ping 1.6s cubic-bezier(0, 0, .2, 1) infinite; }

/* Takvim: bugun sutunu ve kart isiltisi */
.cal-col.today { background: linear-gradient(180deg, rgba(139, 92, 246, .16), rgba(139, 92, 246, .03)); box-shadow: inset 0 0 0 1px rgba(167, 139, 250, .55); }
.ci { transition: border-color .18s, transform .18s, box-shadow .2s; }
.ci:hover { transform: translateY(-2px); border-color: #a78bfa; box-shadow: 0 12px 26px -14px rgba(139, 92, 246, .9); }
.ci .thumb img, .t3 .thumb img, .apq-it .thumb img { transition: transform .4s; }
.ci:hover .thumb img, .t3:hover .thumb img, .apq-it:hover .thumb img { transform: scale(1.06); }
.t3 .thumb { transition: box-shadow .25s; }
.t3:hover .thumb { box-shadow: 0 14px 30px -14px rgba(139, 92, 246, .9); }
.cs.published { color: #c4b5fd; border-color: rgba(196, 181, 253, .3); background: rgba(139, 92, 246, .12); }
.cs.planned { color: #f9a8d4; border-color: rgba(249, 168, 212, .3); background: rgba(236, 72, 153, .1); }

/* Performans grafigi: cizgi soldan saga cizilir */
.pchart .ln { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s cubic-bezier(.4, 0, .2, 1) .3s forwards; filter: drop-shadow(0 0 6px rgba(167, 139, 250, .55)); }
.pchart .dt, .pchart path[fill^="url"] { opacity: 0; animation: fadeIn .6s ease 1.2s forwards; }
.pchart .bar-ig, .pchart .bar-tt { transform-box: fill-box; transform-origin: bottom; animation: grow .7s cubic-bezier(.4, 0, .2, 1) .5s both; }
.pchart .bar-ig { fill: rgba(244, 114, 182, .75); }

/* Icerik hatti ve AI kutusu */
.pipe-st .pic { transition: transform .2s, box-shadow .2s; }
.pipe-st:hover .pic { transform: translateY(-2px) scale(1.05); box-shadow: 0 10px 22px -10px currentColor; }
.ai-box { background: linear-gradient(135deg, rgba(139, 92, 246, .22), rgba(236, 72, 153, .10) 70%); border-color: rgba(167, 139, 250, .3); position: relative; overflow: hidden; }
.ai-box::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 60%; aspect-ratio: 1; border-radius: 50%; background: rgba(168, 85, 247, .18); filter: blur(40px); pointer-events: none; animation: aurora 14s ease-in-out infinite; }
.ai-box > * { position: relative; }
.ai-head .bot { background: linear-gradient(135deg, rgba(168, 85, 247, .35), rgba(124, 58, 237, .25)); animation: float 3s ease-in-out infinite; }
.ai-it { transition: border-color .18s, transform .18s; }
.ai-it:hover { transform: translateX(3px); border-color: rgba(167, 139, 250, .5); }

/* Trend Radar: puan halkasi 0'dan dolar */
.tscore { animation: ringIn 1.2s cubic-bezier(.4, 0, .2, 1) both; }
.tscore.hi { --sc: #4ade80; }
.tscore.mid { --sc: #fbbf24; }
.tscore.lo { --sc: #f472b6; }
.tbar u { background: linear-gradient(90deg, #8b5cf6, #ec4899); }
.tcard { transition: border-color .2s, transform .2s, box-shadow .25s; }
.tcard:hover { transform: translateY(-2px); border-color: var(--line-2); box-shadow: 0 18px 36px -20px rgba(139, 92, 246, .7); }

/* Sekme gecisi daha yumusak */
.tab:not(.hidden) { animation: fadeIn .25s ease-out; }
.meter > i { animation: growX 1s cubic-bezier(.4, 0, .2, 1) .2s both; }

/* Telefon */
@media (max-width: 860px) {
  .tabs { background: rgba(16, 11, 42, .97); }
  .kpi { min-height: 132px; padding: 14px; gap: 6px; }
  .kpi .kv { font-size: 24px; gap: 6px; }
  .kpi .kh { gap: 9px; }
  .kpi .ki { width: 34px; height: 34px; border-radius: 10px; }
  .kpi .kl { font-size: 13px; line-height: 1.25; }
  .kpi .spark { display: block; height: 30px; }
  .kpill { font-size: 11.5px; padding: 1px 5px; }
}
.kbars.pink { gap: 3px; }
.kbars.pink i { background: linear-gradient(180deg, #f472b6, rgba(236, 72, 153, .25)); border-radius: 3px 3px 1px 1px; }
