/* public/styles/global.css */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent:    #1D9E75;
  --accent2:   #0F6E56;
  --bg:        #f8f7f4;
  --fg:        #1a1a18;
  --muted:     #888780;
  --card:      #fff;
  --border:    rgba(0,0,0,0.08);
  --tag-bg:    #E1F5EE;
  --tag-fg:    #0F6E56;
  --uc-bg:     #E6F1FB;
  --uc-fg:     #185FA5;
  --sens-bg:   #FAEEDA;
  --sens-fg:   #854F0B;
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-head: 'Syne', system-ui, sans-serif;
  --radius:    16px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.7;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ── NAV ── */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: var(--card);
  border-bottom: 0.5px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.logo-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* desktop links */
.nav-links {
  display: flex;
  gap: 1.5rem;
}
.nav-links a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
}
.nav-links a:hover { color: var(--fg); }

/* burger button — hidden on desktop */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* mobile dropdown — hidden by default */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--card);
  border-bottom: 0.5px solid var(--border);
  padding: 0.5rem 2rem 1rem;
  position: sticky;
  top: 57px;   /* height of .site-nav */
  z-index: 99;
}
.nav-mobile a {
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 0.5px solid var(--border);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--fg); }
.nav-mobile.open { display: flex; }

/* ── MOBILE ── */
@media (max-width: 600px) {
  .nav-links  { display: none; }
  .nav-burger { display: flex; }
  .site-nav   { padding: 1rem; }
  .card-grid-wrap {
    width: 100%;
  }
  .card-grid { grid-template-columns: 1fr; width: 100%;}
  .card { min-width: unset; max-width: unset; width: 100%; box-sizing: border-box; }
}

/* ── HERO ── */
.hero {
  padding: 4rem 2rem 2.5rem;
  max-width: 1230px;
  margin: 0 auto;
}
.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.hero p {
  color: var(--muted);
  font-weight: 300;
  max-width: 1230px;
}

/* ── SECTIONS ── */
.content-section {
  padding: 0 2rem 3.5rem;
  max-width: 1230px;
  margin: 0 auto;
}
.section-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 0.5px solid var(--border);
}
.section-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.section-badge {
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 500;
}
.badge-uc   { background: var(--uc-bg);   color: var(--uc-fg); }
.badge-sens { background: var(--sens-bg); color: var(--sens-fg); }
.section-count { font-size: 13px; color: var(--muted); margin-left: auto; }

/* ── CAROUSEL ── */
.carousel-wrap { position: relative; }
.carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
  cursor: grab;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel.dragging { cursor: grabbing; user-select: none; }
.nav-arrows { display: flex; gap: 6px; margin-top: 0.75rem; justify-content: flex-end; }
.arrow-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 0.5px solid var(--border);
  background: var(--card);
  cursor: pointer;
  font-size: 14px;
  color: var(--fg);
  display: flex; align-items: center; justify-content: center;
}
.arrow-btn:hover { background: var(--bg); }

/* ── CARD ── */
.card {
/*   min-width: 280px;
  max-width: 280px;*/
  background: var(--card);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  /*scroll-snap-align: start;*/
  overflow: hidden;
  transition: transform 0.2s;
  /*flex-shrink: 0;*/
  text-decoration: none;
  color: inherit;
  display: block;
}
.card:hover { transform: translateY(-3px); }
.card-img-wrap { overflow: hidden; height: 160px; width: 100%; }
.card-img-wrap img { width: 100%; height: 160px; object-fit: cover; }
.card-body { padding: 1rem; }
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.card-type {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 999px;
}
.card-meta time { font-size: 11px; color: var(--muted); }
.card h3 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}
.card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0.75rem;
  font-weight: 300;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-tags { display: flex; flex-wrap: wrap; gap: 4px; }

/* ── TAGS ── */
.tag {
  font-size: 11px;
  padding: 2px 8px;
  background: var(--tag-bg);
  color: var(--tag-fg);
  border-radius: 999px;
  font-weight: 500;
}

/* ── ARTICLE PAGE ── */
.article-wrap {
  max-width: 1230px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
}
.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  font-size: 13px;
  color: var(--muted);
}
.breadcrumb { text-decoration: none; color: var(--accent); }
.breadcrumb:hover { text-decoration: underline; }
.article-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}
.article-description {
  font-size: 1.05rem;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 1rem;
}
.article-subtitle {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 1rem;
}
.article-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1.5rem; }
.article-hero {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  aspect-ratio: 16/9;
  /*object-fit: cover;*/
}

/* Article body prose */
.article-body { font-size: 16px; }
.article-body h2 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.02em;
}
.article-body h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}
.article-body p { margin-bottom: 1rem; }
.article-body ul, .article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.article-body li { margin-bottom: 0.25rem; }
.article-body a { color: var(--accent); }
.article-body a:hover { text-decoration: underline; }
.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.5rem 1rem;
  margin: 1.5rem 0;
  color: var(--muted);
  font-style: italic;
}
.article-body img {
  border-radius: 10px;
  margin: 1.5rem 0;
  max-width: 100%;
  height:auto;
}

.img-button { max-width: 120px; }
.img-xsmall { max-width: 150px; }
.img-small  { max-width: 400px; }
.img-medium { max-width: 600px; }
.img-large  { max-width: 800px; }

.centered {
  display: block;
  margin: 0 auto;
}


.article-body iframe {
  border: 0;
  border-radius: 10px;
  width: 100%;
  margin: 1.5rem 0;
}

/* Inline code */
.article-body code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.85em;
  background: rgba(0,0,0,0.05);
  padding: 1px 5px;
  border-radius: 4px;
}

/* ── FOOTER ── */
.site-footer {
  padding: 1.5rem 2rem;
  border-top: 0.5px solid var(--border);
  /*display: flex;
  justify-content: space-between;*/
  align-items: center;
  font-size: 14px;
  color: var(--muted); 
  background: var(--card);
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .site-nav { padding: 1rem; }
  .content-section, .hero { padding-left: 1rem; padding-right: 1rem; }
  .article-wrap { padding: 1.5rem 1rem 3rem; }
}

/* ── N8N DEMO ── */
n8n-demo {
	--n8n-workflow-min-height: 500px;
}

/* ── Scroll Container ── */
.scroll-container {
    width: 400px;
    height: 600px;
    overflow-y: scroll; /* Enable vertical scrolling */
    overflow-x: hidden; /* Disable horizontal scrolling */
    margin: auto;
}

.scroll-container img {
    width: auto;
    height: auto; /* Image height larger than the container */
}
  img {
    margin: auto;
}

/* ── CARD GRID (variant of carousel scroll) ── */
.card-grid-wrap {
  position: relative;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  width: 100%;
}

.show-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
}

.show-more-btn {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 24px;
  border-radius: 999px;
  border: 0.5px solid var(--border);
  background: var(--card);
  color: var(--fg);
  cursor: pointer;
  transition: background 0.15s;
}

.show-more-btn:hover {
  background: var(--bg);
}

/* ── ABOUT Image ── */
.img-right {
  float: right;
  margin-left: 15px;
  margin-bottom: 30px;
  width: 250px;      /* adjust size */
  border-radius: 8px; /* optional nice touch */
}

.profile::after {
  content: "";
  display: block;
  clear: both; /* prevents layout breaking */
}

