/* ============================================================
   LucyDogs Ghost Theme — screen.css
   Design system matches lucydogs.pro exactly
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
  --y: #ffc929;
  --b: #1a1a1a;
  --w: #fff;
  --s: #fdf9f0;
  --m: rgba(26,26,26,.42);
  --l: rgba(26,26,26,.08);
}

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

html { font-size: 16px; }

body {
  font-family: "DM Sans", sans-serif;
  background: var(--s);
  color: var(--b);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ============================================================
   NAV — sticky, identical to main site
   ============================================================ */

.ld-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--s);
  display: flex;
  justify-content: center;
  border-bottom: 1px solid var(--l);
}

.ld-nav-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}

.ld-nav a {
  display: block;
  padding: 20px;
  font-size: 13px;
  color: var(--b);
  text-decoration: none;
  opacity: .4;
  transition: opacity .2s;
  font-family: "DM Sans", sans-serif;
  font-weight: 400;
}

.ld-nav a:hover,
.ld-nav a.active { opacity: 1; }

.ld-lang-li {
  display: flex;
  align-items: center;
  margin-left: 8px;
  padding: 0 8px;
  border-left: 1px solid var(--l);
}

.ld-lang-a {
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: .8px !important;
  padding: 6px 5px !important;
  opacity: .5 !important;
  color: var(--b) !important;
  text-decoration: none !important;
  text-transform: uppercase;
  display: inline-block !important;
}

.ld-lang-a:hover { opacity: 1 !important; background: var(--y); border-radius: 4px; }
.ld-lang-div { font-size: 10px; color: var(--b); opacity: .2; padding: 0 1px; }

@media (max-width: 600px) {
  .ld-nav-inner { overflow-x: auto; flex-wrap: nowrap; }
  .ld-nav a { padding: 16px 10px; font-size: 12px; white-space: nowrap; }
}

/* ============================================================
   BLOG INDEX — hero + grid
   ============================================================ */

.blog-hero {
  padding: 80px 52px 60px;
  max-width: 1100px;
  margin: 0 auto;
  border-bottom: 1px solid var(--l);
}

.blog-hero-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--m);
  margin-bottom: 20px;
}

.blog-hero-title {
  font-family: "DM Sans", sans-serif;
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 300;
  letter-spacing: -3px;
  line-height: .97;
  color: var(--b);
}

.blog-hero-title em {
  font-family: "DM Serif Display", serif;
  font-style: italic;
}

.blog-hero-desc {
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.6;
  color: var(--b);
  opacity: .5;
  font-weight: 300;
  max-width: 560px;
  margin-top: 28px;
}

/* ============================================================
   CATEGORY FILTER
   ============================================================ */

.blog-cats {
  padding: 32px 52px;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-cat-btn {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
  border: 1.5px solid var(--l);
  color: var(--b);
  opacity: .6;
  transition: all .2s;
}

.blog-cat-btn:hover,
.blog-cat-btn.active {
  opacity: 1;
  border-color: var(--b);
  background: var(--b);
  color: var(--w);
}

.blog-cat-btn.active-y {
  background: var(--y);
  border-color: var(--y);
  color: var(--b);
  opacity: 1;
}

/* ============================================================
   POST GRID
   ============================================================ */

.blog-grid {
  padding: 48px 52px 80px;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; padding: 32px 24px 60px; } }

/* Post card */
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--w);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: var(--b);
  transition: transform .2s, box-shadow .2s;
  border: 1px solid var(--l);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(26,26,26,.08);
}

.post-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--l);
}

.post-card-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--y);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.post-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-card-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--m);
  margin-bottom: 12px;
}

.post-card-title {
  font-family: "DM Sans", sans-serif;
  font-size: 20px;
  font-weight: 300;
  letter-spacing: -.4px;
  line-height: 1.25;
  color: var(--b);
  margin-bottom: 12px;
  flex-grow: 1;
}

.post-card-excerpt {
  font-size: 14px;
  line-height: 1.65;
  color: var(--m);
  font-weight: 300;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-meta {
  font-size: 12px;
  color: var(--m);
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-card-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--m);
  opacity: .5;
}

/* ============================================================
   SINGLE POST
   ============================================================ */

.post-hero {
  padding: 64px 52px 0;
  max-width: 780px;
  margin: 0 auto;
}

.post-hero-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.post-hero-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--y);
  color: var(--b);
}

.post-hero-title {
  font-family: "DM Sans", sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 300;
  letter-spacing: -2px;
  line-height: 1.05;
  color: var(--b);
  margin-bottom: 24px;
}

.post-hero-title em {
  font-family: "DM Serif Display", serif;
  font-style: italic;
}

.post-hero-meta {
  font-size: 13px;
  color: var(--m);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--l);
}

.post-cover {
  max-width: 1100px;
  margin: 0 auto 0;
  padding: 0 52px;
}

.post-cover img {
  width: 100%;
  border-radius: 16px;
  aspect-ratio: 16/7;
  object-fit: cover;
}

/* ============================================================
   POST CONTENT typography
   ============================================================ */

.post-content {
  max-width: 780px;
  margin: 60px auto 0;
  padding: 0 52px 80px;
}

.post-content p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--b);
  font-weight: 300;
  margin-bottom: 24px;
}

.post-content h2 {
  font-family: "DM Sans", sans-serif;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 300;
  letter-spacing: -1px;
  line-height: 1.15;
  color: var(--b);
  margin: 52px 0 20px;
}

.post-content h3 {
  font-family: "DM Sans", sans-serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -.3px;
  color: var(--b);
  margin: 36px 0 16px;
}

.post-content h2 em,
.post-content h3 em {
  font-family: "DM Serif Display", serif;
  font-style: italic;
}

.post-content ul,
.post-content ol {
  margin: 0 0 24px 24px;
}

.post-content li {
  font-size: 17px;
  line-height: 1.75;
  font-weight: 300;
  color: var(--b);
  margin-bottom: 8px;
}

.post-content blockquote {
  font-family: "DM Serif Display", serif;
  font-style: italic;
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.4;
  color: var(--b);
  padding: 36px 0;
  border-top: 1px solid var(--l);
  border-bottom: 1px solid var(--l);
  margin: 48px 0;
}

.post-content blockquote p { font-size: inherit; font-family: inherit; margin: 0; }

.post-content img {
  width: 100%;
  border-radius: 12px;
  margin: 36px 0;
}

.post-content a {
  color: var(--b);
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: .7;
  transition: opacity .2s;
}

.post-content a:hover { opacity: 1; }

.post-content strong { font-weight: 500; }

/* ============================================================
   POST CTA — at end of article
   ============================================================ */

.post-cta {
  background: var(--b);
  border-radius: 20px;
  padding: 48px;
  margin: 60px 0 0;
  text-align: center;
}

.post-cta-title {
  font-family: "DM Sans", sans-serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 300;
  letter-spacing: -1.5px;
  color: var(--w);
  margin-bottom: 16px;
}

.post-cta-title em {
  font-family: "DM Serif Display", serif;
  font-style: italic;
  color: var(--y);
}

.post-cta-text {
  font-size: 15px;
  color: var(--w);
  opacity: .6;
  font-weight: 300;
  margin-bottom: 32px;
  line-height: 1.6;
}

.post-cta-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.ld-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all .2s;
  font-family: "DM Sans", sans-serif;
}

.ld-by { background: var(--y); color: var(--b); }
.ld-by:hover { filter: brightness(.94); transform: translateY(-1px); }
.ld-bo { background: transparent; color: var(--w); border: 1.5px solid rgba(255,255,255,.3); }
.ld-bo:hover { border-color: var(--w); transform: translateY(-1px); }

/* ============================================================
   RELATED POSTS
   ============================================================ */

.related-posts {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 52px 80px;
  border-top: 1px solid var(--l);
}

.related-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--m);
  margin-bottom: 32px;
  display: block;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .related-grid { grid-template-columns: 1fr; } }

/* ============================================================
   FLOATING WIDGET — identical to main site
   ============================================================ */

.ld-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  width: 220px;
  background: var(--s);
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(26,26,26,.14);
  border: 1px solid var(--l);
  overflow: hidden;
  font-family: "DM Sans", sans-serif;
}

.ld-w-head {
  padding: 14px 16px 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--m);
  letter-spacing: .3px;
  border-bottom: 1px solid var(--l);
}

.ld-w-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 20px;
  background: var(--y);
  border: none;
  border-radius: 0;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--b);
  text-decoration: none;
  cursor: pointer;
  transition: filter .15s, transform .15s;
}

.ld-w-cta:hover { filter: brightness(.93); }

.ld-w-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  font-size: 18px;
  color: var(--m);
  cursor: pointer;
  line-height: 1;
  padding: 2px;
}

@media (max-width: 480px) {
  .ld-widget { width: calc(100% - 32px); bottom: 16px; right: 16px; left: 16px; }
}

/* ============================================================
   FOOTER — identical to main site
   ============================================================ */

.ld-ft {
  padding: 28px 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--l);
  font-family: "DM Sans", sans-serif;
}

.ld-fc {
  font-size: 13px;
  color: var(--m);
  font-weight: 300;
}

.ld-fl {
  display: flex;
  gap: 20px;
}

.ld-fl a {
  font-size: 13px;
  color: rgba(26,26,26,.42);
  text-decoration: none;
  transition: color .2s;
}

.ld-fl a:hover { color: var(--b); }

@media (max-width: 640px) {
  .ld-ft { padding: 24px; flex-direction: column; text-align: center; }
  .blog-hero { padding: 48px 24px 40px; }
  .blog-cats { padding: 24px; }
  .post-hero { padding: 48px 24px 0; }
  .post-cover { padding: 0 24px; }
  .post-content { padding: 0 24px 60px; }
  .related-posts { padding: 48px 24px 60px; }
}

/* ============================================================
   PAGINATION
   ============================================================ */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 0 52px 80px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 14px;
  text-decoration: none;
  color: var(--b);
  border: 1.5px solid var(--l);
  transition: all .2s;
}

.pagination a:hover,
.pagination .current {
  background: var(--b);
  color: var(--w);
  border-color: var(--b);
}

/* ============================================================
   TAG / AUTHOR pages
   ============================================================ */

.tag-hero {
  padding: 64px 52px 48px;
  max-width: 1100px;
  margin: 0 auto;
  border-bottom: 1px solid var(--l);
}

.tag-hero-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--m);
  display: block;
  margin-bottom: 16px;
}

.tag-hero-name {
  font-family: "DM Sans", sans-serif;
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 300;
  letter-spacing: -3px;
  line-height: 1;
  color: var(--b);
}

.tag-hero-name em {
  font-family: "DM Serif Display", serif;
  font-style: italic;
}

.tag-hero-desc {
  font-size: 16px;
  color: var(--m);
  font-weight: 300;
  margin-top: 16px;
  max-width: 480px;
  line-height: 1.6;
}

/* ============================================================
   404 / ERROR
   ============================================================ */

.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}

.error-code {
  font-size: clamp(80px, 15vw, 160px);
  font-weight: 300;
  letter-spacing: -6px;
  color: var(--b);
  opacity: .08;
  line-height: 1;
  margin-bottom: -20px;
}

.error-title {
  font-family: "DM Serif Display", serif;
  font-style: italic;
  font-size: clamp(28px, 4vw, 48px);
  color: var(--b);
  margin-bottom: 16px;
}

.error-text {
  font-size: 16px;
  color: var(--m);
  font-weight: 300;
  margin-bottom: 32px;
}

/* ============================================================
   KOENIG EDITOR — required Ghost card classes
   ============================================================ */

.kg-width-wide {
  margin-left: calc(50% - 50vw + 52px);
  margin-right: calc(50% - 50vw + 52px);
  max-width: none;
}

.kg-width-full {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: none;
}

.kg-image { width: 100%; border-radius: 12px; }

.kg-gallery-container { display: flex; flex-direction: column; gap: 8px; }
.kg-gallery-row { display: flex; gap: 8px; }
.kg-gallery-image img { width: 100%; object-fit: cover; border-radius: 8px; }

.kg-bookmark-card {
  border: 1px solid var(--l);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  text-decoration: none;
  color: var(--b);
  margin: 24px 0;
}
.kg-bookmark-content { padding: 20px; flex: 1; }
.kg-bookmark-title { font-weight: 500; margin-bottom: 6px; }
.kg-bookmark-description { font-size: 14px; color: var(--m); }
.kg-bookmark-thumbnail img { width: 160px; object-fit: cover; }

.kg-callout-card {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  background: var(--l);
  border-radius: 12px;
  margin: 24px 0;
}
.kg-callout-emoji { font-size: 24px; }
.kg-callout-text { font-size: 16px; line-height: 1.6; }

@media (max-width: 600px) {
  .kg-width-wide, .kg-width-full {
    margin-left: -24px;
    margin-right: -24px;
  }
}
