* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f8fafc;
  color: #1e293b;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── Flash Mesaj ── */
.flash-mesaj {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 0;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  animation: flashGir .3s ease;
}
@keyframes flashGir {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.flash-hata {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}
.flash-basarili {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}
.flash-ikon { flex-shrink: 0; }

/* ── Skeleton Loading ── */
.skeleton {
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: skeletonPulse 1.5s ease-in-out infinite;
  border-radius: 6px;
}
@keyframes skeletonPulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-text { height: 16px; margin-bottom: 8px; width: 80%; }
.skeleton-text-short { height: 14px; margin-bottom: 6px; width: 50%; }
.skeleton-title { height: 24px; margin-bottom: 12px; width: 60%; }
.skeleton-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #e2e8f0;
}
.skeleton-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}
.skeleton-btn {
  height: 40px;
  width: 120px;
  border-radius: 8px;
}
.skeleton-img {
  width: 100%;
  height: 180px;
  border-radius: 8px;
}

/* HEADER */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: #fff;
  border-bottom: 1px solid #eef2f7;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #1e293b;
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: block;
  flex-shrink: 0;
  border-radius: 8px;
  filter: drop-shadow(0 2px 4px rgba(37,99,235,.25));
}

.logo-text {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #0ea5e9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo:hover {
  transform: translateY(-1px) scale(1.02);
  filter: saturate(1.1) brightness(1.02);
}

.logo:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 4px;
  border-radius: 6px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav a {
  font-size: 14px;
  color: #64748b;
  transition: color 0.2s;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.nav a:hover {
  color: #2563eb;
}

.nav a.aktif {
  color: #2563eb;
  font-weight: 600;
  border-bottom-color: #2563eb;
}

.header-sag {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-kullanici {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: #2563eb;
  color: #fff;
}

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-outline {
  background: transparent;
  border: 1px solid #e2e8f0;
  color: #1e293b;
}

.btn-outline:hover {
  border-color: #2563eb;
  color: #2563eb;
}

.btn-blok {
  width: 100%;
}

/* FOOTER (eski basit) */
.footer {
  text-align: center;
  padding: 32px 24px;
  color: #64748b;
  font-size: 14px;
  border-top: 1px solid #e2e8f0;
}

/* SITE FOOTER */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  margin-top: 3rem;
}
.site-footer-ic {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 1.5rem;
}
.site-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 768px) {
  .site-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}
@media (max-width: 480px) {
  .site-footer-grid {
    grid-template-columns: 1fr;
  }
}
.site-footer-logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  display: inline-block;
  margin-bottom: .5rem;
}
.site-footer-logo:hover {
  color: #60a5fa;
}
.site-footer-aciklama {
  font-size: .85rem;
  line-height: 1.6;
  color: #94a3b8;
}
.site-footer-baslik {
  font-size: .85rem;
  font-weight: 600;
  color: #e2e8f0;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin: 0 0 .75rem;
}
.site-footer-linkler {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer-linkler li {
  margin-bottom: .4rem;
}
.site-footer-linkler a {
  color: #94a3b8;
  text-decoration: none;
  font-size: .9rem;
  transition: color .15s;
}
.site-footer-linkler a:hover {
  color: #60a5fa;
}
.site-footer-alt {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid #1e293b;
  text-align: center;
  font-size: .8rem;
  color: #64748b;
}
.site-footer-alt p {
  margin: 0;
}

/* ROL DEĞİŞTİRME BUTONU */
.rol-switch-form {
  display: inline-flex;
  margin: 0;
}

.rol-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  border: 2px solid;
  border-radius: 20px;
  cursor: pointer;
  transition: all .25s ease;
  white-space: nowrap;
  line-height: 1;
}

.rol-switch-ikon {
  font-size: 15px;
}

.rol-switch-ok {
  font-size: 12px;
  opacity: .5;
  transition: opacity .2s;
}

.rol-switch-btn:hover .rol-switch-ok {
  opacity: 1;
}

/* Hizmet Alan (kullanici) */
.rol-hizmet-alan {
  background: #eff6ff;
  color: #2563eb;
  border-color: #bfdbfe;
}

.rol-hizmet-alan:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}

/* Hizmet Veren */
.rol-hizmet-veren {
  background: #f0fdf4;
  color: #16a34a;
  border-color: #bbf7d0;
}

.rol-hizmet-veren:hover {
  background: #dcfce7;
  border-color: #86efac;
}

/* ── Kullanıcı Menü Dropdown ── */
.kullanici-menu {
  position: relative;
}

.kullanici-menu summary {
  list-style: none;
  cursor: pointer;
}

.kullanici-menu summary::-webkit-details-marker {
  display: none;
}

.kullanici-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.kullanici-avatar-mini {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  transition: box-shadow 0.2s;
}

img.kullanici-avatar-foto {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e2e8f0;
  background: #f1f5f9;
  transition: box-shadow 0.2s;
}

.kullanici-menu[open] .kullanici-avatar-mini,
.kullanici-menu[open] .kullanici-avatar-foto {
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

/* Dışarı tıklayınca kapatma backdrop */
.kullanici-menu[open] > summary::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 149;
  cursor: default;
}

.kullanici-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  border: 1px solid #e2e8f0;
  z-index: 150;
  padding: 0.5rem 0;
  animation: dropdownAc 0.15s ease;
}

@keyframes dropdownAc {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-kullanici-bilgi {
  padding: 0.65rem 1rem;
  font-weight: 600;
  color: #1a1a2e;
  font-size: 0.85rem;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 0.25rem;
}

.kullanici-dropdown a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  color: #334155;
  text-decoration: none;
  font-size: 0.85rem;
  transition: background 0.15s, color 0.15s;
}

.kullanici-dropdown a:hover {
  background: #f0f4ff;
  color: #667eea;
}

.kullanici-dropdown a.aktif {
  color: #667eea;
  font-weight: 600;
  background: #f0f4ff;
}

.dropdown-ayirici {
  height: 1px;
  background: #f1f5f9;
  margin: 0.25rem 0;
}

.dropdown-cikis:hover {
  color: #ef4444 !important;
  background: #fef2f2 !important;
}

/* MOBİL - ORTAK */
@media (max-width: 640px) {
  .header {
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px;
    align-items: center;
  }

  .logo {
    flex: 0 1 auto;
    min-width: 0;
    gap: 6px;
  }

  .logo-mark {
    width: 20px;
    height: 20px;
  }

  .logo-text {
    font-size: 18px;
    white-space: nowrap;
  }

  .header-sag {
    margin-left: auto;
    gap: 6px;
  }

  .header-sag .btn {
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 8px;
    white-space: nowrap;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 16px;
  }

  .nav a {
    font-size: 13px;
  }

  .logo {
    gap: 8px;
  }

  .logo-mark {
    width: 24px;
    height: 24px;
  }

  .logo-text {
    font-size: 22px;
  }

  .rol-switch-text {
    display: none;
  }

  .rol-switch-btn {
    padding: 6px 10px;
    gap: 4px;
  }

  .rol-switch-ikon {
    font-size: 18px;
  }

  .kullanici-avatar-mini {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  .kullanici-dropdown {
    min-width: 180px;
  }

  .bildirim-zil-btn {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
}

/* ── Konum Butonu (Header) ── */
.header-konum-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  transition: all .2s;
  white-space: nowrap;
}
.header-konum-btn:hover {
  background: #e2e8f0;
  color: #1e293b;
}

/* ── Bildirim Zili (Header — tüm sayfalarda) ── */
.bildirim-zil-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.bildirim-zil-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.15rem;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
}

.bildirim-zil-btn:hover {
  background: #f1f5f9;
  transform: scale(1.1);
}

.bildirim-zil-btn.aktif {
  background: #eff6ff;
}

.bildirim-badge {
  position: absolute;
  top: 2px;
  right: 0;
  background: #ef4444;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid #fff;
}

/* ── Çerez Onay Banneri ── */
.cerez-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #1e293b;
  border-top: 2px solid #2563eb;
  box-shadow: 0 -4px 20px rgba(0,0,0,.25);
  animation: cerezSlideUp .4s ease;
}
@keyframes cerezSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.cerez-banner-ic {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.cerez-banner-metin {
  flex: 1;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.5;
  min-width: 240px;
}
.cerez-banner-metin a {
  color: #60a5fa;
  text-decoration: underline;
}
.cerez-banner-metin a:hover {
  color: #93bbfd;
}
.cerez-banner-btn-grup {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cerez-btn {
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background .2s, transform .1s;
}
.cerez-btn:active { transform: scale(.97); }
.cerez-btn-kabul {
  background: #2563eb;
  color: #fff;
}
.cerez-btn-kabul:hover { background: #1d4ed8; }
.cerez-btn-reddet {
  background: transparent;
  color: #94a3b8;
  border: 1px solid #475569;
}
.cerez-btn-reddet:hover {
  background: #334155;
  color: #e2e8f0;
}
@media (max-width: 640px) {
  .cerez-banner-ic {
    flex-direction: column;
    text-align: center;
    padding: 14px 16px;
    gap: 12px;
  }
  .cerez-banner-btn-grup {
    width: 100%;
    justify-content: center;
  }
}

/* ── Genel Form Doğrulama Stilleri ── */
.form-grup { margin-bottom: 16px; }
.form-grup label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  margin-bottom: 4px;
}
.form-grup input,
.form-grup select,
.form-grup textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.form-grup input:focus,
.form-grup select:focus,
.form-grup textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.form-grup.has-error input,
.form-grup.has-error select,
.form-grup.has-error textarea {
  border-color: #dc2626;
  background: #fef2f2;
}
.form-grup.has-error input:focus,
.form-grup.has-error select:focus,
.form-grup.has-error textarea:focus {
  box-shadow: 0 0 0 3px rgba(220,38,38,.1);
}
.form-alan-hata {
  display: block;
  font-size: 12px;
  color: #dc2626;
  margin-top: 4px;
}
.form-ipucu {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
}

/* ─── E-posta Doğrulama Banner ─── */
.eposta-dogrulama-banner {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-bottom: 1px solid #f59e0b;
  padding: 12px 16px;
  position: relative;
  z-index: 90;
}
.eposta-dogrulama-icerik {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.eposta-dogrulama-ikon {
  font-size: 20px;
  flex-shrink: 0;
}
.eposta-dogrulama-mesaj {
  flex: 1;
  font-size: 14px;
  color: #78350f;
  line-height: 1.4;
  min-width: 200px;
}
.eposta-dogrulama-form {
  flex-shrink: 0;
}
.eposta-dogrulama-btn {
  background: #f59e0b;
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
}
.eposta-dogrulama-btn:hover {
  background: #d97706;
}
.eposta-dogrulama-kapat {
  background: none;
  border: none;
  font-size: 22px;
  color: #92400e;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  flex-shrink: 0;
  opacity: .6;
  transition: opacity .2s;
}
.eposta-dogrulama-kapat:hover {
  opacity: 1;
}
@media (max-width: 600px) {
  .eposta-dogrulama-icerik {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .eposta-dogrulama-kapat {
    position: absolute;
    top: 8px;
    right: 12px;
  }
}
.eposta-dogrulama-btn:disabled {
  opacity: .7;
  cursor: not-allowed;
}
.edb-yukleniyor {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.edb-spinner {
  animation: edb-spin .8s linear infinite;
}
@keyframes edb-spin {
  to { transform: rotate(360deg); }
}
