/* ===================================
   Metin2 Stone Tool - Main Stylesheet
   =================================== */

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #1e1e1e 0%, #2d2d2d 100%);
}

/* ===================================
   Ana Sayfa - Harita Kartları
   =================================== */

.map-card {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  border: 2px solid #444;
}

.map-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
  border-color: #ffc107;
}

.resim {
  width: 100%;
  height: 250px;
  background-size: cover !important;
  background-position: center !important;
  position: relative;
  overflow: hidden;
}

.resim::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.7) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.map-card:hover .resim::after {
  opacity: 1;
}

.yazi {
  color: #fff;
  text-decoration: none !important;
}

.yazi:hover {
  color: #fff;
  text-decoration: none !important;
}

.yazi2 {
  padding: 15px;
  background: linear-gradient(135deg, #333 0%, #444 100%);
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s ease;
  border-top: 2px solid #555;
}

.map-card:hover .yazi2 {
  background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
  color: #000;
  border-top-color: #ffc107;
}

/* ===================================
   Harita Düzenleme Sayfası
   =================================== */

#pointer_div {
  border: 3px solid #555;
  border-radius: 8px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
  position: relative;
  user-select: none;
}

#pointer_div:hover {
  border-color: #ffc107;
}

/* Metin Noktaları */
.metin {
  position: absolute;
  height: 12px;
  width: 12px;
  background: radial-gradient(circle, #ff0000 0%, #cc0000 100%);
  border: 2px solid #ffff00;
  border-radius: 50%;
  cursor: pointer;
  z-index: 9999;
  transition: all 0.2s ease;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
  animation: pulse 2s infinite;
}

.metin:hover {
  transform: scale(2);
  background: radial-gradient(circle, #ffff00 0%, #ffc107 100%);
  border-color: #ff0000;
  z-index: 10000;
  box-shadow: 0 0 20px rgba(255, 255, 0, 1);
}

/* Metin Pulse Animation */
@keyframes pulse {
  0% {
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 0, 0, 1), 0 0 30px rgba(255, 0, 0, 0.5);
  }
  100% {
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
  }
}

/* Alan (Spawn Area) */
.alan {
  position: absolute;
  background: rgba(255, 255, 0, 0.2);
  border: 2px dashed #ffff00;
  border-radius: 50%;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.alan:hover {
  opacity: 0.8;
  background: rgba(255, 255, 0, 0.3);
}

/* ===================================
   Form Stilleri
   =================================== */

.form-control {
  background: #2d2d2d;
  border: 2px solid #444;
  color: #fff;
  transition: all 0.3s ease;
}

.form-control:focus {
  background: #333;
  border-color: #ffc107;
  color: #fff;
  box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

.form-control::placeholder {
  color: #888;
}

label {
  font-size: 13px;
  margin-bottom: 5px;
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 768px) {
  .resim {
    height: 180px;
  }
  
  #pointer_div {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1/1;
  }
  
  .yazi2 {
    font-size: 14px;
    padding: 12px;
  }
}

@media (max-width: 576px) {
  .resim {
    height: 150px;
  }
}
