/* =========================================================
   BC Daily — Pardaan.Com brand
   Palette pulled directly from the logo:
     teal/cyan primary, deeper blue accent, dark navy ink.
   ========================================================= */

:root {
  /* Brand */
  --cyan:        #00a0c0;
  --cyan-light:  #20c0e0;
  --cyan-soft:   #50e0d0;   /* mint highlight from the droplet */
  --blue:        #1050a0;
  --blue-deep:   #0e3b78;
  --ink:         #102030;   /* near-black navy from the logo */
  --ink-2:       #1c2a40;

  /* Surface */
  --paper:       #ffffff;
  --paper-2:     #f3f7fa;
  --paper-3:     #e6eef4;
  --line:        #dde6ee;
  --muted:       #5b6a7d;

  /* Code */
  --code-bg:     #0e1d31;
  --code-fg:     #e6eef4;

  /* Gradients */
  --grad-brand:  linear-gradient(135deg, var(--cyan-soft) 0%, var(--cyan) 38%, var(--blue) 100%);
  --grad-brand-line: linear-gradient(90deg, var(--cyan-soft), var(--cyan), var(--blue));

  --shadow-sm:   0 1px 2px rgba(16, 32, 48, 0.06);
  --shadow-md:   0 10px 28px rgba(16, 32, 48, 0.10);
  --radius:      14px;
  --container:   1120px;
  --reading:     900px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cyan); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--blue); }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.site-header::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 3px;
  background: var(--grad-brand-line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 24px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand-logo {
  height: 110px;
  width: auto;
  display: block;
}
.brand-tag {
  font-size: 14px;
  color: var(--muted);
  font-style: italic;
  border-left: 2px solid var(--cyan);
  padding-left: 14px;
  line-height: 1.35;
  max-width: 200px;
}
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a {
  color: var(--ink-2);
  font-weight: 500;
  font-size: 15px;
  position: relative;
}
.nav-links a:hover { color: var(--cyan); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--grad-brand-line);
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse at 85% -10%, rgba(32, 192, 224, 0.18), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(80, 224, 208, 0.12), transparent 55%),
    linear-gradient(180deg, #0c1c33 0%, #0e2440 100%);
  color: #fff;
  padding: 72px 0 88px;
  position: relative;
  overflow: hidden;
}
.hero h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  max-width: 820px;
}
.hero h1 em {
  font-style: normal;
  background: var(--grad-brand-line);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lede {
  font-size: 18px;
  color: rgba(255,255,255,0.78);
  max-width: 640px;
  margin: 0 0 28px;
}
.hero-latest { display: inline-block; margin-top: 8px; }
.hero-latest-link {
  display: inline-flex; flex-direction: column; gap: 4px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(80, 224, 208, 0.25);
  padding: 14px 20px; border-radius: 10px;
  color: #fff;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.hero-latest-link:hover {
  border-color: var(--cyan-light);
  transform: translateY(-1px);
  color: #fff;
}
.hero-latest-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan-light);
  font-weight: 600;
}
.hero-latest-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
}

/* ---------- Toolbar ---------- */
.toolbar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: -36px;
  position: sticky;
  top: 12px;
  z-index: 20;
}
.search-box {
  flex: 1 1 280px;
  display: flex; align-items: center; gap: 10px;
  background: var(--paper-2);
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.search-box:focus-within {
  background: #fff;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 160, 192, 0.12);
}
.search-box input {
  flex: 1;
  border: 0;
  background: transparent;
  font: inherit;
  outline: none;
  color: var(--ink);
}
.search-box svg { flex: 0 0 18px; color: var(--muted); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.15s ease;
}
.chip:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: #fff;
}
.chip.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* ---------- Section / grid ---------- */
.section { padding: 56px 0; }
.section-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.section-title .count {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--cyan-light);
}
.card-cover {
  height: 6px;
  background: var(--grad-brand-line);
}
.card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.card-meta {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.card-cat {
  background: var(--paper-2);
  color: var(--blue);
  padding: 3px 9px;
  border-radius: 4px;
  letter-spacing: 0.06em;
}
.card h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--cyan); }
.card-excerpt { color: #34465c; margin: 0 0 16px; flex: 1; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 12px;
  color: var(--muted);
  background: var(--paper-2);
  padding: 3px 9px;
  border-radius: 4px;
}

.empty-state {
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
}

/* ---------- Index page ---------- */
.page-index .container {
  width: calc(100vw - 80px);
  max-width: 1800px;
  padding-left: 40px;
  padding-right: 40px;
}

/* Three-column layout: left sidebar | posts | right sidebar */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 112px;
  align-items: start;
}
.page-sidebar-left,
.page-sidebar-right {
  position: sticky;
  top: 24px;
  margin-top: 2cm;
}
.sidebar-search {
  width: 100%;
  margin-bottom: 20px;
}

.sidebar-linkedin {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  transition: opacity 0.15s ease;
  color: inherit;
}
.sidebar-linkedin:hover { opacity: 0.75; }
.sidebar-linkedin-icon { flex-shrink: 0; }
.sidebar-linkedin-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-linkedin-name {
  font-size: 17px;
  font-weight: 600;
  color: #0a66c2;
}
.sidebar-linkedin-sub {
  font-size: 17px;
  color: var(--muted);
}

.sidebar-sponsor {
  display: block;
  text-align: left;
  margin-bottom: 16px;
}
.sidebar-sponsor-logo {
  max-width: 160px;
  height: auto;
  display: inline-block;
  transition: opacity 0.2s ease;
}
.sidebar-sponsor:hover .sidebar-sponsor-logo {
  opacity: 0.75;
}
.sidebar-sponsor-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin: 10px 0 8px;
}
.sidebar-sponsor-list-head {
  margin-bottom: 4px;
  font-weight: 600;
  color: var(--ink-2);
}
.sidebar-sponsor-list {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 16px;
  padding-left: 18px;
}
.sidebar-sponsor-list li {
  margin: 4px 0;
}

.sidebar-widget {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.sidebar-widget-head {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--muted);
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  margin: 0;
}
.video-wrap {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
}
.video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ---------- Post page ---------- */
.page-post .site-header .container {
  width: calc(100vw - 80px);
  max-width: 1800px;
  padding-left: 40px;
  padding-right: 40px;
}

.post {
  width: calc(100vw - 80px);
  max-width: 1800px;
  margin: 0 auto;
  padding: 56px 40px 72px;
}
.post-header { margin-bottom: 32px; }
.post-header .post-cat {
  display: inline-block;
  background: var(--grad-brand);
  color: #fff;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 5px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
  font-weight: 600;
}
.post-header h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: clamp(30px, 4.5vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.post-header .post-meta {
  color: var(--muted);
  font-size: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.post-content h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.01em;
  margin: 36px 0 14px;
  color: var(--ink);
}
.post-content h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 22px;
  margin: 28px 0 12px;
}
.post-content p { margin: 0 0 18px; }
.post-content blockquote {
  border-left: 4px solid var(--cyan);
  background: var(--paper-2);
  margin: 24px 0;
  padding: 14px 20px;
  font-style: italic;
  color: var(--ink-2);
  border-radius: 0 8px 8px 0;
}
.post-content ul, .post-content ol { padding-left: 22px; margin: 0 0 18px; }
.post-content li { margin: 6px 0; }
.post-content :not(pre) > code {
  background: var(--paper-3);
  color: var(--blue-deep);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.92em;
  font-family: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
}
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 24px auto;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  display: block;
}
.post-content figure {
  margin: 24px 0;
}
.post-content figure img { margin: 0 auto; }
.post-content figcaption {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin-top: 10px;
  font-style: italic;
}

/* Code blocks */
pre.code-block {
  background: var(--code-bg);
  color: var(--code-fg);
  padding: 18px 20px;
  border-radius: 10px;
  overflow-x: auto;
  font-family: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.55;
  margin: 22px 0;
  border: 1px solid #1d2e48;
  position: relative;
}
pre.code-block .code-lang {
  position: absolute;
  top: 8px; right: 12px;
  font-size: 11px;
  color: var(--cyan-light);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}
pre.code-block code { font-family: inherit; }

/* AL highlight tokens (tuned for the logo palette) */
.tok-keyword  { color: #5ce0d8; font-weight: 600; }
.tok-type     { color: #9ad9ff; }
.tok-string   { color: #c5e1a5; }
.tok-comment  { color: #7a8aa0; font-style: italic; }
.tok-number   { color: #ffd479; }
.tok-trigger  { color: #c4a8ff; font-weight: 600; }
.tok-procedure{ color: #ffd479; }
.tok-prop     { color: #b1ecff; }

/* Post footer */
.post-footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.post-footer .tag-list { display: flex; gap: 6px; flex-wrap: wrap; }
.post-source {
  width: 100%;
  font-size: 14px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 8px;
}
.post-source a {
  color: var(--cyan);
  overflow-wrap: break-word;
  word-break: break-all;
}
.back-link { color: var(--muted); font-size: 14px; }
.back-link:hover { color: var(--cyan); }

/* ---------- Share buttons ---------- */
.share-buttons {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.share-buttons-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s;
}
.share-btn:hover { opacity: 0.85; text-decoration: none; }
.share-btn-linkedin { background: #0a66c2; color: #fff; }
.share-btn-facebook { background: #1877f2; color: #fff; }
.share-btn-x        { background: #000;    color: #fff; }

/* ---------- About ---------- */
.about-wrap {
  max-width: var(--reading);
  margin: 0 auto;
  padding: 56px 24px 72px;
}
.about-wrap h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 40px;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.about-profile {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  margin-bottom: 8px;
}
.about-photo {
  flex-shrink: 0;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}
.about-bio p {
  margin-top: 0;
}
.about-wrap h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 24px;
  margin: 32px 0 12px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 36px 0;
  margin-top: 56px;
  font-size: 14px;
  border-top: 3px solid transparent;
  background-clip: padding-box;
  position: relative;
}
.site-footer::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: var(--grad-brand-line);
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.site-footer a { color: var(--cyan-light); }
.site-footer a:hover { color: #fff; }
.site-footer .footer-brand {
  display: flex; align-items: center; gap: 12px;
  color: rgba(255,255,255,0.85);
}
.site-footer .footer-brand img { height: 28px; width: auto; opacity: 0.95; }

/* ---------- RSS feed footer ---------- */
.rss-footer {
  background: var(--ink-2);
  padding: 44px 0 32px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.rss-footer + .site-footer { margin-top: 0; }
.rss-footer .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  align-items: start;
}
.rss-col-head {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--cyan-light);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.rss-item {
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.rss-item:last-child { border-bottom: none; }
.rss-item a {
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  line-height: 1.45;
  display: block;
  margin-bottom: 3px;
  transition: color 0.15s;
}
.rss-item a:hover { color: #fff; text-decoration: underline; }
.rss-item-date {
  font-size: 11px;
  color: rgba(255,255,255,0.32);
}
.rss-loading { font-size: 13px; color: rgba(255,255,255,0.3); padding: 8px 0; }
.rss-error   { font-size: 12px; color: rgba(255,120,120,0.55); padding: 8px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .page-layout { grid-template-columns: 1fr; }
  .page-sidebar-right { position: static; margin-top: 0; }
}

@media (max-width: 720px) {
  .site-header .container { flex-direction: column; align-items: flex-start; gap: 14px; }
  .brand-tag { display: none; }
  .nav-links { gap: 18px; }
  .hero { padding: 56px 0 72px; }
  .toolbar { margin-top: -24px; }
  .brand-logo { height: 72px; }
  .rss-footer .container { grid-template-columns: 1fr; gap: 28px; }
}
