/* ========================================
   SINGLE POST STYLES - Mobile First
   Theme: Kini AI Blog
   Design: Figma → Clean CSS
   ======================================== */

/* ========================================
   1. Mobile Base (320px+)
   ======================================== */
.single-post {
  background: #181818;
  color: #ffffff;
  /* padding: 2rem 1rem; */
  min-height: 100vh;
}

.single-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 164px;
}

.post-article {
  display: flex;
  flex-direction: column;
  /* gap: 1.5rem; */
}

/* Title */
.post-title {
  font-family: "Unbounded", sans-serif;
  font-size: 2.25rem; /* ~36px */
  line-height: 1.2;
  text-align: center;
  color: #ffffff;
  margin: 0;
  padding-top: 64px;
}

/* Subtitle */
.post-subtitle {
  font-family: "Eudoxus Sans", sans-serif;
  font-size: 1.125rem; /* 18px */
  line-height: 1.4;
  text-align: center;
  color: #ffffff;
  opacity: 0.9;
  margin: 0.5rem 0 1rem;
}

/* Separator */
.post-divider {
  height: .5px;
  background: #fff1eb;
  opacity: 0.1;
  margin: 1rem 0;
}

/* Date */
.post-date {
  font-family: "Eudoxus Sans", sans-serif;
  font-size: 0.875rem; /* 14px */
  font-weight: 700;
  text-align: center;
  color: #ffffff;
  margin: 0;
}

/* Author Top (Small) */
.post-author-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Eudoxus Sans", sans-serif;
  font-size: 0.8125rem; /* 13px */
  font-weight: 700;
  color: #ffffff;
}

.post-author-top img {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  object-fit: cover;
}

/* Featured Image */
.post-thumbnail {
  width: calc(100% + 2rem);
  height: auto;
  overflow: hidden;
}

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

/* Content */
.post-content {
  font-family: "Eudoxus Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: #ffffff;
}

.post-content p {
  margin-bottom: 1.25rem;
}

.post-content h2,
.post-content h3 {
  font-family: "Unbounded", sans-serif;
  color: #ffffff;
  margin: 2rem 0 1rem;
}

.post-content h2 {
  font-size: 1.5rem;
}

.post-content h3 {
  font-size: 1.25rem;
}

/* Author Bottom */
.post-author-bottom {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.post-author-bottom img {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: cover;
}

.post-author-bottom .author-name {
  font-family: "Eudoxus Sans", sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff;
}

/* Navigation */
.post-navigation {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 3rem 0;
  font-family: "Eudoxus Sans", sans-serif;
  font-size: 0.875rem;
}

.post-navigation a {
  color: var(--wp--preset--color--primary, #007cba);
  text-decoration: none;
}

.post-navigation a:hover {
  text-decoration: underline;
}

.nav-prev {
  text-align: left;
}
.nav-next {
  text-align: right;
}

/* ========================================
   2. Small Mobile (480px+)
   ======================================== */
@media (min-width: 480px) {
  .single-container {
    padding: 0 1.5rem;
  }

  .post-title {
    font-size: 2.75rem;
  }

  .post-subtitle {
    font-size: 1.25rem;
  }

  .post-thumbnail {
    
  }
}

/* ========================================
   3. Tablet (768px+)
   ======================================== */
@media (min-width: 768px) {
  .single-post {
    /* padding: 4rem 0; */
  }

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

  .post-title {
    font-size: 3.5rem;

  }

  .post-subtitle {
    font-size: 1.5rem;
  }

  .post-date {
    font-size: 1rem;
  }

  .post-author-top {
    font-size: 0.875rem;
  }

  .post-author-top img {
    width: 1.75rem;
    height: 1.75rem;
  }

  .post-thumbnail {
    width: 100%;
    height: 531px;
    object-fit: contain;
    margin: 2.5rem 0;
    border-radius: 0;
  }

  .post-content {
    font-size: 1.0625rem;
  }

  .post-content h2 {
    font-size: 1.875rem;
  }

  .post-author-bottom img {
    width: 2.5rem;
    height: 2.5rem;
  }

  .post-author-bottom .author-name {
    font-size: 1.25rem;
  }

  .post-navigation {
    flex-direction: row;
    justify-content: space-between;
    font-size: 1rem;
  }
}

/* ========================================
   4. Desktop (1024px+)
   ======================================== */
@media (min-width: 1024px) {
  .single-container {
    /* max-width: 900px; */
    padding: 0 10px;
  }

  .post-title {
    font-size: 64px;
  }

  .post-date {
    padding-top: 0px;
    padding-bottom: 0px;
  }

  .post-subtitle {
    font-size: 17px;
  }

  .post-content {
    font-size: 1.125rem;
    /* line-height: 1.8; */
  }

  .post-content p {
    color: #fff;
    font-family: "Eudoxus Sans", sans-serif;
    font-size: 17px;
    font-style: normal;
    font-weight: 500;
    line-height: 25px; /* 147.059% */
    letter-spacing: 0.34px;
    padding-top: 54px;
  }

  .post-content h2 {
    font-size: 1.75rem;
  }

  .post-content h3 {
    font-size: 1.5rem;
  }

  .post-thumbnail {
    margin-bottom: 128px;
  }

  .post-thumbnail img {
    height: 531px;
    object-fit: cover;
  }
}

/* ========================================
   5. Large Desktop (1200px+)
   ======================================== */
/* @media (min-width: 1200px) {
  .single-container {
    max-width: 1000px;
  }

  .post-title {
    font-size: 4.5rem;
  }

  .post-subtitle {
    font-size: 2rem;
  }
} */

/* ========================================
   6. Accessibility & Preferences
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
