/* public/css/style.css */

/* ——————————— Reset & Base ——————————— */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: 100%;
}
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1rem;
  color: var(--text);
  background-color: #F5F7FA;
  line-height: 1.6;
  min-height: 100vh;
}

/* ——————————— CSS Değişkenleri ——————————— */
:root {
  --primary: #4A90E2;
  --primary-dark: #357ABD;
  --accent: #FF6B6B;
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --text: #333333;
  --text-light: #777777;
  --radius: 8px;
  --transition: 0.3s ease;
}

/* ——————————— Genel Konteyner ——————————— */
.container {
  width: 90%;
  max-width: 400px;
  margin: 2rem auto;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 2rem;
}

/* ——————————— Logo (Login/Sorgu) ——————————— */
.logo,
.header-logo {
  display: block;
  margin: 0 auto 1.5rem;
  max-width: 150px;
}

/* ——————————— Başlıklar & Metin ——————————— */
h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  margin-bottom: 1rem;
  font-weight: 600;
}
p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

/* ——————————— Form Elemanları ——————————— */
label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text);
}
input[type="text"],
input[type="password"],
select {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  border: 1px solid #DDD;
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color var(--transition);
}
input:focus,
select:focus {
  border-color: var(--primary);
  outline: none;
}

/* ——————————— Butonlar ——————————— */
button, .btn {
  display: inline-block;
  background: var(--primary);
  color: #FFF;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 1rem;
  cursor: pointer;
  transition: background-color var(--transition);
  text-decoration: none;
  text-align: center;
}
button:hover, .btn:hover {
  background: var(--primary-dark);
}
button:disabled,
.btn:disabled {
  background: #CCC;
  cursor: not-allowed;
}

/* ——————————— Alerts ——————————— */
.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.alert-error {
  background: #FFE5E5;
  color: var(--accent);
}
.alert-success {
  background: #E5FFE5;
  color: #28A745;
}

/* ——————————— Linkler ——————————— */
a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--primary-dark);
}

/* ——————————— Dashboard Header ——————————— */
.dashboard-header {
  text-align: center;
  margin: 2rem 0;
}
.dashboard-header .header-logo {
  max-height: 80px;
}
.dashboard-header .header-title {
  margin-top: 0.5rem;
  font-size: 2rem;
  color: var(--text);
  font-weight: 600;
}

/* ——————————— Dashboard Nav ——————————— */
.dashboard-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.dashboard-nav a {
  background: var(--primary);
  color: #FFF;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 500;
  transition: background var(--transition);
}
.dashboard-nav a:hover {
  background: var(--primary-dark);
}

/* ——————————— İstatistik Kartları ——————————— */
.stats-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.card {
  background: var(--surface);
  padding: 1rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
}
.number {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.label {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ——————————— Harita Bölümü ——————————— */
.map-section {
  margin-top: 2rem;
}
#map {
  width: 100%;
  height: 450px;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ——————————— Responsive Ayarlar ——————————— */
@media (max-width: 768px) {
  .stats-cards {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  #map {
    height: 300px;
  }
}
@media (max-width: 480px) {
  .container {
    width: 95%;
    max-width: 100%;
    padding: 1rem;
    margin: 1rem auto;
  }
}
