/* ==========================================================================
   HİZMETSEKTOR.COM — TEMEL TASARIM SİSTEMİ
   Açık, ferah, kurumsal, sade. Koyu tema yok.
   ========================================================================== */

:root {
  /* Renkler */
  --color-primary: #0F6E5C;
  --color-primary-hover: #0B5548;
  --color-secondary: #1B2A4A;
  --color-accent: #F2A93B;
  --color-success: #1E9E5A;
  --color-warning: #E0A800;
  --color-error: #D64545;

  --bg-base: #FFFFFF;
  --bg-section: #F7F9F8;
  --bg-highlight: #EEF5F2;

  --text-heading: #111827;
  --text-body: #374151;
  --text-muted: #6B7280;

  --border-base: #E5E7EB;
  --border-hover: #CBD5D1;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --font-sans: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 16px;
}
h1 { font-size: clamp(2rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 16px; }
small, .text-muted { color: var(--text-muted); font-size: 0.875rem; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Header ---- */
.site-header {
  background: var(--bg-base);
  border-bottom: 1px solid var(--border-base);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1280px;
  margin: 0 auto;
  gap: 16px;
}
.site-header__logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-heading);
  flex-shrink: 0;
}
.site-header__logo span { color: var(--color-primary); }

.site-header__nav {
  display: flex;
  gap: 20px;
  align-items: center;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}
.site-header__nav a {
  color: var(--text-body);
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
}
.site-header__nav a:hover { color: var(--color-primary); text-decoration: none; }
.site-header__nav-account { display: none; } /* yalnızca mobil menüde görünür */

.site-header__actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }

/* Bildirim zili */
.site-header__bell {
  position: relative;
  font-size: 1.1rem;
  text-decoration: none;
  padding: 6px;
  border-radius: 8px;
  line-height: 1;
}
.site-header__bell:hover { background: var(--bg-section); text-decoration: none; }
.site-header__bell-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--color-error);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 999px;
  line-height: 1.3;
  min-width: 15px;
  text-align: center;
}

/* Kullanıcı avatar + dropdown */
.site-header__user { position: relative; }
.site-header__user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--border-base);
  border-radius: 999px;
  padding: 5px 12px 5px 5px;
  cursor: pointer;
  transition: border-color .15s ease;
}
.site-header__user-btn:hover { border-color: var(--border-hover); }
.site-header__avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.site-header__user-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-heading);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.site-header__caret { font-size: 0.65rem; color: var(--text-muted); }

.site-header__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid var(--border-base);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(17,24,39,.1);
  min-width: 200px;
  padding: 8px;
  z-index: 60;
}
.site-header__dropdown.is-open { display: block; }
.site-header__dropdown a,
.site-header__dropdown-logout {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-body);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
}
.site-header__dropdown a:hover,
.site-header__dropdown-logout:hover { background: var(--bg-section); text-decoration: none; }
.site-header__dropdown-logout { color: var(--color-error); font-weight: 600; }
.site-header__dropdown-divider { height: 1px; background: var(--border-base); margin: 6px 0; }

/* Hamburger (yalnızca mobilde görünür) */
.site-header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.site-header__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-heading);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.site-header__burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header__burger.is-open span:nth-child(2) { opacity: 0; }
.site-header__burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--color-primary);
  color: #FFFFFF;
}
.btn-primary:hover { background: var(--color-primary-hover); }
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover { background: var(--bg-highlight); }
.btn-block { display: block; width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 0.875rem; }

/* ---- Forms ---- */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-heading);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-base);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font-sans);
  color: var(--text-body);
  background: var(--bg-base);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(15, 110, 92, 0.15);
}
.form-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.field-error { font-size: 0.8rem; color: var(--color-error); margin-top: 4px; }

/* ---- Şifre göster/gizle ---- */
.pw-wrap { position: relative; }
.pw-wrap .form-control { padding-right: 70px; }
.pw-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
}
.pw-toggle:hover { text-decoration: underline; }

/* ---- Cards ---- */
.card {
  background: var(--bg-base);
  border: 1px solid var(--border-base);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.06);
}

.auth-shell {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-highlight);
  padding: 48px 24px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-base);
  border: 1px solid var(--border-base);
  border-radius: var(--radius-md);
  padding: 40px;
}
.auth-card h1 { font-size: 1.5rem; margin-bottom: 8px; }
.auth-card .subtitle { color: var(--text-muted); margin-bottom: 24px; }
.auth-switch { text-align: center; margin-top: 16px; font-size: 0.9rem; color: var(--text-muted); }

/* ---- Alerts ---- */
.alert {
  border-left: 4px solid;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}
.alert-success { border-color: var(--color-success); background: rgba(30, 158, 90, .08); color: #0d5c34; }
.alert-error { border-color: var(--color-error); background: rgba(214, 69, 69, .08); color: #8a2b2b; }
.alert-warning { border-color: var(--color-warning); background: rgba(224, 168, 0, .08); color: #7a5900; }

/* ---- Badges ---- */
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
.badge-verified { background: #E6F4EF; color: var(--color-primary); }
.badge-featured { background: #FDF1DC; color: #8A5A00; }

/* ---- Footer ---- */
.site-footer {
  background: var(--color-secondary);
  color: #D1D5DB;
  padding: 48px 0 24px;
  margin-top: 64px;
}
.site-footer a { color: #E5E7EB; }
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 32px;
  padding-top: 16px;
  font-size: 0.8rem;
  color: #9CA3AF;
  text-align: center;
}

/* ---- Hero ---- */
.hero {
  background: var(--bg-highlight);
  padding: 72px 24px;
  text-align: center;
}
.hero h1 { max-width: 720px; margin: 0 auto 16px; }
.hero p { max-width: 560px; margin: 0 auto 32px; color: var(--text-body); font-size: 1.05rem; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .site-header__burger { display: flex; }

  .site-header__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border-base);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    box-shadow: 0 8px 16px rgba(17,24,39,.06);
  }
  .site-header__nav.is-open { display: flex; }
  .site-header__nav a {
    padding: 12px 24px;
    border-bottom: 1px solid var(--bg-section);
  }
  .site-header__nav-account {
    display: flex;
    flex-direction: column;
    border-top: 6px solid var(--bg-section);
    margin-top: 4px;
    padding-top: 4px;
  }
  .site-header__nav-account a { padding: 12px 24px; border-bottom: 1px solid var(--bg-section); }
  .site-header__nav-logout {
    text-align: left;
    background: none;
    border: none;
    color: var(--color-error);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 12px 24px;
    width: 100%;
    cursor: pointer;
    font-family: var(--font-sans);
  }

  /* Mobilde kullanıcı adı gizlenir, sadece avatar görünür (yer tasarrufu) */
  .site-header__user-name { display: none; }
  .site-header__user-btn { padding: 5px; border: none; }
  .site-header__caret { display: none; }

  .auth-card { padding: 28px 20px; }
  .hero { padding: 48px 16px; }
}

/* ---- Admin paneli özel (kurumsal, daha yoğun bilgi mimarisi) ---- */
.admin-shell { display: flex; min-height: 100vh; background: var(--bg-section); }
.admin-sidebar {
  width: 240px;
  background: var(--color-secondary);
  color: #E5E7EB;
  padding: 24px 0;
  flex-shrink: 0;
}
.admin-sidebar__logo { padding: 0 24px 24px; font-weight: 700; font-size: 1.1rem; color: #fff; }
.admin-sidebar a {
  display: block;
  padding: 10px 24px;
  color: #CBD5D1;
  font-size: 0.9rem;
}
.admin-sidebar a:hover, .admin-sidebar a.active {
  background: rgba(255,255,255,.06);
  color: #fff;
  text-decoration: none;
}
.admin-main { flex: 1; padding: 32px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 32px; }
.stat-card { background: #fff; border: 1px solid var(--border-base); border-radius: var(--radius-md); padding: 20px; }
.stat-card .value { font-size: 1.75rem; font-weight: 700; color: var(--text-heading); }
.stat-card .label { color: var(--text-muted); font-size: 0.85rem; }

table.data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-md); overflow: hidden; }
table.data-table th, table.data-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-base);
  font-size: 0.9rem;
}
table.data-table th { background: var(--bg-section); color: var(--text-muted); font-weight: 600; }
