:root {
  color-scheme: light;
  --ink: #0d1b2f;
  --muted: #61718a;
  --line: #d7e5e0;
  --paper: #ffffff;
  --wash: #eef8f5;
  --teal: #0f8b8d;
  --green: #218c63;
  --red: #bf2118;
  --gold: #d8a236;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(15, 139, 141, 0.14), transparent 30%),
    radial-gradient(circle at 90% 44%, rgba(216, 162, 54, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(238, 248, 245, 0.72)),
    #f7fbfa;
}

a {
  color: inherit;
}

.blog-header {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 18px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.blog-brand img {
  width: 200px;
  height: 100px;
  object-fit: contain;
  display: block;
}

.blog-header nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.blog-header nav a,
.post-action,
.comment-form button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: #006f73;
  text-decoration: none;
  font-weight: 800;
  padding: 11px 14px;
  box-shadow: 0 8px 18px rgba(13, 27, 47, 0.04);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.blog-header nav a:hover,
.post-action:hover,
.comment-form button:hover {
  border-color: rgba(15, 139, 141, 0.42);
  box-shadow: 0 14px 28px rgba(15, 139, 141, 0.10);
  transform: translateY(-1px);
}

.blog-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px 26px;
}

.blog-hero {
  padding: 18px 0 30px;
}

.blog-hero p {
  margin: 0 0 10px;
  color: #007b7f;
  font-weight: 900;
}

.blog-hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: 0;
}

.blog-hero h1::after {
  content: "";
  display: block;
  width: 96px;
  height: 4px;
  margin-top: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.38fr) minmax(0, 0.62fr);
  gap: 18px;
  align-items: start;
}

.post-list-panel,
.post-detail {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(215, 229, 224, 0.92);
  border-radius: 8px;
  box-shadow: 0 22px 58px rgba(13, 27, 47, 0.09);
  backdrop-filter: blur(10px);
}

.post-list-panel {
  padding: 18px;
  position: sticky;
  top: 14px;
}

.panel-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.panel-title h2 {
  margin: 0;
  font-size: 20px;
}

.panel-title span,
.post-meta,
.comment-meta,
.login-note {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.post-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.post-category {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(15, 139, 141, 0.10);
  color: #08777a;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.post-list {
  display: grid;
  gap: 12px;
}

.post-list-card {
  width: 100%;
  display: block;
  text-align: left;
  border: 1px solid rgba(215, 229, 224, 0.92);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(238, 248, 245, 0.58));
  color: inherit;
  font: inherit;
  text-decoration: none;
  padding: 15px;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.post-list-card.active,
.post-list-card:hover {
  border-color: rgba(15, 139, 141, 0.55);
  box-shadow: 0 14px 30px rgba(15, 139, 141, 0.13);
  transform: translateY(-1px);
}

.post-list-card strong {
  display: block;
  margin: 4px 0 6px;
  font-size: 16px;
}

.post-list-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.post-detail {
  min-height: 520px;
  overflow: hidden;
}

.post-cover {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  background:
    linear-gradient(135deg, rgba(15, 139, 141, 0.16), rgba(216, 162, 54, 0.10)),
    var(--wash);
}

.post-content {
  padding: 32px;
}

.post-content h2 {
  margin: 8px 0 12px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: 0;
}

.post-summary {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
  margin: 0 0 26px;
}

.post-share {
  margin: 0 0 22px;
  padding: 11px 0 18px;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 8px;
}

.share-buttons {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.share-button {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    0 12px 24px rgba(13, 27, 47, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease, outline-color 160ms ease;
}

.share-button:hover {
  filter: saturate(1.1) brightness(1.06);
  transform: translateY(-2px);
  box-shadow:
    0 18px 34px rgba(13, 27, 47, 0.18),
    0 0 0 4px rgba(15, 139, 141, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.share-button:focus-visible {
  outline: 3px solid rgba(15, 139, 141, 0.32);
  outline-offset: 3px;
}

.share-button svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
  display: block;
}

.share-button.facebook {
  background: linear-gradient(135deg, #3287ff, #145fd0);
}

.share-button.x {
  background: linear-gradient(135deg, #293241, #05070b);
}

.share-button.linkedin {
  background: linear-gradient(135deg, #1f82df, #07569f);
}

.share-button.whatsapp {
  background: linear-gradient(135deg, #35df74, #138f43);
}

.share-button.telegram {
  background: linear-gradient(135deg, #40b8f3, #1788c7);
}

.share-button.gmail {
  background: linear-gradient(135deg, #ff6658, #c52b20);
}

.share-button.native-share {
  background: linear-gradient(135deg, #18aeb0, #0b777a);
}

.share-button.copy-share {
  background: linear-gradient(135deg, #75849a, #3d495c);
}

.post-share small {
  min-height: 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.post-body {
  display: grid;
  gap: 16px;
  line-height: 1.78;
  color: #1d2a3e;
  font-size: 16px;
}

.post-body p {
  margin: 0;
}

.post-body h2,
.post-body h3 {
  margin: 10px 0 0;
  line-height: 1.2;
}

.post-body ul,
.post-body ol {
  margin: 0;
  padding-left: 24px;
}

.post-body blockquote {
  margin: 0;
  padding: 14px 18px;
  border-left: 4px solid var(--teal);
  background: linear-gradient(135deg, rgba(238, 248, 245, 0.95), rgba(255, 255, 255, 0.82));
  border-radius: 8px;
}

.post-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 16px 0;
  border-radius: 8px;
}

.post-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 26px 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.post-action.liked {
  background: #eaf7f1;
  color: var(--green);
  border-color: rgba(33, 140, 99, 0.35);
}

.comments {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.post-share + .comments {
  border-top: 0;
  padding-top: 0;
}

.related-posts {
  margin: 28px 0 22px;
  padding: 22px;
  border: 1px solid rgba(215, 229, 224, 0.92);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(238, 248, 245, 0.74), rgba(255, 255, 255, 0.94));
}

.related-posts-heading {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.related-posts-heading span {
  color: #08777a;
  font-size: 12px;
  font-weight: 900;
}

.related-posts-heading h3 {
  margin: 0;
  font-size: 22px;
}

.related-post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.related-post-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100%;
  padding: 12px;
  border: 1px solid rgba(215, 229, 224, 0.92);
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.related-post-card:hover {
  border-color: rgba(15, 139, 141, 0.46);
  box-shadow: 0 14px 30px rgba(15, 139, 141, 0.12);
  transform: translateY(-1px);
}

.related-post-card img,
.related-post-visual {
  width: 100%;
  height: 104px;
  border-radius: 8px;
  object-fit: cover;
  background:
    linear-gradient(135deg, rgba(15, 139, 141, 0.16), rgba(216, 162, 54, 0.10)),
    var(--wash);
}

.related-post-visual {
  display: grid;
  place-items: center;
  color: var(--teal);
  font-weight: 900;
}

.related-post-card strong {
  line-height: 1.25;
}

.related-post-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 14px;
}

.comments h3 {
  margin: 0 0 14px;
}

.comment-form {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.comment-form textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  font: inherit;
  background: rgba(255, 255, 255, 0.92);
}

.comment-form button {
  justify-self: start;
  background: var(--teal);
  color: #fff;
}

.comment-list {
  display: grid;
  gap: 10px;
}

.comment {
  border: 1px solid rgba(215, 229, 224, 0.92);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.92);
}

.comment strong {
  display: block;
  margin-bottom: 4px;
}

.comment-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.comment-report {
  border: 1px solid rgba(191, 33, 24, 0.20);
  border-radius: 999px;
  background: rgba(191, 33, 24, 0.07);
  color: var(--red);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  padding: 8px 10px;
}

.comment-report:hover,
.comment-report:focus-visible {
  border-color: rgba(191, 33, 24, 0.38);
  background: rgba(191, 33, 24, 0.11);
}

.comment-report.sent {
  border-color: rgba(33, 140, 99, 0.28);
  background: rgba(33, 140, 99, 0.10);
  color: var(--green);
}

.comment p,
.empty-state {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.empty-state {
  padding: 18px;
}

.blog-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 860px) {
  .blog-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .blog-brand img {
    width: 170px;
    height: 76px;
  }

  .blog-layout {
    grid-template-columns: 1fr;
  }

  .post-list-panel {
    position: static;
  }

  .post-content {
    padding: 20px;
  }

  .share-buttons {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .share-button {
    flex: 0 0 44px;
  }

  .post-cover {
    height: 210px;
  }
}
