/* 19 Kodu Özet Sayfası Özel Stilleri */

/* Hero Section Animasyonları */
.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-title {
  background: linear-gradient(135deg, #ffffff, #fbbf24, #ffffff);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleGradient 3s ease-in-out infinite;
}

@keyframes titleGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* İstatistik Kartları */
.stat-card {
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card:hover {
  transform: translateY(-2px);
  background-color: rgba(255, 255, 255, 0.15);
}

/* Keşif Kartları */
.discovery-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.dark .discovery-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.discovery-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.dark .discovery-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Kompleks Keşif Kartları */
.complex-discovery {
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.dark .complex-discovery {
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.complex-discovery:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.dark .complex-discovery:hover {
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

/* Özel Keşif Kartları */
.special-discovery {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.special-discovery::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.special-discovery:hover::before {
  opacity: 1;
}

.special-discovery:hover {
  transform: translateX(4px);
}

/* İlgili Sayfa Kartları */
.related-page {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.dark .related-page {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.related-page:hover {
  text-decoration: none;
}

/* Sayaç Animasyonu */
@keyframes countUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.count-animation {
  animation: countUp 0.6s ease-out;
}

/* Gradient Animasyonu */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.gradient-animate {
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

/* Chart Container */
#mainStatsChart {
  max-width: 100%;
  height: auto;
}

/* Responsive Düzenlemeler */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .stat-card {
    padding: 0.75rem;
  }
  
  .discovery-card {
    padding: 1rem;
  }
  
  .complex-discovery {
    padding: 1.5rem;
  }
  
  .special-discovery {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .stat-card .text-3xl {
    font-size: 1.5rem;
  }
  
  .grid.md\\:grid-cols-2.lg\\:grid-cols-3 {
    grid-template-columns: 1fr;
  }
  
  .grid.md\\:grid-cols-2 {
    grid-template-columns: 1fr;
  }
}

/* Loading Animasyonu */
.loading-shimmer {
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0) 0%, 
    rgba(255, 255, 255, 0.4) 50%, 
    rgba(255, 255, 255, 0) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Özel Scroll Bar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, #3b82f6, #8b5cf6);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, #2563eb, #7c3aed);
}

/* Темная тема для скроллбара */
.dark ::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

/* Glow efekti */
.glow-on-hover {
  position: relative;
  z-index: 1;
}

.glow-on-hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(45deg, #3b82f6, #8b5cf6, #3b82f6);
  background-size: 200% 200%;
  animation: gradientShift 3s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: exclude;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}
