/* Check Türkiye Custom Styles */
body, html {
  font-family: 'Poppins', sans-serif;
}

/* Color Theme Variables */
:root {
  --primary-color: #8B5E34;
  --primary-light: #A67C52;
  --primary-dark: #6D4A2A;
  --accent-color: #D2B48C;
  --accent-light: #E5D4B1;
  --secondary-color: #8B5E34;
}

/* Modern Gradient Text */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Primary Color Classes */
.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.border-primary { border-color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }

/* Modern Hover Effects */
.modern-card {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-card::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(139, 94, 52, 0.1) 0%, rgba(139, 94, 52, 0.05) 70%, transparent 100%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  pointer-events: none;
}

.modern-card:hover::before {
  width: 400px;
  height: 400px;
}

.modern-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(139, 94, 52, 0.3);
}

/* Enhanced Clinic Cards */
.clinic-card {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
}

.clinic-card::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(139, 94, 52, 0.08) 0%, rgba(139, 94, 52, 0.04) 70%, transparent 100%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  pointer-events: none;
}

.clinic-card:hover::before {
  width: 500px;
  height: 500px;
}

.clinic-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 30px 60px -15px rgba(139, 94, 52, 0.25);
}

.clinic-card .card-content {
  position: relative;
  z-index: 2;
}

/* Category Cards */
.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
}

.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.category-card:hover::before {
  opacity: 1;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: calc(200px + 100%) 0;
  }
}

/* Enhanced 3D Rotating Text Animation */
@keyframes rotateText3D {
  0%, 20% {
    transform: translateY(0) rotateX(0deg) scale(1);
    opacity: 1;
    filter: blur(0px);
  }
  25%, 75% {
    transform: translateY(-80px) rotateX(-90deg) scale(0.8);
    opacity: 0;
    filter: blur(2px);
  }
  80%, 100% {
    transform: translateY(0) rotateX(0deg) scale(1);
    opacity: 0;
    filter: blur(0px);
  }
}

.rotating-text-container {
  height: 140px;
  overflow: hidden;
  perspective: 1200px;
  position: relative;
}

.rotating-text {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform-style: preserve-3d;
  animation: rotateText3D 16s infinite;
}

.rotating-text:nth-child(1) { animation-delay: 0s; }
.rotating-text:nth-child(2) { animation-delay: 4s; }
.rotating-text:nth-child(3) { animation-delay: 8s; }
.rotating-text:nth-child(4) { animation-delay: 12s; }

.text-3d {
  text-shadow: 
    0 1px 0 rgba(255,255,255,0.2),
    0 2px 0 rgba(255,255,255,0.1),
    0 3px 0 rgba(0,0,0,0.1),
    0 4px 0 rgba(0,0,0,0.08),
    0 5px 5px rgba(0,0,0,0.3),
    0 10px 15px rgba(0,0,0,0.2);
  transform: translateZ(20px);
}

/* Navbar enhancements */
.navbar-blur {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Search container glass effect */
.search-container-enhanced {
  backdrop-filter: blur(25px);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Enhanced button styles */
.btn-glass {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Utility Classes */
.animate-fadeInUp {
  animation: fadeInUp 0.6s ease-out;
}

.animate-slideInLeft {
  animation: slideInLeft 0.6s ease-out;
}

.animate-pulse-custom {
  animation: pulse 2s ease-in-out infinite;
}

.loading-shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200px 100%;
  animation: shimmer 1.5s infinite;
}

/* Custom Components */
.hero-gradient {
  background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.4) 100%);
}

.search-container {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

.clinic-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.clinic-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Glass morphism effect */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Gradient text */
.text-gradient {
  background: linear-gradient(135deg, #FF4444, #A0522D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #FF4444;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #e63939;
}

/* Button styles */
.btn-primary {
  background: linear-gradient(135deg, #FF4444, #e63939);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #e63939, #d32f2f);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 68, 68, 0.3);
}

.btn-secondary {
  background: linear-gradient(135deg, #A0522D, #8B4513);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #8B4513, #654321);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(160, 82, 45, 0.3);
}

/* Card hover effects */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Rating stars */
.rating-stars {
  display: inline-flex;
  align-items: center;
}

.rating-stars .star {
  color: #fbbf24;
  transition: color 0.2s ease;
}

.rating-stars .star.empty {
  color: #d1d5db;
}

/* Loading states */
.loading-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200px 100%;
  animation: shimmer 1.5s infinite;
}

/* Modal styles */
.modal-backdrop {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  animation: fadeInUp 0.3s ease-out;
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .hero-gradient {
    background-attachment: scroll;
  }
  
  .search-container {
    backdrop-filter: none;
    background: rgba(255, 255, 255, 0.98);
  }
  
  .clinic-card:hover {
    transform: none;
  }
}

/* Accessibility improvements */
.focus-visible:focus {
  outline: 2px solid #FF4444;
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  .clinic-card {
    break-inside: avoid;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .auto-dark {
    background-color: #1f2937;
    color: #f9fafb;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .clinic-card {
    border: 2px solid #000;
  }
  
  .btn-primary {
    background: #000;
    color: #fff;
    border: 2px solid #fff;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Modern Why Turkey Section Animations */
.star-animation {
  opacity: 0;
  transform: scale(0.5);
  animation: starAppear 0.6s ease-out forwards;
}

@keyframes starAppear {
  0% {
    opacity: 0;
    transform: scale(0.5) rotate(-180deg);
  }
  50% {
    transform: scale(1.2) rotate(-90deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.modern-stat-card {
  position: relative;
  animation: fadeInUp 0.6s ease-out forwards;
  animation-fill-mode: both;
}

.modern-stat-card:nth-child(1) { animation-delay: 0.1s; }
.modern-stat-card:nth-child(2) { animation-delay: 0.2s; }
.modern-stat-card:nth-child(3) { animation-delay: 0.3s; }
.modern-stat-card:nth-child(4) { animation-delay: 0.4s; }
.modern-stat-card:nth-child(5) { animation-delay: 0.5s; }
.modern-stat-card:nth-child(6) { animation-delay: 0.6s; }

/* Floating Background Icons */
@keyframes float-slow {
  0%, 100% { 
    transform: translateY(0) rotate(0deg); 
    opacity: 0.1;
  }
  50% { 
    transform: translateY(-20px) rotate(180deg); 
    opacity: 0.2;
  }
}

@keyframes float-medium {
  0%, 100% { 
    transform: translateY(0) rotate(0deg) scale(1); 
    opacity: 0.15;
  }
  50% { 
    transform: translateY(-15px) rotate(90deg) scale(1.1); 
    opacity: 0.25;
  }
}

@keyframes float-fast {
  0%, 100% { 
    transform: translateY(0) rotate(0deg); 
    opacity: 0.1;
  }
  50% { 
    transform: translateY(-10px) rotate(-90deg); 
    opacity: 0.2;
  }
}

.animate-float-slow {
  animation: float-slow 6s ease-in-out infinite;
}

.animate-float-medium {
  animation: float-medium 4s ease-in-out infinite;
}

.animate-float-fast {
  animation: float-fast 3s ease-in-out infinite;
}

/* Count Up Animation */
@keyframes count-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-count-up {
  animation: count-up 1s ease-out;
}

/* Circle Fill Animation */
@keyframes circle-fill {
  from {
    stroke-dashoffset: 188;
  }
  to {
    stroke-dashoffset: 25.12;
  }
}

.animate-circle-fill {
  animation: circle-fill 2s ease-out 1s forwards;
  stroke-dashoffset: 188;
}

/* Single Page Styles */
.textHeading {
  color: #1a1a1a;
}

.text2Paragraph {
  color: #6b7280;
}

.primaryColor {
  color: #8B5E34;
}

.lightBorder {
  border-color: #F4F0ED;
}

.primaryButton {
  background-color: #8B5E34;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.primaryButton:hover {
  background-color: #6D4A2A;
  transform: translateY(-2px);
}
