/* ===================== GENEL ===================== */
body {
  font-family: 'Segoe UI', sans-serif;
  background: #f7f8fa;
  color: #333;
  margin: 0;
  padding: 0;
  -webkit-text-size-adjust: 100%;
}

/* ===================== HEADER ===================== */
header {
  text-align: center;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: white;
  padding: 20px 10px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
header h1 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
}
header p {
  margin: 4px 0 0;
  font-size: 14px;
  opacity: 0.9;
}

/* ===================== HAMBURGER MENÜ ===================== */
.menu-container {
  position: absolute;
  top: 12px;
  right: 12px;
}
.menu-btn {
  background: transparent;
  border: none;
  font-size: 26px;
  color: white;
  cursor: pointer;
  padding: 4px 8px;
}
.menu-btn:hover {
  background: rgba(255,255,255,0.2);
  border-radius: 6px;
}
.menu-dropdown {
  display: none;
  position: absolute;
  top: 42px;
  right: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  min-width: 160px;
  z-index: 99;
}
.menu-dropdown.open {
  display: block;
}
.menu-dropdown a {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  color: #333;
}
.menu-dropdown a:hover {
  background: #f1f5ff;
  color: #4f46e5;
}

/* ===================== ANA İÇERİK ===================== */
main {
  max-width: 1000px;
  margin: 1.8rem auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  padding: 1.8rem;
}

main h2 {
  font-size: 20px;
  color: #4f46e5;
  border-bottom: 2px solid #e0e7ff;
  padding-bottom: 5px;
  margin-bottom: 1rem;
}
main p {
  font-size: 15px;
  color: #374151;
  margin: 0 0 1rem;
  line-height: 1.7;
}

/* ===================== GRID BLOKLAR ===================== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.info-card {
  background: #fafafa;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: transform 0.2s, background 0.25s;
}
.info-card:hover {
  background: #eef2ff;
  transform: translateY(-2px);
}
.info-card h3 {
  margin-top: 0;
  font-size: 16px;
  color: #4f46e5;
}
.info-card p {
  font-size: 14px;
  color: #4b5563;
}

/* ===================== ANAHTAR KELİMELER ===================== */
.keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1rem;
}
.keywords span {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 13px;
  color: #374151;
}
.keywords span:hover {
  background: #eef2ff;
  color: #4f46e5;
}

/* ===================== SSS ALANI ===================== */
.faq-container {
  margin-top: 1.8rem;
}
.faq-item {
  background: #fafafa;
  border-left: 4px solid #6366f1;
  padding: 12px 15px;
  border-radius: 8px;
  margin-bottom: 12px;
  transition: box-shadow 0.25s ease;
}
.faq-item:hover {
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.faq-item h3 {
  margin: 0 0 6px;
  font-size: 15px;
  color: #1f2937;
}
.faq-item p {
  margin: 0;
  font-size: 14px;
  color: #4b5563;
}

/* ===================== SOSYAL BAĞLANTILAR ===================== */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.2rem;
}
.social-links a {
  display: inline-block;
  padding: 8px 12px;
  background: #4f46e5;
  color: #fff;
  border-radius: 6px;
  font-size: 13px;
  text-decoration: none;
  transition: background 0.25s;
}
.social-links a:hover {
  background: #6366f1;
}

/* ===================== FOOTER ===================== */
footer {
  text-align: center;
  padding: 12px;
  font-size: 13px;
  background: #f1f1f1;
  color: #555;
  margin-top: 2rem;
}

/* ===================== KARANLIK MOD ===================== */
@media (prefers-color-scheme: dark) {
  body {
    background: #111827;
    color: #e5e7eb;
  }
  header {
    background: linear-gradient(135deg, #4338ca, #6366f1);
  }
  main {
    background: #1f2937;
    color: #e5e7eb;
  }
  .info-card,
  .faq-item,
  .keywords span {
    background: #2d3748;
    border-color: #374151;
  }
  .info-card:hover,
  .keywords span:hover {
    background: #374151;
  }
  footer {
    background: #1e293b;
    color: #9ca3af;
  }
  .menu-dropdown {
    background: #1f2937;
    border: 1px solid #374151;
  }
  .menu-dropdown a { color: #e5e7eb; }
  .menu-dropdown a:hover { background: #374151; }
}

/* ===================== MOBİL OPTİMİZASYON ===================== */
@media (max-width: 768px) {
  header h1 { font-size: 20px; }
  main { padding: 1.2rem; }
  .info-grid { grid-template-columns: 1fr; }
  .social-links { justify-content: center; }
}

@media (max-width: 480px) {
  header { padding: 14px 6px; }
  main { padding: 1rem; }
  footer { font-size: 12px; }
}
/* ===================== TEMA GEÇİŞ BUTONU ===================== */
.theme-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #4f46e5;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 22px;
  width: 46px;
  height: 46px;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  z-index: 1000;
}
.theme-btn:hover { background: #6366f1; transform: scale(1.05); }

/* ===================== KARANLIK MOD ===================== */
.dark-mode {
  background: #111827;
  color: #e5e7eb;
}
.dark-mode header {
  background: linear-gradient(135deg, #4338ca, #6366f1);
}
.dark-mode main {
  background: #1f2937;
  color: #e5e7eb;
}
.dark-mode .info-card,
.dark-mode .faq-item {
  background: #2d3748;
  border-color: #374151;
}
.dark-mode .info-card:hover { background: #374151; }
.dark-mode footer {
  background: #1e293b;
  color: #9ca3af;
}
.dark-mode a { color: #a5b4fc; }
/* ===================== TEMA GEÇİŞ BUTONU ===================== */
.theme-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #4f46e5;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 22px;
  width: 46px;
  height: 46px;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  z-index: 1000;
}
.theme-btn:hover { background: #6366f1; transform: scale(1.05); }

/* ===================== AÇIK MOD (Varsayılan) ===================== */
body {
  background: #f7f8fa;
  color: #333;
  transition: background 0.4s ease, color 0.4s ease;
}

header {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff;
  transition: background 0.4s ease;
}

main {
  background: #fff;
  transition: background 0.4s ease;
}

footer {
  background: #f1f1f1;
  color: #555;
  transition: background 0.4s ease;
}

/* ===================== KARANLIK MOD ===================== */
.dark-mode {
  background: #111827;
  color: #e5e7eb;
}

.dark-mode header {
  background: linear-gradient(135deg, #1e1b4b, #4338ca);
}

.dark-mode main {
  background: #1f2937;
  color: #e5e7eb;
}

.dark-mode .info-card,
.dark-mode .faq-item {
  background: #2d3748;
  border-color: #374151;
}
.dark-mode .info-card:hover {
  background: #374151;
}

.dark-mode footer {
  background: #1e293b;
  color: #9ca3af;
}

.dark-mode a {
  color: #a5b4fc;
}
/* 🎯 HAMBURGER MENÜ TASARIMI */
.menu-container {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 200;
}

/* ☰ Buton */
.menu-btn {
  background: transparent;
  border: none;
  font-size: 26px;
  color: white;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s ease-in-out;
}

.menu-btn:hover {
  background: rgba(255,255,255,0.2);
}

/* 🔽 Açılır Menü */
.menu-dropdown {
  display: none;
  position: absolute;
  top: 38px;
  right: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  min-width: 180px;
  z-index: 300;
  overflow: hidden;
  animation: fadeIn 0.2s ease-in-out;
}

.menu-dropdown a {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.menu-dropdown a:hover {
  background: #f7f7f7;
  color: #005bea;
}

/* Açıldığında görünür hale gelir */
.menu-dropdown.open {
  display: block;
}

/* 🔄 Menü Açılma Efekti */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 📱 Mobil Uyumluluk */
@media (max-width: 600px) {
  .menu-btn {
    font-size: 28px;
  }

  .menu-dropdown {
    right: 10px;
    min-width: 160px;
  }

  .menu-dropdown a {
    font-size: 15px;
  }
}

/* 🌙 Tema Geçişi Uyumlu */
body.dark-mode .menu-btn {
  color: #f0f0f0;
}

body.dark-mode .menu-dropdown {
  background: #222;
  color: #fff;
}

body.dark-mode .menu-dropdown a {
  color: #eee;
}

body.dark-mode .menu-dropdown a:hover {
  background: #333;
  color: #00c6fb;
}