/* =====================================
   Ziyomap — CSS Kengaytmalar
   Animatsiyalar, kartalar, tugmalar, dizayn
   ===================================== */

/* ===== 1. ANIMATSIYALAR ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes zoomIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 8px rgba(99,102,241,0.3); }
  50% { box-shadow: 0 0 25px rgba(99,102,241,0.6); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

.anim-fade-up { animation: fadeInUp 0.6s ease both; }
.anim-fade-down { animation: fadeInDown 0.6s ease both; }
.anim-fade-left { animation: fadeInLeft 0.6s ease both; }
.anim-fade-right { animation: fadeInRight 0.6s ease both; }
.anim-zoom { animation: zoomIn 0.5s ease both; }
.anim-float { animation: float 3s ease-in-out infinite; }
.anim-pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }

/* ===== 2. KARTALAR ===== */
.glass-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
body.dark-theme .glass-card {
  background: rgba(15,23,42,0.6);
  border-color: rgba(255,255,255,0.06);
}

.card-glow {
  transition: transform 0.3s, box-shadow 0.3s;
}
.card-glow:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(99,102,241,0.2), 0 0 0 1px rgba(99,102,241,0.1);
}
body.dark-theme .card-glow:hover {
  box-shadow: 0 12px 40px rgba(129,140,248,0.15), 0 0 0 1px rgba(129,140,248,0.1);
}

.card-gradient-border {
  position: relative;
  border-radius: 20px;
  background: var(--card-bg);
  z-index: 0;
}
.card-gradient-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  background: linear-gradient(135deg,#6366f1,#0ea5e9,#10b981);
  z-index: -1;
  opacity: 0.5;
  transition: opacity 0.3s;
}
.card-gradient-border:hover::before { opacity: 1; }

/* ===== 3. TUGMALAR ===== */
.btn-glow {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-glow::after {
  content: '';
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle, rgba(255,255,255,0.25) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-glow:hover::after { opacity: 1; }
.btn-glow:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(99,102,241,0.35); }

.btn-pulse {
  animation: pulse-glow 2s ease-in-out infinite;
}
.btn-pulse:hover { animation: none; }

.btn-ripple {
  position: relative;
  overflow: hidden;
}
.btn-ripple::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  width: 100px; height: 100px;
  margin-top: -50px; margin-left: -50px;
  top: 50%; left: 50%;
  transform: scale(0);
  opacity: 0;
}
.btn-ripple:active::after {
  animation: ripple 0.6s ease-out;
}
@keyframes ripple {
  from { transform: scale(0); opacity: 0.5; }
  to { transform: scale(4); opacity: 0; }
}

/* ===== 4. UMUMIY DIZAYN ===== */
::selection {
  background: #6366f1;
  color: #fff;
}
body.dark-theme ::selection {
  background: #818cf8;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  background: linear-gradient(135deg,#6366f1,#0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1rem;
  opacity: 0.7;
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.text-center { text-align: center; }
.w-full { width: 100%; }

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}
body.dark-theme .skeleton {
  background: linear-gradient(90deg, #334155 25%, #475569 50%, #334155 75%);
  background-size: 200% 100%;
}

/* Sekin scroll */
html { scroll-behavior: smooth; }

@media (max-width: 768px) {
  .glass-card { border-radius: 16px; }
}
