/* ============================================
   SAMENSTEL AI GHOST THEME v2.0
   Exact match met samenstel.ai marketing
   ============================================ */

/* ============================================
   GHOST REQUIRED CLASSES (Koenig Editor)
   ============================================ */

/* Wide images in posts */
.kg-width-wide {
  max-width: 1040px;
  margin-left: calc(50% - 520px);
  margin-right: calc(50% - 520px);
}

/* Full-width images in posts */
.kg-width-full {
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Responsive adjustments */
@media (max-width: 1040px) {
  .kg-width-wide {
    margin-left: -24px;
    margin-right: -24px;
  }
}

/* Ghost card styles */
.kg-card {
  margin: 2rem 0;
}

.kg-image-card img,
.kg-gallery-image img {
  width: 100%;
  height: auto;
}

.kg-gallery-card {
  display: flex;
  flex-direction: column;
}

.kg-gallery-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kg-gallery-row {
  display: flex;
  gap: 8px;
  width: 100%;
}

.kg-bookmark-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.kg-bookmark-container {
  display: flex;
  text-decoration: none;
  color: inherit;
}

.kg-bookmark-content {
  padding: 20px;
  flex: 1;
}

.kg-bookmark-title {
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 8px;
}

.kg-bookmark-description {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.kg-bookmark-thumbnail {
  width: 200px;
  min-height: 160px;
}

.kg-bookmark-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* CSS Variables - Brand Colors */
:root {
  --color-primary: #fd981e;
  --color-primary-hover: #ff9f1c;
  --color-secondary: #fcd11a;
  --color-bg-dark: #000000;
  --color-bg-card: #111827;
  --color-bg-card-hover: #1a2332;
  --color-text: #ffffff;
  --color-text-muted: rgba(255, 255, 255, 0.6);
  --color-border: rgba(255, 255, 255, 0.2);
  --color-border-hover: rgba(255, 255, 255, 0.4);
  
  /* Gradient voor buttons - exact match samenstel.ai */
  --gradient-primary: linear-gradient(90deg, #e8490b 0%, #fd981e 50%, #fcd11a 100%);
  --gradient-hero: radial-gradient(ellipse at 50% 50%, #0a1628 0%, #030712 50%, #000000 100%);
  
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Poppins', sans-serif;
  
  --max-width: 1200px;
  --content-width: 720px;
  --radius-full: 9999px;
  --radius-lg: 24px;
  --radius-md: 16px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: radial-gradient(ellipse at 50% 0%, #0a1628 0%, #030712 40%, #000000 100%);
  background-attachment: fixed;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  position: relative;
}

/* Glowing orbs background effect - blue */
body::before {
  content: '';
  position: fixed;
  top: 10%;
  left: 5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, transparent 70%);
  filter: blur(100px);
  pointer-events: none;
  z-index: -1;
}

/* Glowing orbs background effect - orange */
body::after {
  content: '';
  position: fixed;
  bottom: 20%;
  right: 5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(253, 152, 30, 0.2) 0%, transparent 70%);
  filter: blur(100px);
  pointer-events: none;
  z-index: -1;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-secondary);
}

img {
  max-width: 100%;
  height: auto;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--color-bg-dark);
  border-bottom: 1px solid var(--color-border);
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* Logo - Left side */
.site-logo {
  flex-shrink: 0;
  margin-left: -8px;
}

.header-logo {
  height: 80px;
  width: auto;
  transition: transform 0.3s ease;
}

.header-logo:hover {
  transform: scale(1.05);
}

/* Navigation - Centered */
.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

.site-nav a {
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 500;
  transition: color 0.3s ease;
}

.site-nav a:hover {
  color: var(--color-primary);
}

.site-nav a.nav-active {
  color: var(--color-primary);
}

/* Header buttons - Right side */
.header-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Plan een demo button in nav */
.nav-demo-btn {
  background: transparent;
  border: 2px solid #ffffff;
  color: #ffffff !important;
  padding: 6px 16px;
  border-radius: 9999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.nav-demo-btn:hover {
  background: #ffffff;
  color: #000000 !important;
}

/* Header search */
.header-search {
  position: relative;
  display: flex;
  align-items: center;
}

.header-search-icon {
  position: absolute;
  left: 12px;
  color: var(--color-text-muted);
  pointer-events: none;
}

.header-search-input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 8px 16px 8px 36px;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.875rem;
  width: 160px;
  transition: all 0.3s ease;
}

.header-search-input::placeholder {
  color: var(--color-text-muted);
}

.header-search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.15);
  width: 200px;
}

/* Outline button style (like "Login") */
.nav-cta {
  background: transparent;
  color: var(--color-text) !important;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  border: 2px solid var(--color-text);
  transition: all 0.3s ease;
}

.nav-cta:hover {
  background: var(--color-text);
  color: var(--color-bg-dark) !important;
  transform: scale(1.05);
}

/* Gradient button style (like "Start gratis proefperiode") */
.btn-gradient {
  background: var(--gradient-primary);
  color: var(--color-bg-dark) !important;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(253, 152, 30, 0.3);
}

.btn-gradient:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 30px rgba(253, 152, 30, 0.4);
}

/* Outline button (secondary) */
.btn-outline {
  background: transparent;
  color: var(--color-text);
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  border: 2px solid var(--color-text);
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: var(--color-text);
  color: var(--color-bg-dark);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.site-main {
  padding-top: 64px;
  min-height: 100vh;
}

/* Blog Hero - Matching samenstel.ai exactly */
.blog-hero {
  text-align: center;
  padding: 80px 24px 48px;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

/* Glowing orbs background effect */
.blog-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.4) 0%, transparent 70%);
  filter: blur(80px);
  animation: float-orb 6s ease-in-out infinite;
}

.blog-hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(253, 152, 30, 0.35) 0%, transparent 70%);
  filter: blur(90px);
  animation: float-orb 8s ease-in-out infinite reverse;
}

@keyframes float-orb {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.blog-hero h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 3.5rem;
  margin: 0 0 16px 0;
  position: relative;
  z-index: 1;
}

.hero-description {
  color: var(--color-text-muted);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 32px;
  position: relative;
  z-index: 1;
}

/* Search bar */
.search-container {
  max-width: 500px;
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
}

.search-input {
  width: 100%;
  padding: 16px 24px 16px 52px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.search-input::placeholder {
  color: var(--color-text-muted);
}

.search-input:focus {
  border-color: var(--color-border-hover);
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
}

/* Filter tags */
.filter-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.filter-tag {
  padding: 10px 20px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-tag:hover {
  border-color: var(--color-border-hover);
  color: var(--color-text);
}

.filter-tag.active {
  background: var(--color-text);
  border-color: var(--color-text);
  color: var(--color-bg-dark);
}

.articles-count {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  position: relative;
  z-index: 1;
}

/* ============================================
   POST CARDS (Blog listing)
   ============================================ */
.post-feed {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

.post-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.post-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-border-hover);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.post-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.post-card-placeholder {
  width: 100%;
  height: 200px;
  background: var(--color-bg-card-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
}

.post-card-placeholder svg {
  opacity: 0.4;
}

.post-card-content {
  padding: 24px;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.post-card-tag {
  background: transparent;
  color: var(--color-primary);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.75rem;
  border: 1px solid var(--color-primary);
}

.post-card-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.post-card-title a {
  color: var(--color-text);
}

.post-card-title a:hover {
  color: var(--color-primary);
}

.post-card-excerpt {
  color: var(--color-text-muted);
  margin: 0 0 16px 0;
}

.post-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--color-primary);
  transition: gap 0.3s ease;
}

.post-card-link:hover {
  gap: 10px;
}

/* ============================================
   SINGLE POST
   ============================================ */
.post-full {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 48px 24px;
}

.post-header {
  text-align: center;
  margin-bottom: 48px;
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.post-tag {
  background: transparent;
  color: var(--color-primary);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.875rem;
  border: 1px solid var(--color-primary);
  transition: all 0.3s ease;
}

.post-tag:hover {
  background: var(--color-primary);
  color: var(--color-bg-dark);
}

.post-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.5rem;
  margin: 0 0 24px 0;
  line-height: 1.2;
}

.post-excerpt {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin: 0 0 24px 0;
}

.post-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.author-name {
  font-weight: 600;
}

.post-feature-image {
  margin: 0 0 48px 0;
}

.post-feature-image img {
  width: 100%;
  border-radius: 16px;
}

.post-feature-image figcaption {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  margin-top: 12px;
}

/* Post Content Styling */
.post-content {
  font-size: 1.125rem;
  line-height: 1.8;
}

.post-content h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.75rem;
  margin: 48px 0 24px 0;
  color: var(--color-primary);
}

.post-content h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.375rem;
  margin: 36px 0 16px 0;
}

.post-content p {
  margin: 0 0 24px 0;
}

.post-content ul, .post-content ol {
  margin: 0 0 24px 0;
  padding-left: 24px;
}

.post-content li {
  margin-bottom: 8px;
}

.post-content blockquote {
  border-left: 4px solid var(--color-primary);
  margin: 32px 0;
  padding: 16px 24px;
  background: var(--color-bg-card);
  border-radius: 0 8px 8px 0;
  font-style: italic;
}

.post-content pre {
  background: var(--color-bg-card);
  border-radius: 8px;
  padding: 24px;
  overflow-x: auto;
  margin: 24px 0;
}

.post-content code {
  font-family: 'Fira Code', monospace;
  font-size: 0.9em;
}

.post-content img {
  border-radius: 8px;
  margin: 24px 0;
}

/* Post Footer */
.post-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-link {
  background: var(--color-bg-card);
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.875rem;
  border: 1px solid var(--color-border);
}

.tag-link:hover {
  border-color: var(--color-primary);
}

/* Related Posts */
.related-posts {
  max-width: var(--max-width);
  margin: 64px auto;
  padding: 48px 24px;
  border-top: 1px solid var(--color-border);
}

.related-posts h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2rem;
  margin-bottom: 8px;
  text-align: center;
}

.related-subtitle {
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: 32px;
  font-size: 1rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.related-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.related-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-hover);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.related-card-link {
  display: block;
  text-decoration: none;
}

.related-card-image {
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.related-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-card:hover .related-card-image img {
  transform: scale(1.05);
}

.related-card-placeholder {
  background: var(--color-bg-card-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
}

.related-card-content {
  padding: 20px;
}

.related-card-tag {
  display: inline-block;
  background: var(--gradient-primary);
  color: #000;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.related-card-title {
  margin: 0 0 8px 0;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
}

.related-card-date {
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

/* Post navigation (search + back link) */
.post-navigation {
  max-width: var(--content-width);
  margin: 0 auto 64px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.post-search {
  max-width: 400px;
  width: 100%;
}

/* Back to posts link */
.back-to-posts {
  max-width: var(--content-width);
  margin: 0 auto 64px;
  padding: 0 24px;
  text-align: center;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  font-weight: 500;
  padding: 12px 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  transition: all 0.3s ease;
}

.back-link:hover {
  color: var(--color-text);
  border-color: var(--color-text);
  background: rgba(255, 255, 255, 0.05);
}

/* ============================================
   PAGE (Static pages)
   ============================================ */
.page-full {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 48px 24px;
}

.page-header {
  text-align: center;
  margin-bottom: 48px;
}

.page-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.5rem;
  margin: 0;
  line-height: 1.2;
}

.page-feature-image {
  margin: 0 0 48px 0;
}

.page-feature-image img {
  width: 100%;
  border-radius: 16px;
}

.page-content {
  font-size: 1.125rem;
  line-height: 1.8;
}

.page-content h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.75rem;
  margin: 48px 0 24px 0;
  color: var(--color-primary);
}

.page-content h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.375rem;
  margin: 36px 0 16px 0;
}

.page-content p {
  margin: 0 0 24px 0;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 48px 24px;
}

.pagination a {
  background: var(--color-bg-card);
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  border: 1px solid var(--color-border);
}

.pagination a:hover {
  border-color: var(--color-primary);
}

.pagination-info {
  color: var(--color-text-muted);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--color-bg-dark);
  border-top: 1px solid var(--color-border);
  padding: 64px 24px 32px;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

.footer-logo {
  height: 128px;
  width: auto;
  object-fit: contain;
}

.footer-tagline {
  color: var(--color-text-muted);
  margin-top: 16px;
}

.footer-links h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  margin: 0 0 16px 0;
}

.footer-links a {
  display: block;
  color: var(--color-text);
  margin-bottom: 8px;
}

.footer-links a:hover {
  color: var(--color-secondary);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: var(--color-text-muted);
}

.footer-legal a:hover {
  color: var(--color-secondary);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .header-container {
    padding: 0 16px;
  }
  
  .site-nav {
    display: none; /* Mobile menu kan later toegevoegd worden */
  }
  
  .blog-hero h1 {
    font-size: 2rem;
  }
  
  .post-feed {
    grid-template-columns: 1fr;
    padding: 24px 16px;
  }
  
  .post-title {
    font-size: 1.75rem;
  }
  
  .page-title {
    font-size: 1.75rem;
  }
  
  .related-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
