/* ===== LEVEN IN TURKIJE - MAIN CSS ===== */
:root {
  --primary: #1a2b3c;
  --accent: #E30613;
  --accent-hover: #c8881a;
  --bg: #f8f9fa;
  --white: #ffffff;
  --text: #2d3748;
  --text-light: #718096;
  --border: #e2e8f0;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --radius: 8px;
}

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

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

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; }

/* ===== HEADER ===== */
header {
  background: #ffffff;
  color: #1a2b3c;
  border-bottom: 3px solid #E30613;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-brand { display: flex; flex-direction: column; }
.site-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.3px;
}
.site-name span { color: var(--accent); }
.site-tagline {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.65);
  margin-top: 1px;
}

nav { display: flex; align-items: center; gap: 4px; }
nav a {
  color: rgba(255,255,255,0.85);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s;
}
nav a:hover, nav a.active {
  background: rgba(255,255,255,0.12);
  color: var(--white);
}
nav a.nav-redactie {
  background: var(--accent);
  color: var(--primary);
  font-weight: 700;
}
nav a.nav-redactie:hover { background: var(--accent-hover); }

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  margin: 4px 0;
  transition: 0.3s;
}

/* ===== MAIN ===== */
main { max-width: 1200px; margin: 0 auto; padding: 32px 20px; min-height: 60vh; }

/* ===== FEATURED BANNER ===== */
.featured-banner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 40px;
  min-height: 400px;
  background: var(--primary);
  display: flex;
  align-items: flex-end;
  cursor: pointer;
}
.featured-banner:hover .featured-img { transform: scale(1.03); }
.featured-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,43,60,0.95) 0%, rgba(26,43,60,0.3) 60%, transparent 100%);
}
.featured-content {
  position: relative;
  z-index: 2;
  padding: 32px;
  color: var(--white);
  max-width: 720px;
}
.featured-content .cat-chip { margin-bottom: 10px; }
.featured-content h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}
.featured-content .summary {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  margin-bottom: 16px;
}
.featured-meta { color: rgba(255,255,255,0.6); font-size: 0.85rem; }

/* ===== SECTION HEADER ===== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  border-left: 4px solid var(--accent);
  padding-left: 10px;
}
.view-all {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}
.view-all:hover { text-decoration: underline; }

/* ===== ARTICLES GRID ===== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.article-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.card-img {
  height: 180px;
  background: var(--border);
  overflow: hidden;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.article-card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 8px 0 6px;
  line-height: 1.35;
  color: var(--primary);
}
.card-body h3:hover { color: var(--accent); }
.card-summary {
  font-size: 0.85rem;
  color: var(--text-light);
  flex: 1;
  margin-bottom: 12px;
}
.card-meta {
  font-size: 0.78rem;
  color: var(--text-light);
  display: flex;
  gap: 8px;
  align-items: center;
}
.card-meta strong { color: var(--text); }

/* ===== CATEGORY CHIPS ===== */
.cat-chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cat-leven       { background: #e8f5e9; color: #2e7d32; }
.cat-nieuws      { background: #e3f2fd; color: #1565c0; }
.cat-rechten     { background: #f3e5f5; color: #6a1b9a; }
.cat-reizen      { background: #fff8e1; color: #e65100; }
.cat-gemeenschap { background: #fce4ec; color: #ad1457; }
.cat-default     { background: #f0f0f0; color: #555; }

/* ===== CATEGORIES ROW ===== */
.categories-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.cat-btn {
  padding: 8px 20px;
  border-radius: 24px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid var(--border);
  background: var(--white);
  transition: all 0.2s;
}
.cat-btn:hover, .cat-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ===== ARTICLE PAGE ===== */
.article-page { max-width: 800px; margin: 0 auto; }
.article-cover {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 28px;
}
.article-header { margin-bottom: 24px; }
.article-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  margin: 12px 0 10px;
}
.article-summary-lede {
  font-size: 1.1rem;
  color: var(--text-light);
  border-left: 3px solid var(--accent);
  padding-left: 14px;
  margin-bottom: 20px;
}
.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-light);
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.article-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}
.article-content p { margin-bottom: 1.2em; }
.article-content h2 { font-size: 1.4rem; color: var(--primary); margin: 1.8em 0 0.6em; }
.article-content h3 { font-size: 1.15rem; color: var(--primary); margin: 1.4em 0 0.4em; }

.author-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 36px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  flex-shrink: 0;
}
.author-info h4 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.author-info p { font-size: 0.85rem; color: var(--text-light); }

/* ===== TWO COLUMN LAYOUT ===== */
.two-col { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start; }
.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.sidebar-widget h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 8px;
  margin-bottom: 14px;
}
.related-item {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.related-item:last-child { border-bottom: none; }
.related-item img { width: 60px; height: 46px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.related-item .ri-title { font-size: 0.85rem; font-weight: 600; line-height: 1.3; color: var(--text); }
.related-item .ri-title:hover { color: var(--accent); }
.related-item .ri-meta { font-size: 0.75rem; color: var(--text-light); margin-top: 3px; }

/* ===== SEARCH ===== */
.search-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
}
.search-box h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 16px; color: var(--primary); }
.search-form { display: flex; gap: 10px; }
.search-input {
  flex: 1;
  padding: 10px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}
.search-input:focus { border-color: var(--accent); }
.btn {
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.btn-primary { background: var(--accent); color: var(--primary); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--border); color: var(--text); }
.btn-secondary:hover { background: #ccd2d8; }
.btn-danger { background: #fee2e2; color: #dc2626; }
.btn-danger:hover { background: #fecaca; }
.btn-sm { padding: 5px 12px; font-size: 0.8rem; }

/* ===== FORMS ===== */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  max-width: 480px;
  margin: 0 auto;
}
.form-card h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 24px;
  text-align: center;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 9px 13px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}
.form-control:focus { border-color: var(--accent); }
textarea.form-control { resize: vertical; min-height: 300px; }
select.form-control { cursor: pointer; }

.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 0.9rem;
}
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }

/* ===== DASHBOARD ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  text-align: center;
}
.stat-card .stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}
.stat-card .stat-label {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 4px;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.dashboard-header h2 { font-size: 1.3rem; font-weight: 700; color: var(--primary); }

.data-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.data-table th {
  background: var(--primary);
  color: var(--white);
  padding: 12px 14px;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 600;
}
.data-table td { padding: 11px 14px; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #f8f9fa; }

.status-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
}
.status-published { background: #d1fae5; color: #065f46; }
.status-draft { background: #fef3c7; color: #92400e; }

/* ===== FOOTER ===== */
footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  padding: 40px 20px 20px;
  margin-top: 60px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}
.footer-brand .site-name { font-size: 1.1rem; margin-bottom: 6px; }
.footer-brand p { font-size: 0.85rem; line-height: 1.6; }
.footer-col h4 { color: var(--white); font-size: 0.9rem; font-weight: 700; margin-bottom: 12px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 6px; }
.footer-col ul li a { font-size: 0.85rem; color: rgba(255,255,255,0.65); }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
}

/* ===== AUTEUR PAGE ===== */
.auteur-hero {
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 32px;
}
.auteur-avatar-lg {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  flex-shrink: 0;
}
.auteur-info h1 { font-size: 1.6rem; font-weight: 800; }
.auteur-info .role-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 12px;
  margin-top: 4px;
}
.auteur-info .joined { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-top: 6px; }

/* ===== LOADING / EMPTY ===== */
.loading { text-align: center; padding: 48px; color: var(--text-light); font-size: 0.95rem; }
.empty-state {
  text-align: center;
  padding: 64px 20px;
  color: var(--text-light);
}
.empty-state h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--text); }

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 32px;
}
.pagination a {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 0.88rem;
  background: var(--white);
  color: var(--text);
}
.pagination a:hover, .pagination a.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .header-inner { height: auto; padding: 12px 16px; flex-wrap: wrap; }
  nav { display: none; flex-direction: column; width: 100%; padding: 8px 0; }
  nav.open { display: flex; }
  .hamburger { display: block; }
  .articles-grid { grid-template-columns: 1fr; }
  .featured-content h1 { font-size: 1.4rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .search-form { flex-direction: column; }
  .article-title { font-size: 1.5rem; }
}

/* Beyaz header nav fix */
header nav a {
  color: #1a2b3c !important;
  font-weight: 600;
}
header nav a:hover {
  color: #E30613 !important;
}
header .site-brand {
  color: #1a2b3c !important;
}
header .hamburger span {
  background: #1a2b3c !important;
}
