/* ============================================================
   BLOG PAGE — blog.css
   ============================================================ */

.blog-page {
  background: #070014;
  color: #fff;
}

.blog-container {
  width: min(1120px, 88%);
  margin: 0 auto;
}

/* ── Hero ── */
.blog-hero {
  padding: 50px 0 40px;          /* body already has padding-top:90px for fixed nav */
  background: radial-gradient(circle at top center, rgba(146, 84, 214, 0.18), transparent 38%),
              #070014;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.blog-hero h1 {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 900;
  color: rgba(224, 217, 245, 0.88);
  margin: 0;
  letter-spacing: -0.01em;
}

/* Centred hero variant used on category pages */
.blog-hero--category {
  text-align: center;
  padding: 60px 0 48px;
}

/* Category subtitle shown on category pages */
.blog-hero__category {
  margin: 10px 0 0;
  font-size: clamp(13px, 1.3vw, 16px);
  font-weight: 500;
  color: rgba(183, 119, 255, 0.85);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .blog-hero        { padding: 36px 0 32px; }
  .blog-hero--category { padding: 44px 0 36px; }
}

/* ── Meta widgets ── */
.blog-meta-section {
  padding: 40px 0 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.blog-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px 80px;
}

.recent-widget {
  grid-column: 1 / -1;
}

.blog-widget h3 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-widget ul li {
  font-size: 14px;
  color: #b8b1d9;
  line-height: 1.7;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.25s ease;
}

/* Category links inside widget */
.blog-widget ul li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  color: #b8b1d9;
  text-decoration: none;
  transition: color 0.25s ease;
}

.blog-widget ul li a:hover {
  color: #d98cff;
}

/* Active category highlight */
.blog-widget ul li.cat-active a {
  color: #ff72bd;
  font-weight: 700;
}

.blog-widget ul li:last-child {
  border-bottom: none;
}

.blog-widget ul li:hover {
  color: #d98cff;
  cursor: default;
}

.blog-widget ul li span {
  color: rgba(183, 119, 255, 0.75);
  font-size: 13px;
}

.blog-widget .sub-item {
  padding-left: 20px;
}

.recent-widget ul li {
  display: block;
  padding: 7px 0 7px 16px;
  position: relative;
}

.recent-widget ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: #b777ff;
  font-weight: 700;
}

/* ── Blog card grid ── */
.blog-list-section {
  padding: 44px 0 60px;
}

.blog-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px 36px;
  align-items: start;
}

.blog-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.blog-card {
  overflow: hidden;
  border-radius: 18px;
  background: #130020;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.blog-card:hover {
  transform: translateY(-8px);
  border-color: rgba(183, 119, 255, 0.30);
  box-shadow:
    0 20px 55px rgba(70, 22, 145, 0.28),
    0 0 32px rgba(255, 114, 189, 0.12);
}

.blog-card-link:focus-visible .blog-card {
  outline: 3px solid rgba(255, 114, 189, 0.48);
  outline-offset: 4px;
}

.blog-card-img {
  width: 100%;
  height: 260px;
  overflow: hidden;
  background: #160021;
  border-radius: 18px 18px 0 0;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), filter 0.55s ease;
  will-change: transform;
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.07);
  filter: brightness(1.08) saturate(1.12);
}

.blog-card-content {
  padding: 24px 24px 28px;
}

.blog-card-content h3 {
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 800;
  color: #fff;
  line-height: 1.38;
  margin: 0 0 12px;
}

.blog-card-content p {
  font-size: 13px;
  color: #a9a0c6;
  margin: 0 0 18px;
  line-height: 1.65;
}

.blog-card-content span {
  display: inline-block;
  color: #8b6db5;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.blog-card-link:hover .blog-card-content span {
  color: #ff72bd;
}

/* ── Pagination ── */
.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 36px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.blog-pagination a {
  color: #b8b1d9;
  font-size: 26px;
  font-weight: 800;
  text-decoration: none;
  transition: color 0.25s ease;
}

.blog-pagination a:hover {
  color: #ff72bd;
}

/* ── Social share ── */
.blog-share-section {
  padding: 36px 0;
}

.share-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.share-buttons a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 4px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.share-buttons a:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.facebook-share { background: #355da8; }
.twitter-share  { background: #1da1f2; }
.linkedin-share { background: #0077b5; }

/* ── Calendar ── */
.blog-calendar-section {
  padding: 20px 0 50px;
}

.calendar-box {
  max-width: 420px;
}

.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.calendar-title {
  color: #b8b1d9;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.cal-prev,
.cal-next {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #b8b1d9;
  font-size: 20px;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.cal-prev:hover,
.cal-next:hover {
  border-color: #b777ff;
  color: #b777ff;
}

.calendar-box table {
  width: 100%;
  border-collapse: collapse;
  color: #9f96bd;
  font-size: 14px;
}

.calendar-box th {
  color: rgba(183, 119, 255, 0.80);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  text-align: center;
}

.calendar-box td {
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 12px 8px;
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.calendar-box td:not(:empty):hover {
  background: rgba(183, 119, 255, 0.12);
  color: #fff;
  cursor: pointer;
}

/* ── Reply form ── */
.reply-section {
  padding: 30px 0 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.reply-section h2 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 900;
  color: rgba(224, 217, 245, 0.88);
  margin: 0 0 10px;
}

.reply-note {
  font-size: 14px;
  color: #b8b1d9;
  margin: 0 0 28px;
}

.reply-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 760px;
}

.reply-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.reply-form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.reply-form-group label {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.reply-form-group label span {
  color: #ff72bd;
}

.reply-form textarea,
.reply-form input {
  width: 100%;
  background: rgba(16, 0, 32, 0.80);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  padding: 13px 14px;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.reply-form textarea::placeholder,
.reply-form input::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.reply-form textarea:focus,
.reply-form input:focus {
  border-color: #c86cff;
  box-shadow: 0 0 0 3px rgba(200, 108, 255, 0.12);
}

.reply-alert {
  font-size: 14px;
  min-height: 20px;
  color: #ff72bd;
}

/* reply submit — luxury style in buttons.css */
.reply-form button[type="submit"] {
  width: max-content;
  font-size: 13px;
  letter-spacing: 0.12em;
}

/* ── Shared Latest Posts sidebar card ── */
.latest-posts-card {
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 22px;
  padding: 22px;
  overflow: hidden;
}

.latest-posts-card h3 {
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.latest-post-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.latest-post-item:last-child {
  border-bottom: none;
}

.latest-post-item img {
  width: 72px;
  height: 62px;
  object-fit: cover;
  border-radius: 10px;
}

.latest-post-item h4 {
  margin: 0 0 5px;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 800;
}

.latest-post-item h4 a {
  color: #f1e9ff;
  text-decoration: none;
}

.latest-post-item span {
  color: #9b8bb7;
  font-size: 11px;
}

/* ── Responsive ── */
@media (max-width: 992px) {
  .blog-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .blog-meta-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .recent-widget {
    grid-column: auto;
  }

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

  .blog-card-img {
    height: 220px !important;
  }

  .blog-pagination a {
    font-size: 20px;
  }

  .reply-form-row {
    grid-template-columns: 1fr;
  }

  .calendar-box {
    max-width: 100%;
  }

  .latest-posts-card {
    padding: 18px;
  }

  .latest-post-item {
    grid-template-columns: 62px 1fr;
    gap: 10px;
  }

  .latest-post-item img {
    width: 62px;
    height: 54px;
  }

  .latest-post-item h4 {
    font-size: 12px;
  }
}
