/* ==========================================================================
   [tattl] · Design System & Stylesheet
   Sfeer: Serieus, objectief, radicale openheid, activistisch, links.
   ========================================================================== */

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  /* Kleurenpalet: Journalisitiek zwart, signaalrood, warm papierwit */
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-surface-hover: #f1f5f9;
  
  --color-text-main: #0f172a;
  --color-text-muted: #475569;
  --color-text-subtle: #64748b;
  
  --color-border: #e2e8f0;
  --color-border-dark: #cbd5e1;
  
  --color-accent: #dc2626;          /* Activistisch / Signaalrood */
  --color-accent-dark: #b91c1c;
  --color-accent-light: #fee2e2;
  --color-accent-text: #991b1b;
  
  --color-dark-bg: #090d16;
  --color-dark-surface: #111827;
  --color-dark-border: #1f2937;
  --color-dark-text: #f9fafb;
  
  --color-badge-verified: #059669;
  --color-badge-verified-bg: #ecfdf5;
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  
  --max-w-site: 1200px;
  --max-w-content: 780px;
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-family: var(--font-sans);
  color: var(--color-text-main);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--color-accent);
  color: #fff;
  padding: 0.5rem 1rem;
  font-weight: 700;
  z-index: 9999;
  transition: top 0.2s ease;
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.skip-link:focus {
  top: 1rem;
}

/* ==========================================================================
   Header & Navigatie (conform proschiedam.nl specificatie)
   ========================================================================== */

html {
  scroll-padding-top: calc(var(--header-height, 80px) + 16px);
}

body > header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.public-header {
  background-color: var(--color-dark-bg);
  color: var(--color-dark-text);
  border-bottom: 2px solid var(--color-accent);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.public-header .header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  width: min(1180px, calc(100% - 64px));
  margin-inline: auto;
  padding: 11px 0;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: #ffffff;
  flex-shrink: 0;
}

.brand-avatar {
  border: none;
  outline: none;
  box-shadow: none;
  border-radius: var(--radius-full);
  object-fit: cover;
  transition: transform 0.2s ease;
}

.header-brand:hover .brand-avatar {
  transform: scale(1.05);
}

.brand-wordmark {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #ffffff;
  line-height: 1;
  text-transform: lowercase;
}

.header-menu-slot {
  display: grid;
  min-width: 0;
  min-height: 44px;
  align-items: center;
}
.header-menu-slot > * {
  grid-area: 1 / 1;
}

.public-header .header-nav {
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.header-kreet {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #ffffff;
  white-space: nowrap;
}

.public-header .header-tools {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: nowrap;
  margin: 0;
}
.header-logout {
  margin: 0;
}

.public-header .header-icon {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 8px;
  margin: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease;
}
.public-header .header-tools .header-icon img {
  display: block;
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}
.public-header .header-icon:hover,
.public-header .header-icon[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.12);
}
.public-header .header-icon:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.public-header.search-open .header-nav {
  visibility: hidden;
}

.public-header .header-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px 40px;
  align-items: center;
  min-width: 0;
  height: 44px;
  width: 100%;
  margin: 0;
  padding-left: 14px;
  border: 1px solid #475569;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.header-search input[type="search"] {
  grid-column: 1;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: #0f172a;
  font: inherit;
  font-size: 16px;
  outline: none;
}
.header-search input::-webkit-search-cancel-button {
  appearance: none;
}

.public-header .header-search-clear {
  grid-column: 2;
  width: 36px;
  min-width: 0;
}
.public-header .header-search-clear img {
  filter: none;
}

.public-header .header-search-submit {
  grid-column: 3;
}
.public-header .header-search-submit img {
  filter: none;
}
.public-header .header-search-submit:disabled {
  opacity: 0.4;
  cursor: default;
}

.public-header [hidden] {
  display: none !important;
}

@media (max-width: 1120px) {
  .public-header .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px 20px;
  }
  .header-brand {
    grid-area: 1 / 1;
  }
  .public-header .header-tools {
    grid-area: 1 / 2;
  }
  .header-menu-slot {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .public-header .header-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .public-header .header-inner {
    width: calc(100% - 36px);
    padding: 11px 0;
    gap: 12px;
  }
  .header-kreet {
    font-size: 0.95rem;
  }
}

@media (max-width: 380px) {
  .brand-wordmark {
    font-size: 1.5rem;
  }
  .header-kreet {
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   Home Intro Banner
   ========================================================================== */

.home-intro-banner {
  background: linear-gradient(180deg, #090d16 0%, #0f172a 100%);
  color: #ffffff;
  padding: 3.5rem 1.25rem 3rem;
  border-bottom: 1px solid var(--color-border);
}

.home-intro-inner {
  max-width: var(--max-w-site);
  margin: 0 auto;
}

.home-kicker {
  display: inline-block;
  background: rgba(220, 38, 38, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(220, 38, 38, 0.4);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.home-heading {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 900px;
  margin-bottom: 1rem;
}

.home-lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #94a3b8;
  max-width: 720px;
}

/* ==========================================================================
   Feed & Articles Grid
   ========================================================================== */

.content-container {
  max-width: var(--max-w-site);
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
  width: 100%;
}

.feed-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 2px solid var(--color-text-main);
  padding-bottom: 0.75rem;
  margin-bottom: 2rem;
}
.feed-section-head h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.feed-count {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

/* Lead article */
.lead-wrapper {
  margin-bottom: 3rem;
}

.article-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-border-dark);
}

.card-inner-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-media-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: #0f172a;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.article-card:hover .card-img {
  transform: scale(1.03);
}

.card-media-placeholder {
  background: linear-gradient(135deg, #090d16 0%, #1e293b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--color-text-subtle);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.meta-dot {
  color: var(--color-border-dark);
}
.verified-pill {
  color: var(--color-badge-verified);
  background: var(--color-badge-verified-bg);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.card-title {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: var(--color-text-main);
  transition: color 0.2s ease;
}
.article-card:hover .card-title {
  color: var(--color-accent);
}

.card-summary {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.card-read-more {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.card-read-more .arrow {
  transition: transform 0.2s ease;
}
.article-card:hover .card-read-more .arrow {
  transform: translateX(4px);
}

/* Lead card specifics (horizontal layout on desktop) */
@media (min-width: 860px) {
  .article-card-lead .card-inner-link {
    flex-direction: row;
  }
  .article-card-lead .card-media-wrap {
    width: 55%;
    aspect-ratio: auto;
    min-height: 380px;
  }
  .article-card-lead .card-content {
    width: 45%;
    padding: 2.5rem;
    justify-content: center;
  }
  .article-card-lead .card-title {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  .article-card-lead .card-summary {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }
}

/* Secondary grid */
.grid-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 680px) {
  .grid-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1040px) {
  .grid-wrapper {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   Article Detail Page
   ========================================================================== */

.article-detail-wrap {
  max-width: var(--max-w-content);
  margin: 0 auto;
  padding: 3rem 1.25rem 5rem;
}

.article-header {
  margin-bottom: 2rem;
}

.article-kicker-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-subtle);
  font-weight: 600;
  margin-bottom: 1rem;
}

.tag-pill {
  background: var(--color-accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
}

.article-hero-title {
  font-size: clamp(2.2rem, 5vw, 3.25rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--color-text-main);
  margin-bottom: 1.5rem;
}

.article-lead-text {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  font-weight: 500;
  border-left: 3px solid var(--color-accent);
  padding-left: 1.25rem;
  margin-bottom: 2rem;
}

.article-hero-media {
  margin: 2rem 0 3rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.article-hero-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.article-hero-caption {
  font-size: 0.85rem;
  color: var(--color-text-subtle);
  padding: 0.75rem 1rem;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  font-style: italic;
}

.article-body-content {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #1e293b;
}
.article-body-content p {
  margin-bottom: 1.5rem;
}
.article-body-content h2 {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 2.5rem 0 1rem;
  color: var(--color-text-main);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.5rem;
}
.article-body-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: var(--color-text-main);
}
.article-body-content ul, .article-body-content ol {
  margin: 1.25rem 0 1.5rem 1.5rem;
}
.article-body-content li {
  margin-bottom: 0.5rem;
}
.article-body-content blockquote {
  border-left: 4px solid var(--color-accent);
  background: #f1f5f9;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--color-text-main);
}
.article-body-content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

/* Document & Sources boxes */
.article-downloads, .article-relevant-links {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2.5rem 0;
}
.article-downloads h3, .article-relevant-links h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--color-text-main);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.article-downloads ul, .article-relevant-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.article-downloads li, .article-relevant-links li {
  margin-bottom: 0.65rem;
}
.article-downloads a, .article-relevant-links a {
  color: var(--color-text-main);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.article-downloads a:hover, .article-relevant-links a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

/* Share bar */
.article-share-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 2px solid var(--color-border);
  font-weight: 700;
  font-size: 0.95rem;
}
.share-btn {
  background: var(--color-surface);
  border: 1px solid var(--color-border-dark);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  color: var(--color-text-main);
  transition: var(--transition);
}
.share-btn:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* Static page */
.static-page {
  max-width: var(--max-w-content);
  margin: 0 auto;
  padding: 3rem 1.25rem 5rem;
}
.section-kicker {
  color: var(--color-accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 0.5rem;
}
.article-title {
  font-size: 2.75rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.lead-paragraph {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--color-dark-bg);
  color: #94a3b8;
  border-top: 2px solid var(--color-accent);
  padding: 1.5rem 0;
  margin-top: auto;
}

.site-footer .footer-inner {
  width: min(1180px, calc(100% - 64px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.95rem;
}

.footer-left a,
.footer-tip {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.footer-left a:hover,
.footer-tip:hover {
  color: var(--color-accent);
}

.footer-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  color: #94a3b8;
}

.footer-right a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-right a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-dot {
  color: #475569;
}

@media (max-width: 620px) {
  .site-footer .footer-inner {
    width: calc(100% - 36px);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

/* Auth box */
.auth-box {
  max-width: 420px;
  margin: 4rem auto;
  padding: 2.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.auth-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  text-align: center;
}
.auth-footer-link {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
}
.auth-footer-link a {
  color: var(--color-accent);
  font-weight: 600;
}

/* Button & Form utilities */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: var(--transition);
  font-family: inherit;
}
.btn.primary {
  background: var(--color-accent);
  color: #ffffff;
}
.btn.primary:hover {
  background: var(--color-accent-dark);
}
.btn.secondary {
  background: #f1f5f9;
  color: var(--color-text-main);
  border: 1px solid var(--color-border);
}
.btn.secondary:hover {
  background: #e2e8f0;
}
.btn.w-100 {
  width: 100%;
}
.btn.sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--color-text-main);
}
.form-input, .form-textarea, .form-select {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.65rem 0.85rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text-main);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.notice {
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}
.notice.error {
  background: var(--color-accent-light);
  color: var(--color-accent-text);
  border: 1px solid #f87171;
}

.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--color-text-muted);
  font-size: 1.1rem;
}
