/* ============================================================
   Sedef Adalılar Derneği — Tanıtım Sitesi
   Yönetici panelindeki renk paletiyle uyumlu, halka açık bir site.
   ============================================================ */

:root {
  --navy-deep: #0e2433;
  --navy: #163b52;
  --teal: #1f7a6c;
  --teal-soft: #e4f1ee;
  --sand: #f6f2e9;
  --sand-deep: #eee7d8;
  --white: #ffffff;
  --ink: #1c2a33;
  --muted: #62727c;
  --line: #e1dbca;
  --amber: #a4780f;
  --amber-soft: #fbf1dd;
  --font-display: Georgia, 'Iowan Old Style', 'Palatino Linotype', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  background: var(--sand);
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.6;
}
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ---------- header / nav ---------- */
#site-header {
  background: var(--navy-deep);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 14px 22px;
  flex-wrap: wrap;
}
.brand-block { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-logo-img { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; }
.brand-logo-fallback {
  width: 44px; height: 44px; border-radius: 9px;
  background: linear-gradient(155deg, var(--teal), #123a4f);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 16px;
  flex-shrink: 0;
}
.brand-title { font-family: var(--font-display); font-size: 16.5px; font-weight: 700; color: #fff; line-height: 1.2; }
.brand-sub { font-size: 11px; color: #93a9b3; }

nav.top-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-item { position: relative; }
/* Buton ile açılır menü arasında görünmez bir "köprü" oluşturur; bu köprü
   olmadan fare butonun altındaki boşluktan geçerken hover kayboluyor ve
   menü kapanıyordu. Bu şerit dropdown'ın margin-top'u kadar (6px, güvenlik
   payıyla 10px) alanı kapsar ve .nav-item:hover durumunu korur. */
.nav-item::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 100%;
  height: 10px;
}
.nav-item > a, .nav-item > button {
  background: none; border: none; color: #cfe0e6; font-size: 14px; font-weight: 600;
  padding: 10px 14px; border-radius: 7px; cursor: pointer; font-family: inherit;
  display: inline-flex; align-items: center; gap: 5px;
}
.nav-item > a:hover, .nav-item > button:hover, .nav-item.active > a, .nav-item.active > button { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }
.nav-caret { font-size: 10px; opacity: .8; }
.dropdown {
  display: none;
  position: absolute; top: 100%; left: 0;
  background: var(--white); color: var(--ink);
  border-radius: 10px; box-shadow: 0 14px 34px rgba(0,0,0,.22);
  min-width: 240px; padding: 8px; margin-top: 6px; z-index: 50;
}
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { display: block; }
.dropdown a { display: block; padding: 9px 12px; border-radius: 7px; font-size: 13.6px; font-weight: 500; color: var(--ink); }
.dropdown a:hover { background: var(--teal-soft); color: var(--navy-deep); text-decoration: none; }
.nav-login-btn > a { background: var(--teal); color: #fff !important; }
.nav-login-btn > a:hover { background: #185f54; }

#menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; }

/* ---------- layout ---------- */
.page-wrap { max-width: 1000px; margin: 0 auto; padding: 40px 22px 70px; }
.page-hero { text-align: center; margin-bottom: 34px; }
.page-hero h1 { font-family: var(--font-display); font-size: 33px; color: var(--navy-deep); margin: 0 0 8px; }
.page-hero p { color: var(--muted); font-size: 16px; max-width: 640px; margin: 0 auto; }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: 24px 26px; margin-bottom: 20px;
}
.card h2 { font-family: var(--font-display); color: var(--navy-deep); margin-top: 0; font-size: 21px; }

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 8px; }
.info-item .label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.info-item .value { font-size: 15.5px; color: var(--ink); margin-top: 4px; }

.prose { font-size: 15.5px; line-height: 1.75; color: var(--ink); }
.prose h3 { font-family: var(--font-display); color: var(--navy-deep); margin-top: 26px; font-size: 19px; }
.prose h4 { font-family: var(--font-display); color: var(--navy-deep); margin-top: 20px; font-size: 16.5px; }
.prose p { margin: 12px 0; }
.prose ul, .prose ol { padding-left: 22px; }

/* ---------- yönetim organları ---------- */
.org-section { margin-bottom: 30px; }
.org-section h2 { font-family: var(--font-display); color: var(--navy-deep); border-bottom: 2px solid var(--teal); padding-bottom: 8px; font-size: 19px; }
.org-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 22px; margin-top: 16px; }
.org-person { text-align: center; }
.org-photo {
  width: 118px; height: 118px; border-radius: 50%; margin: 0 auto 10px;
  background: var(--sand-deep); overflow: hidden; display: flex; align-items: center; justify-content: center;
  font-size: 40px; color: var(--muted); border: 3px solid var(--white); box-shadow: 0 2px 10px rgba(0,0,0,.1);
}
.org-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.org-person .name { font-weight: 700; font-size: 14px; color: var(--navy-deep); }
.org-person .unvan { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ---------- banka hesapları ---------- */
.bank-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.bank-row:last-child { border-bottom: none; }
.bank-row .iban { font-family: 'SFMono-Regular', Consolas, monospace; font-size: 14px; }

/* ---------- bültenler ---------- */
.bulten-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; margin-top: 14px; }
.bulten-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 12px; padding: 18px 10px; background: var(--sand);
  color: var(--ink); text-decoration: none; transition: box-shadow .15s, transform .15s;
}
.bulten-card:hover { box-shadow: 0 8px 20px rgba(0,0,0,.1); transform: translateY(-2px); text-decoration: none; background: var(--teal-soft); }
.bulten-icon { font-size: 30px; }
.bulten-baslik { font-size: 13.5px; font-weight: 700; color: var(--navy-deep); }

/* ---------- SSS accordion ---------- */
.faq-item { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.faq-item summary { padding: 14px 18px; cursor: pointer; font-weight: 700; color: var(--navy-deep); background: var(--white); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 20px; color: var(--teal); }
.faq-item[open] summary::after { content: '−'; }
.faq-item .faq-answer { padding: 0 18px 16px; color: var(--ink); font-size: 14.6px; }

/* ---------- iletişim ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 26px; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-item { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start; }
.contact-info-item .icon { font-size: 20px; }
.contact-form .form-field { margin-bottom: 14px; }
.contact-form label { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 5px; }
.contact-form input[type=text], .contact-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-family: inherit; font-size: 14.5px;
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form .consent { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--muted); }
.map-embed { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); margin-top: 16px; }
.map-embed iframe { width: 100%; height: 280px; border: 0; display: block; }

.btn {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px;
  padding: 11px 20px; border-radius: 8px; border: none; cursor: pointer;
  background: var(--teal); color: #fff;
}
.btn:hover { background: #185f54; }
.btn.secondary { background: var(--white); color: var(--navy-deep); border: 1px solid var(--line); }
.note { background: var(--amber-soft); color: #6b4f10; border-radius: 8px; padding: 12px 14px; font-size: 13.6px; margin-top: 12px; }
.empty { text-align: center; color: var(--muted); padding: 40px 20px; }

/* ---------- footer ---------- */
#site-footer { background: var(--navy-deep); color: #b9cad1; margin-top: 40px; }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 34px 22px 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 26px; }
.footer-inner h4 { color: #fff; font-family: var(--font-display); font-size: 15px; margin: 0 0 10px; }
.footer-inner a { color: #b9cad1; display: block; margin-bottom: 7px; font-size: 13.4px; }
.footer-inner a:hover { color: #fff; }
.footer-bottom { text-align: center; padding: 14px; font-size: 12px; color: #7f929c; border-top: 1px solid rgba(255,255,255,.08); }

@media (max-width: 880px) {
  nav.top-nav { display: none; position: fixed; top: 68px; left: 0; right: 0; background: var(--navy-deep); flex-direction: column; align-items: stretch; padding: 10px; box-shadow: 0 10px 20px rgba(0,0,0,.2); }
  nav.top-nav.open { display: flex; }
  .dropdown { position: static; box-shadow: none; background: rgba(255,255,255,.04); margin-top: 4px; }
  .dropdown a { color: #cfe0e6; }
  .dropdown a:hover { background: rgba(255,255,255,.08); color: #fff; }
  #menu-toggle { display: block; }
  .contact-grid { grid-template-columns: 1fr; }
}
