/**
 * SOSYALVADI UI ULTRA PRO 2026
 * Gelişmiş mikro-etkileşimler, kart animasyonları, empty states, form polish
 * @version 2026.2.27
 */

/* ========== GLOBAL ANIMATIONS (prefers-reduced-motion saygılı) ========== */
/* Sayfa fade-in zaten sv-ultra-2026.css .sv-module'de */

/* Kart stagger — grid child'ları için gecikmeli giriş */
.sv-card-stagger > *,
.ruya-list-page.ruya-grid > .ruya-card,
.ruya-list-page.ruya-grid > a.ruya-card,
.haber-list-grid > .haber-list-card,
.sv-tarif-grid > .tarif-card,
.sv-tarif-grid > article {
  animation: svCardReveal 0.5s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}
.sv-card-stagger > *:nth-child(1), .ruya-list-page.ruya-grid > *:nth-child(1),
.haber-list-grid > *:nth-child(1), .sv-tarif-grid > *:nth-child(1) { animation-delay: 0.03s; }
.sv-card-stagger > *:nth-child(2), .ruya-list-page.ruya-grid > *:nth-child(2),
.haber-list-grid > *:nth-child(2), .sv-tarif-grid > *:nth-child(2) { animation-delay: 0.06s; }
.sv-card-stagger > *:nth-child(3), .ruya-list-page.ruya-grid > *:nth-child(3),
.haber-list-grid > *:nth-child(3), .sv-tarif-grid > *:nth-child(3) { animation-delay: 0.09s; }
.sv-card-stagger > *:nth-child(4), .ruya-list-page.ruya-grid > *:nth-child(4),
.haber-list-grid > *:nth-child(4), .sv-tarif-grid > *:nth-child(4) { animation-delay: 0.12s; }
.sv-card-stagger > *:nth-child(5), .ruya-list-page.ruya-grid > *:nth-child(5),
.haber-list-grid > *:nth-child(5), .sv-tarif-grid > *:nth-child(5) { animation-delay: 0.15s; }
.sv-card-stagger > *:nth-child(6), .ruya-list-page.ruya-grid > *:nth-child(6),
.haber-list-grid > *:nth-child(6), .sv-tarif-grid > *:nth-child(6) { animation-delay: 0.18s; }
.sv-card-stagger > *:nth-child(7), .ruya-list-page.ruya-grid > *:nth-child(7) { animation-delay: 0.21s; }
.sv-card-stagger > *:nth-child(8), .ruya-list-page.ruya-grid > *:nth-child(8) { animation-delay: 0.24s; }
.sv-card-stagger > *:nth-child(n+9), .ruya-list-page.ruya-grid > *:nth-child(n+9) { animation-delay: 0.27s; }

@media (prefers-reduced-motion: reduce) {
  .sv-card-stagger > *, .ruya-list-page.ruya-grid > *, .haber-list-grid > *, .sv-tarif-grid > * {
    animation: none !important;
  }
}

@keyframes svCardReveal {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ========== FOCUS RING PRO — Görünür, güzel ========== */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.35), 0 0 0 1px rgba(37, 99, 235, 0.5);
  border-radius: var(--radius-1, 6px);
}
[data-theme="dark"] button:focus-visible,
[data-theme="dark"] input:focus-visible,
[data-theme="dark"] select:focus-visible,
[data-theme="dark"] textarea:focus-visible,
[data-theme="dark"] a:focus-visible,
[data-theme="dark"] [tabindex]:focus-visible {
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.45), 0 0 0 1px rgba(96, 165, 250, 0.6);
}

/* ========== KART HOVER GLOW — Gelişmiş gölge + border ========== */
.sv-card--hover:hover,
.ruya-card:hover,
.haber-list-card:hover,
.tarif-card:hover,
.sv-glass-panel:hover,
.yazar-hero-card:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(0, 0, 0, 0.06),
    0 0 0 1px rgba(37, 99, 235, 0.06);
}
[data-theme="dark"] .sv-card--hover:hover,
[data-theme="dark"] .ruya-card:hover,
[data-theme="dark"] .haber-list-card:hover,
[data-theme="dark"] .tarif-card:hover,
[data-theme="dark"] .sv-glass-panel:hover,
[data-theme="dark"] .yazar-hero-card:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 8px 24px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(96, 165, 250, 0.15);
}

/* ========== SKELETON PRO — Gelişmiş shimmer ========== */
.sv-skeleton {
  background: linear-gradient(
    110deg,
    color-mix(in srgb, var(--text) 8%, transparent) 25%,
    color-mix(in srgb, var(--text) 15%, transparent) 50%,
    color-mix(in srgb, var(--text) 8%, transparent) 75%
  );
  background-size: 200% 100%;
  animation: svSkeletonPro 1.2s ease-in-out infinite;
}
@keyframes svSkeletonPro {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
[data-theme="dark"] .sv-skeleton {
  background: linear-gradient(
    110deg,
    rgba(255,255,255,0.06) 25%,
    rgba(255,255,255,0.12) 50%,
    rgba(255,255,255,0.06) 75%
  );
  background-size: 200% 100%;
}
@media (prefers-reduced-motion: reduce) {
  .sv-skeleton { animation: none; opacity: 0.7; }
}

/* ========== EMPTY STATE ULTRA — Gradient, ikon, CTA ========== */
.sv-empty-state--enhanced {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--primary) 4%, transparent) 0%,
    transparent 60%
  );
  border-radius: var(--radius-glass, 20px);
  border: 1px solid color-mix(in srgb, var(--primary) 12%, transparent);
}
[data-theme="dark"] .sv-empty-state--enhanced {
  background: linear-gradient(
    180deg,
    rgba(96, 165, 250, 0.08) 0%,
    transparent 60%
  );
  border-color: rgba(96, 165, 250, 0.15);
}
.sv-empty-state-icon {
  filter: drop-shadow(0 4px 12px rgba(37, 99, 235, 0.2));
}
.sv-empty-state-cta {
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}
.sv-empty-state-cta::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.2),
    transparent
  );
  transition: left 0.5s ease;
}
.sv-empty-state-cta:hover::after {
  left: 100%;
}
.sv-empty-state-cta:active {
  transform: scale(0.98);
}

/* ========== FORM INPUT PRO — Focus glow, label ========== */
.giris-field input:focus,
.sv-auth-field input:focus,
.profil-duzenle-field input:focus {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2), 0 0 20px rgba(37, 99, 235, 0.1);
}
[data-theme="dark"] .giris-field input:focus,
[data-theme="dark"] .sv-auth-field input:focus {
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.25), 0 0 24px rgba(96, 165, 250, 0.12);
}
.giris-field input,
.sv-auth-field input {
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}
.giris-field input:hover,
.sv-auth-field input:hover {
  border-color: color-mix(in srgb, var(--primary) 30%, transparent);
}

/* ========== BUTTON / CTA PRO — Ripple hissi ========== */
.giris-btn,
.sv-empty-state-cta,
.yazar-empty-link,
.sv-action-chip {
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.25s ease, filter 0.2s ease;
}
.giris-btn:active,
.sv-empty-state-cta:active,
.yazar-empty-link:active {
  transform: scale(0.98);
}
.giris-btn:hover,
.sv-action-chip:hover {
  filter: brightness(1.05);
}

/* ========== BREADCRUMB POLISH ========== */
.sv-breadcrumb a {
  transition: color 0.2s ease;
}
.sv-breadcrumb a:hover {
  color: var(--primary);
}

/* ========== MODULE CARD PRO (Ana sayfa) ========== */
.module-card-new,
.module-card-link {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}
.module-card-new:hover,
.module-card-link:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(37, 99, 235, 0.06);
}

/* ========== GLASS PANEL PRO ========== */
.sv-glass-panel {
  transition: box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s ease;
}
.sv-glass-panel:hover {
  transform: translateY(-1px);
}

/* ========== SECTION TITLE — Gradient text (opsiyonel) ========== */
.yazar-section-title,
.ruya-section-title,
.sv-h1 {
  letter-spacing: -0.03em;
}

/* ========== BACK TO TOP PRO ========== */
.sv-back-to-top {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.sv-back-to-top:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.5);
}
.sv-back-to-top:active {
  transform: translateY(-2px) scale(1.02);
}

/* ========== VIEW TOGGLE BUTTONS — Grid/Liste ========== */
.haber-view-btn,
.tarif-view-btn,
.ruya-view-btn,
.sv-burc-view-btn {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.haber-view-btn:hover,
.tarif-view-btn:hover,
.ruya-view-btn:hover {
  transform: scale(1.05);
}
.haber-view-btn.is-active,
.tarif-view-btn.is-active,
.ruya-view-btn.is-active,
.sv-burc-view-btn.is-active {
  transform: scale(1.02);
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.3);
}

/* ========== CHIP / BADGE POLISH ========== */
.sv-chip,
.sv-action-chip {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sv-action-chip:active {
  transform: scale(0.97);
}
