.ec-single-hero { position: relative; margin-bottom: 0; }

.ec-single-hero-img {
  position: relative;
  max-height: 520px;
  overflow: hidden;
}

.ec-single-hero-img img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
}

.ec-single-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,13,20,0) 30%, rgba(10,13,20,0.95) 100%);
}

.ec-single-hero-content {
  position: relative;
  background: #0a0d14;
  padding: 32px 0 24px;
}

.ec-single-title {
  font-size: clamp(24px, 3.5vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  margin: 12px 0 20px;
  max-width: 800px;
}

.ec-single-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ec-single-meta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ec-author-name { font-size: 14px; font-weight: 600; color: #e2e8f0; }
.ec-meta-details { font-size: 12px; color: #8892a4; }

.ec-share-row {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.ec-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 0.5px solid #2d3748;
  background: #111827;
  color: #8892a4;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.ec-share-btn:hover { border-color: #2d8cff; color: #2d8cff; }

.ec-single-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  padding: 40px 0 60px;
  align-items: start;
}

.ec-single-sidebar { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 16px; }

.ec-entry-content {
  font-size: 17px;
  line-height: 1.8;
  color: #d1d9e6;
  max-width: 720px;
}

.ec-entry-content p { margin-bottom: 1.5em; }

.ec-entry-content > p:first-of-type::first-letter {
  float: left;
  font-size: 4em;
  line-height: 0.75;
  margin: 0.05em 0.1em 0 0;
  color: #2d8cff;
  font-weight: 800;
  font-family: var(--ec-font-heading);
}

.ec-entry-content blockquote {
  border-left: 4px solid #2d8cff;
  border-radius: 0;
  margin: 2em 0;
  padding: 16px 24px;
  background: #111827;
  font-size: 1.1em;
  font-style: italic;
  color: #c4cad6;
}

.ec-entry-content a { color: #2d8cff; text-decoration: underline; }
.ec-entry-content h2 { font-size: 24px; color: #fff; margin: 2em 0 0.75em; border-bottom: 0.5px solid #1e2535; padding-bottom: 8px; }
.ec-entry-content h3 { font-size: 19px; color: #fff; margin: 1.5em 0 0.5em; }
.ec-entry-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 1.5em 0; }
.ec-entry-content figure figcaption { font-size: 13px; color: #8892a4; text-align: center; margin-top: -1em; margin-bottom: 1.5em; }
.ec-entry-content code { background: #1a2235; color: #7dd3fc; padding: 2px 7px; border-radius: 4px; font-family: var(--ec-font-mono); font-size: 0.9em; }
.ec-entry-content pre { background: #0d1117; border: 0.5px solid #1e2535; border-radius: 8px; padding: 20px; overflow-x: auto; }
.ec-entry-content pre code { background: none; padding: 0; }

.ec-post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; padding-top: 24px; border-top: 0.5px solid #1e2535; }

.ec-tag {
  display: inline-block;
  padding: 4px 12px;
  background: #1a2235;
  border: 0.5px solid #2d3748;
  border-radius: 4px;
  font-size: 12px;
  color: #8892a4;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.ec-tag:hover { border-color: #2d8cff; color: #2d8cff; }

@media (max-width: 1023px) {
  .ec-single-grid { grid-template-columns: 1fr; gap: 32px; }
  .ec-single-sidebar { position: static; }
}

@media (max-width: 767px) {
  .ec-single-hero-img img { height: 240px; }
  .ec-single-title { font-size: 22px; }
  .ec-share-row { margin-left: 0; }
  .ec-entry-content { font-size: 16px; }
  .ec-entry-content > p:first-of-type::first-letter { font-size: 3em; }
}
