/* Enhanced Hizmet Bölgeleri Styles */

/* Hero Section */
.hizmet-bolgeleri-hero {
  background: linear-gradient(135deg, #dc143c 0%, #b22222 50%, #8b0000 100%);
  min-height: 300px;
  position: relative;
  margin-bottom: 3rem;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  z-index: 2;
}

.hero-icon {
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.9);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.hero-stats {
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 1rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.25rem;
}

/* Section Header */
.section-header h2 {
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(45deg, #dc143c, #ff6b6b);
  border-radius: 2px;
}

/* Enhanced Service Cards */
.hizmet-bolgesi-card {
  perspective: 1000px;
  height: 200px;
  cursor: pointer;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.hizmet-bolgesi-card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.card-front {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px solid #dee2e6;
}

.card-back {
  background: linear-gradient(135deg, #dc143c 0%, #b22222 100%);
  color: white;
  transform: rotateY(180deg);
}

.district-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, #dc143c, #ff6b6b);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.district-icon i {
  font-size: 1.5rem;
  color: white;
}

.hizmet-bolgesi-card:hover .district-icon {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(220, 20, 60, 0.3);
}

.district-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.district-label {
  font-size: 0.875rem;
  color: #6c757d;
  font-weight: 500;
}

.district-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.district-desc {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
  line-height: 1.4;
}

.card-back .btn {
  border-radius: 25px;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.card-back .btn:hover {
  background: white;
  color: #dc143c;
  transform: translateY(-2px);
}

/* Enhanced Service Info Cards */
.service-info-card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  margin-top: 1rem;
}

.service-info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.service-icon-header {
  background: linear-gradient(45deg, #dc143c, #ff6b6b);
  color: white;
  padding: 1.5rem;
  text-align: center;
  margin: 0.5rem -1.5rem 1.5rem -1.5rem;
}

.service-icon-header i {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.service-icon-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
}

.service-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.3s ease;
}

.service-list li:hover {
  background: #f8f9fa;
  padding-left: 0.5rem;
}

.service-list li:last-child {
  border-bottom: none;
}

/* Enhanced Map Section */
.map-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 15px;
  padding: 2rem;
  margin-top: 3rem;
}

.map-header {
  text-align: center;
  margin-bottom: 2rem;
}

.map-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #dc143c;
  margin-bottom: 0.5rem;
}

.region-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.region-column h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0066cc;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.region-column h4 i {
  margin-right: 0.5rem;
}

.region-column p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #6c757d;
}

/* CTA Alert */
.cta-alert {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  border: none;
  border-radius: 15px;
  padding: 1.5rem;
  color: white;
  text-align: center;
}

.cta-alert i {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.cta-alert strong {
  font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 992px) {
  .hizmet-bolgeleri-hero {
    min-height: 250px;
  }
  
  .hero-icon {
    font-size: 3rem;
  }
  
  .stat-item {
    padding: 0.75rem 1rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .hizmet-bolgeleri-hero {
    min-height: 200px;
    margin-bottom: 2rem;
  }
  
  .hero-content {
    padding: 2rem !important;
  }
  
  .hero-stats {
    gap: 1rem;
  }
  
  .stat-item {
    padding: 0.5rem 0.75rem;
    min-width: 80px;
  }
  
  .stat-number {
    font-size: 1.25rem;
  }
  
  .stat-label {
    font-size: 0.75rem;
  }
  
  .hizmet-bolgesi-card {
    height: 180px;
  }
  
  .card-front, .card-back {
    padding: 1rem;
  }
  
  .district-icon {
    width: 50px;
    height: 50px;
  }
  
  .district-icon i {
    font-size: 1.25rem;
  }
  
  .district-name {
    font-size: 1rem;
  }
  
  /* Mobile layout with margins: 1 card on top, 2 cards below with 10px margins */
  #hizmetBolgeleriGrid {
    padding: 0 10px;
  }
  
  #hizmetBolgeleriGrid .col-lg-3 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 5px;
    margin-bottom: 10px;
  }
  
  #hizmetBolgeleriGrid .col-lg-3:first-child {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 5px;
  }
  
  .region-columns {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 1.75rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .hizmet-bolgesi-card {
    height: 160px;
  }
  
  .district-name {
    font-size: 0.9rem;
  }
  
  .district-label {
    font-size: 0.8rem;
  }
  
  /* Keep the same layout with margins: 1 card on top, 2 cards below */
  #hizmetBolgeleriGrid {
    padding: 0 10px;
  }
  
  #hizmetBolgeleriGrid .col-lg-3 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 5px;
    margin-bottom: 10px;
  }
  
  #hizmetBolgeleriGrid .col-lg-3:first-child {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 5px;
  }
}

/* Loading Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hizmet-bolgesi-card {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.hizmet-bolgesi-card:nth-child(1) { animation-delay: 0.1s; }
.hizmet-bolgesi-card:nth-child(2) { animation-delay: 0.2s; }
.hizmet-bolgesi-card:nth-child(3) { animation-delay: 0.3s; }
.hizmet-bolgesi-card:nth-child(4) { animation-delay: 0.4s; }
.hizmet-bolgesi-card:nth-child(5) { animation-delay: 0.5s; }
.hizmet-bolgesi-card:nth-child(6) { animation-delay: 0.6s; }
.hizmet-bolgesi-card:nth-child(7) { animation-delay: 0.7s; }
.hizmet-bolgesi-card:nth-child(8) { animation-delay: 0.8s; }
