/* ============================================
   STYLE.CSS — Ortak Stiller
   Tüm sayfalar bu dosyayı kullanır
   ============================================ */


/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  z-index: 1000;
}

.navbar .logo {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #667eea;
  text-decoration: none;
}
.navbar .logo span { color: #764ba2; }

.navbar .nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar .nav-links a {
  text-decoration: none;
  color: #555;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s;
  padding: 8px 4px;
  position: relative;
}
.navbar .nav-links a:hover { color: #667eea; }
.navbar .nav-links a.active { color: #667eea; }
.navbar .nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}

/* Mobil hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #555;
  padding: 4px 8px;
}

@media (max-width: 700px) {
  .navbar { padding: 0 16px; }
  .navbar .logo { font-size: 1.1rem; }
  .hamburger { display: block; }
  .navbar .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: none;
  }
  .navbar .nav-links.show { display: flex; }
  .navbar .nav-links a {
    padding: 12px 24px;
    border-radius: 0;
  }
  .navbar .nav-links a.active::after { display: none; }
  .navbar .nav-links a.active { background: #f0f0ff; }
}

/* ---------- CONTENT (navbar altı) ---------- */
.content {
  margin-top: 80px;
  padding: 20px 24px 60px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- PAGINATION ---------- */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 30px 0 40px;
  font-size: 0.9rem;
}
.pagination .label { color: #666; font-weight: 600; margin: 0 6px; }
.pagination a, .pagination .toplam {
  padding: 6px 12px;
  border-radius: 8px;
  background: #fff;
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transition: background 0.2s, color 0.2s;
}
.pagination a:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}
.pagination .toplam {
  background: #f0f0ff;
  color: #555;
  cursor: default;
}

/* ---------- FOOTER ---------- */
footer {
  background: #fff;
  color: #777;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  border-top: 1px solid #eaeaea;
  font-size: 0.85rem;
  line-height: 1.6;
}
footer a { color: #667eea; text-decoration: none; font-weight: 600; }
footer a:hover { text-decoration: underline; }
footer p { margin: 4px 0; }


/* ---------- RESET ---------- */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
  min-height: 100vh;
  color: #333;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 8px;
  font-weight: 700;
  color: #333;
}

p { margin: 0 0 8px; }

a {
  color: #667eea;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: #764ba2; }

img { max-width: 100%; height: auto; display: block; }

/* ---------- CONTAINER ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-sm {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-md {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- SAYFA BAŞLIĞI ---------- */
.sayfa-baslik {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #333;
  margin: 20px 0 24px;
}

.sayfa-altbaslik {
  text-align: center;
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* ---------- BUTONLAR (Genel) ---------- */
.buton,
.submit-btn,
.btn-kare,
.btn-kart,
.btn-gor,
.btn-sil {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  color: #fff;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  white-space: nowrap;
}

.buton:hover,
.submit-btn:hover,
.btn-kare:hover,
.btn-kart:hover,
.btn-gor:hover,
.btn-sil:hover {
  transform: translateY(-1px);
}

.buton:active,
.submit-btn:active,
.btn-kare:active,
.btn-kart:active {
  transform: translateY(0);
}

.buton:disabled,
.submit-btn:disabled {
  background: #ccc !important;
  cursor: not-allowed;
  box-shadow: none !important;
  transform: none !important;
}

/* Buton renkleri */
.submit-btn {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.submit-btn:hover {
  box-shadow: 0 6px 18px rgba(102,126,234,0.4);
}

.btn-kare {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}
.btn-kare:hover {
  box-shadow: 0 4px 12px rgba(79,172,254,0.4);
}

.btn-kart {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.btn-kart:hover {
  box-shadow: 0 4px 12px rgba(102,126,234,0.4);
}

.btn-gor {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  width: 100%;
}
.btn-gor:hover {
  box-shadow: 0 4px 12px rgba(79,172,254,0.4);
}

.btn-sil {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5253 100%);
  width: 100%;
}
.btn-sil:hover {
  box-shadow: 0 4px 12px rgba(238,82,83,0.4);
}

/* ---------- FORM ELEMANLARI ---------- */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  color: #333;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102,126,234,0.15);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

label {
  display: block;
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 6px;
  font-weight: 600;
}

.field {
  margin-bottom: 16px;
}

/* ---------- KART ---------- */
.card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(102,126,234,0.15);
}

.card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f0f0f0;
  position: relative;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.card:hover .card-img img {
  transform: scale(1.05);
}

.card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 8px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ---------- GRID ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.uye-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

@media (max-width: 992px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 480px) {
  .cards-grid { grid-template-columns: 1fr; gap: 12px; }
}

/* ---------- BADGE / ETİKET ---------- */
.yetki-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  background: #f0f0ff;
  color: #667eea;
  margin-left: 4px;
}
.yetki-1 { background: #e3f9e5; color: #2e7d32; }  /* Admin */
.yetki-2 { background: #eef1ff; color: #3f51b5; }  /* Üye */
.yetki-3 { background: #fff4e5; color: #e07b00; }  /* Onay bekleyen */

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  background: #eef1ff;
  color: #667eea;
}
.badge-ok  { background: #e3f9e5; color: #2e7d32; }
.badge-err { background: #fdecea; color: #c62828; }
.badge-warn { background: #fff4e5; color: #e07b00; }

/* ---------- UYARI KUTULARI ---------- */
.alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 12px 0;
}
.alert-info {
  background: #eef1ff;
  color: #3f51b5;
  border-left: 4px solid #3f51b5;
}
.alert-error {
  background: #fdecea;
  color: #c62828;
  border-left: 4px solid #c62828;
}
.alert-success {
  background: #e3f9e5;
  color: #2e7d32;
  border-left: 4px solid #2e7d32;
}
.alert-warn {
  background: #fff4e5;
  color: #e07b00;
  border-left: 4px solid #e07b00;
}

/* ---------- BOŞ MESAJ ---------- */
.bos-mesaj {
  text-align: center;
  padding: 40px 20px;
  background: #fff;
  border-radius: 12px;
  color: #888;
  max-width: 400px;
  margin: 40px auto;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

/* ---------- GERİ LİNK ---------- */
.geri-link {
  display: inline-block;
  margin-bottom: 16px;
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
.geri-link:hover { text-decoration: underline; }

/* ---------- YARDIMCI SINIFLAR ---------- */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

.hidden { display: none; }