* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --blue: #1e40af;
  --blue-light: #dbeafe;
  --green: #059669;
  --green-light: #d1fae5;
  --amber: #d97706;
  --amber-light: #fef3c7;
  --red: #dc2626;
  --red-light: #fee2e2;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 15px;
}

/* LAYOUT */
.layout {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
  width: 260px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 24px 0;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
}

.sidebar-logo {
  padding: 0 20px 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.sidebar-logo h1 {
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -0.3px;
}

.sidebar-logo p {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.sidebar-nav {
  list-style: none;
}

.sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13.5px;
  border-left: 3px solid transparent;
  transition: all 0.15s;
}

.sidebar-nav li a:hover,
.sidebar-nav li a.active {
  background: var(--blue-light);
  color: var(--blue);
  border-left-color: var(--blue);
}

.sidebar-nav li a .nav-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.sidebar-footer {
  padding: 16px 20px 0;
  border-top: 1px solid var(--border);
  margin-top: 16px;
}

.sidebar-footer p {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}

.sidebar-footer a {
  color: var(--blue);
  text-decoration: none;
}

/* MAIN */
.main {
  margin-left: 260px;
  flex: 1;
  min-height: 100vh;
}

/* HEADER */
.header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 20px 32px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: 900px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-wrap {
  flex: 1;
  position: relative;
}

.search-wrap input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  background: var(--bg);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s;
}

.search-wrap input:focus {
  border-color: var(--blue);
  background: white;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 16px;
  pointer-events: none;
}

.search-count {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* CONTENT */
.content {
  max-width: 900px;
  padding: 32px;
}

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--blue) 0%, #1e3a8a 100%);
  border-radius: var(--radius);
  padding: 28px 32px;
  color: white;
  margin-bottom: 32px;
}

.hero h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.hero p {
  font-size: 14px;
  opacity: 0.85;
  max-width: 560px;
}

.hero-meta {
  display: flex;
  gap: 20px;
  margin-top: 16px;
}

.hero-badge {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 12px;
}

/* SECTION */
.section {
  margin-bottom: 40px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.section-icon {
  font-size: 22px;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.section-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-left: auto;
}

/* CARD */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}

.card-header:hover {
  background: #f8fafc;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  flex: 1;
}

.durum-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.durum-aktif {
  background: var(--green-light);
  color: var(--green);
}

.durum-degisti {
  background: var(--amber-light);
  color: var(--amber);
}

.chevron {
  color: var(--text-muted);
  font-size: 18px;
  transition: transform 0.2s;
}

.card.open .chevron {
  transform: rotate(180deg);
}

.card-body {
  display: none;
  padding: 0 20px 20px;
  border-top: 1px solid var(--border);
}

.card.open .card-body {
  display: block;
}

.rg-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--text-secondary);
  margin: 14px 0 12px;
}

.ozet {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 14px;
}

.detaylar-baslik {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}

.detaylar-liste {
  list-style: none;
}

.detaylar-liste li {
  font-size: 13.5px;
  color: var(--text-secondary);
  padding: 5px 0;
  border-bottom: 1px solid var(--bg);
  display: flex;
  gap: 8px;
}

.detaylar-liste li::before {
  content: '→';
  color: var(--blue);
  flex-shrink: 0;
  font-size: 12px;
  margin-top: 1px;
}

.not-box {
  background: var(--amber-light);
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #92400e;
  margin-top: 14px;
  display: flex;
  gap: 8px;
}

.kaynak-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--blue);
  text-decoration: none;
  padding: 6px 12px;
  background: var(--blue-light);
  border-radius: 6px;
  transition: opacity 0.15s;
}

.kaynak-link:hover {
  opacity: 0.8;
}

/* NO RESULTS */
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  display: none;
}

.no-results-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

/* HIGHLIGHT */
mark {
  background: #fef08a;
  color: inherit;
  border-radius: 2px;
  padding: 0 2px;
}

/* MOBILE */
@media (max-width: 768px) {
  .sidebar {
    display: none;
  }
  .main {
    margin-left: 0;
  }
  .content {
    padding: 16px;
  }
  .header {
    padding: 12px 16px;
  }
  .hero {
    padding: 20px;
  }
}

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}
