/* ========================================
   SINGLE POST STYLES - Mobile First (Figma Match)
   Theme: Kini AI Blog
   ======================================== */

/* Base Layout */
.single-post {
  background-color: #181818;
  color: #ffffff;
  min-height: 100vh;
  /* overflow-x: hidden; */
}

.single-container {
  width: 100%;
  padding: 0 16px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 50px; /* Gap between major sections */
  position: relative;
  top: 50px; /* Push down below header */
}

/* Post Header / Hero */
.post-header {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  padding-top: 20px;
}

.post-meta-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
  width: 100%;
}

/* Title */
.post-title {
  font-family: "Unbounded", sans-serif;
  font-weight: 500; /* Medium */
  font-size: 30px;
  line-height: 1.1;
  color: #ffffff;
  margin: 0;
  width: 100%;
  max-width: 343px;
  text-align: center; /* Centered as per design */
}

/* Subtitle */
.post-subtitle {
  font-family: "Eudoxus Sans", sans-serif;
  font-weight: 400; /* Regular */
  font-size: 16px;
  line-height: 1.25;
  color: #ffffff;
  margin: 0;
  opacity: 0.5;
  text-transform: capitalize;
  width: 100%;
  text-align: center; /* Centered as per design */
}

/* Separator Line */
.separator-line {
  width: 100%;
  height: 1px;
  background-color: #fff1eb0d; /* Using the subtle border color from design context */
  /* Alternatively use an image border if required, but CSS border is cleaner */
  position: relative;
}

/* Date */
.post-date {
  font-family: "Eudoxus Sans", sans-serif;
  font-weight: 700; /* Bold */
  font-size: 12px;
  line-height: normal;
  color: #ffffff;
  text-align: center;
  width: 100%;
  display: block;
}

/* Featured Image */
.post-thumbnail {
  width: 100%;
  position: relative;
  margin-top: 20px;
}

.post-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.post-thumbnail-caption {
  font-family: "Eudoxus Sans", sans-serif;
  font-weight: 500; /* Medium */
  font-size: 14px;
  line-height: 1;
  color: #ffffff;
  opacity: 0.6;
  margin-top: 10px;
  text-transform: capitalize;
}

/* Author Top */
.post-author-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 50px;
  margin-bottom: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid #fff1eb11;
}

.post-author-top img {
  width: 32px; /* Based on design size-32px */
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.post-author-top span {
  font-family: "Eudoxus Sans", sans-serif;
  font-weight: 700; /* Bold */
  font-size: 14px;
  line-height: 1;
  color: #ffffff;
  white-space: nowrap;
  text-transform: capitalize;
}

/* Content */
.post-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #ffffff;
  width: 100%;
}

.post-content p {
  font-family: "Eudoxus Sans", sans-serif;
  font-weight: 500; /* Medium */
  font-size: 17px;
  line-height: 25px; /* 1.47 */
  letter-spacing: 0.34px;
  /* margin-bottom: 16px; */
}

.post-content p:last-child {
  margin-bottom: 0;
}

/* Headings in Content */
.post-content h2 {
  font-family: "Unbounded", sans-serif;
  font-weight: 400; /* Regular */
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.84px;
  color: #ffffff;
  margin-top: 24px;
  margin-bottom: 24px;
}

.post-content h3 {
  font-family: "Unbounded", sans-serif;
  font-weight: 400; /* Regular */
  font-size: 28px; /* Changed from 24px to match spec */
  line-height: 1; /* Changed to 100% */
  letter-spacing: -0.84px;
  color: #ffffff;
  font-style: normal;
  margin-top: 24px;
  margin-bottom: 20px;
}

.post-content h4 {
  font-family: "Unbounded", sans-serif; /* Changed to Unbounded to match h style request */
  font-weight: 400; /* Regular */
  font-size: 28px; /* Changed to 28px */
  line-height: 1;
  letter-spacing: -0.84px;
  color: #ffffff;
  font-style: normal;
  margin-top: 20px;
  margin-bottom: 16px;
}

.post-content ul {
  list-style-type: disc;
  padding-left: 25.5px;
  margin-bottom: 16px;
}

.post-content ul li {
  display: list-item;
  list-style-type: disc;
}

.post-content li {
  font-family: "Eudoxus Sans", sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.34px;
  margin-bottom: 8px; /* Space between list items */
}

.post-content li b {
  font-weight: 700;
}

.post-content li a {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.post-content a {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.post-content b,
.post-content strong {
  font-weight: 700;
}

.post-content i,
.post-content em {
  font-style: italic;
}

/* "Big Deal" Section Styling (if using specific class or just H2) */
/* Assuming H2 matches the "What is Grok 4?" style */

/* Author Bottom */
.post-author-bottom {
  width: 100%;
  padding-top: 50px;
  padding-bottom: 50px;
}

.post-author-bottom .author-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-author-bottom .author-avatar img {
  width: 32px;
  /* height: 32px; */
  border-radius: 50%;
  object-fit: cover;
}

.post-author-bottom .author-name {
  font-family: "Eudoxus Sans", sans-serif;
  font-weight: 700; /* Bold */
  font-size: 18px; /* Slightly larger at bottom? Design says 18px */
  line-height: 1;
  color: #ffffff;
}

/* Tablet and Desktop Adjustments */
@media (min-width: 768px) {
  .single-container {
    max-width: 768px;
    /* padding: 0 24px; */
  }

  .post-title {
    font-size: 48px;
    text-align: center;
  }

  .post-subtitle {
    font-size: 20px;
    text-align: center;
  }

  .post-meta-wrapper {
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .post-title {
    max-width: 768px;
    font-size: 64px;
    text-wrap: wrap;
  }

  .single-container {
    max-width: 768px;
    padding: 0 0px;
  }

  .post-thumbnail {
    width: 100%;
    height: 531px;
  }
}
