:root {
  --primary: #FF7043;
  --bg: #fffdfc;
  --text: #333;
}

* {
  font-family: 'Baloo 2', cursive;
  box-sizing: border-box; /* Tüm elemanlarda daha iyi kontrol için */
}

body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  overflow: hidden; /* Genel sayfa scroll kapalı */
  color: var(--text);
}

header {
  background-color: var(--primary);
  color: white;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 999;
}

header h1 {
  margin: 0;
  font-size: 1.4rem;
}

header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

header .logo img {
  height: 36px;
  border-radius: 8px;
  padding: 2px;
  background: #fff5ef; /* Turuncuya yakın yumuşak zemin */
}

header .buttons {
  display: flex;
  gap: 10px;
}

.updates-btn,
.report-btn {
  background: white;
  color: var(--primary);
  border: none;
  padding: 6px 12px;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: all 0.3s ease;
}

.report-btn {
  animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(0,0,0,0);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(255, 112, 67, 0.3);
  }
}

#map {
  width: 100%;
  height: calc(100vh - 60px); /* Header yüksekliği kadar */
}

.version-control {
  background: rgba(255, 255, 255, 0.8);
  padding: 2px 8px;
  color: var(--primary);
  border-radius: 6px;
  box-shadow: 0 0 5px rgba(0,0,0,0.15);
  user-select: none;
}

    .modal-overlay {
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0, 0, 0, 0.6);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 9999;
    }

    .modal {
      background: white;
      padding: 20px;
      border-radius: 16px;
      width: 90%;
      max-width: 400px;
      position: relative;
      box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    }

    .modal p {
      margin-left: 10px;
    }

.modal h2 {
  margin-top: 0;
  font-size: 1.3rem;
  color: var(--primary);
  text-align: center;
}

.animal-type {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.animal-type label {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff5ef;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease, background 0.4s ease;
  font-weight: 500;
  position: relative;
}

.animal-type input[type="radio"] {
  display: none;
}

.animal-type label:has(input:checked) {
  background: var(--primary);
  color: white;
  font-weight: bold;
}

.modal input[type="text"],
.modal textarea,
.modal input[type="file"] {
  width: 100%;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
  box-sizing: border-box;
}

.modal textarea {
  resize: vertical;
}

.file-label {
  display: inline-block;
  background: #fff5ef;
  color: var(--primary);
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 8px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.file-input {
  display: none;
}

#photo-preview {
  margin-top: 10px;
  text-align: center;
}

#photo-preview img {
  max-width: 120px;
  max-height: 120px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

#submitReport {
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px;
  border-radius: 12px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

#submitReport:hover {
  background: #e55d2b;
}

.custom-alert {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: #ff7043;
  color: white;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s ease;
  z-index: 9999;
}

.custom-alert.show {
  opacity: 1;
  pointer-events: auto;
}

.close-btn {
  background: transparent;
  border: none;
  font-size: 2rem;
  font-weight: bold;
  color: #555;
  cursor: pointer;
  float: right;
  line-height: 1;
  padding: 0 8px;
  margin-top: -6px;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: #f05a28;
}

/* Modal genel arkaplan - yarı saydam */
#reportModalOverlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 165, 79, 0.25); /* Pastel turuncu yarı saydam */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.3s ease;
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
}

/* Gizli modal */
#reportModalOverlay.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Modal iç kutusu */
.reportModalContent {
  background: #fff7f0; /* Hafif pastel turuncu/beyaz karışımı */
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(255, 140, 0, 0.3);
  max-width: 95%;
  max-height: 80vh;
  width: 360px;
  overflow-y: auto;
  padding: 20px 24px;
  position: relative;
  font-family: 'Baloo 2', cursive;
  color: #333;
}

#reportModalClose {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 1.8rem;
  background: transparent;
  border: none;
  color: #ff8c00;
  cursor: pointer;
  transition: color 0.2s ease;
}

#reportModalClose:hover {
  color: #ff6b00;
}

#reportModalBody {
  font-size: 1rem;
  line-height: 1.4;
  user-select: text;
  text-align: center;
}

#reportModalBody img {
  max-width: 250px;
  border-radius: 10px;
  margin: 12px auto;
  display: inline-block;
  object-fit: cover;
}

.info-inline {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.info-inline span {
  font-size: 1rem;
}

#reportModalBody strong {
  font-size: 1.3rem;
  color: #ff7f00;
  display: block;
  margin-bottom: 6px;
}

#reportModalBody em {
  color: #666;
  font-style: normal;
  font-weight: 600;
}

.social-share {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-share a {
  font-size: 1.6rem;
  transition: transform 0.2s ease;
}

.social-share a:hover {
  transform: scale(1.2);
}

.leaflet-marker-icon {
  filter: drop-shadow(2px 4px 4px rgba(0, 0, 0, 0.4));
  transition: filter 0.3s ease;
}

.leaflet-marker-icon:hover {
  filter: drop-shadow(4px 8px 6px rgba(0, 0, 0, 0.5));
}

.updates-modal {
  background: white;
  padding: 20px;
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh; /* Yükseklik sınırı */
  overflow-y: auto;  /* İçerik taşarsa scroll */
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  position: relative;
}

.updates-modal h1 {
  margin-top: 0;
  color: #ff7043;
  font-weight: 700;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 15px;
}

.updates-modal h2 {
  margin-top: 20px;
  color: #ff7043;
  font-weight: 600;
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.updates-modal h2 em {
  font-size: 0.9rem;
  color: #555; /* Daha okunaklı koyu gri */
  font-style: normal;
  margin-left: 6px;
}

.updates-modal p {
  font-size: 1rem;
  margin-left: 15px;
  color: #555;
}

.close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 1.8rem;
  background: transparent;
  border: none;
  color: #ff8c00;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-btn:hover {
  color: #ff6b00;
}

.hidden {
  display: none !important;
}

.phone-link {
  color: var(--primary); /* kendi turuncu rengin */
  text-decoration: none;
  font-weight: 600;
  margin-left: 6px;
}

.phone-link:hover {
  text-decoration: underline;
  color: #ff5722; /* daha koyu bir turuncu tonu */
}

@media (max-width: 600px) {
  header h1 {
    font-size: 1.1rem;
  }

  .report-btn {
    padding: 4px 10px;
    font-size: 0.9rem;
  }
}
