/* ============================================
   BLOG POST STYLES
   Extends css/style.css — shares the same CSS
   custom properties and base resets defined there.

   To reuse for a new post:
     1. Duplicate blog/italy-solo-adventure.html
     2. Update the title, meta, hero gradient, and body content
     3. Link the same two stylesheets (style.css + blog.css)
   ============================================ */


/* ============================================
   READING PROGRESS BAR
   ============================================ */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--color-accent);
  z-index: 2000;
  transition: width 0.08s linear;
  border-radius: 0 2px 2px 0;
}


/* ============================================
   NAV — simplified for blog pages
   ============================================ */
.nav .nav-inner {
  justify-content: space-between;
}

/* Hide the full nav-links / nav-social on blog pages
   (only logo + back button shown) */
.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: 7px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  transition: color var(--transition), background var(--transition),
    border-color var(--transition);
}
.nav-back:hover {
  color: var(--color-text);
  background: var(--color-bg-alt);
  border-color: var(--color-border);
}

/* Register the arrow-left icon (path relative to css/ folder) */
.icon-arrow-left {
  -webkit-mask-image: url(../icons/arrow-left.svg);
  mask-image: url(../icons/arrow-left.svg);
}


/* ============================================
   HERO IMAGE
   ============================================ */
.post-hero {
  margin-top: var(--nav-height);
  height: 68vh;
  min-height: 380px;
  overflow: hidden;
}

.post-hero-image {
  width: 100%;
  height: 100%;
}

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


/* ============================================
   ARTICLE CONTAINER
   ============================================ */
.post-article {
  background: var(--color-bg);
}

.post-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}


/* ============================================
   ARTICLE HEADER
   ============================================ */
.post-header {
  margin-bottom: 0;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.post-category {
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--color-accent);
  background: var(--color-accent-light);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.post-date,
.post-read-time {
  font-size: 0.875rem;
  color: var(--color-text-tertiary);
}

.post-date::before,
.post-read-time::before {
  content: "·";
  margin-right: 8px;
  color: var(--color-border);
}

.post-title {
  font-size: clamp(1.875rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--color-text);
}

.post-subtitle {
  font-family: var(--font-heading);
  font-size: 1.1875rem;
  font-style: italic;
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin-bottom: 32px;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--color-bg-alt), var(--color-border));
  border: 2px solid var(--color-border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text-secondary);
  flex-shrink: 0;
  /* Swap initials for a photo:
     background-image: url(../images/avatar.jpg);
     background-size: cover; */
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.author-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
}

.author-title {
  font-size: 0.8125rem;
  color: var(--color-text-tertiary);
}


/* ============================================
   DIVIDER
   ============================================ */
.post-divider {
  border: none;
  border-top: 1px solid var(--color-border-light);
  margin: 40px 0;
}


/* ============================================
   ARTICLE BODY TYPOGRAPHY
   ============================================ */
.post-body {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--color-text);
}

/* Opening lead paragraph */
.post-lead {
  font-family: var(--font-heading);
  font-size: 1.1875rem;
  font-style: italic;
  color: var(--color-text-secondary);
  line-height: 1.72;
  margin-bottom: 48px;
}

/* Sections */
.post-section {
  margin-bottom: 56px;
}

.post-section h2 {
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--color-text);
  padding-top: 8px;
}

.post-body p {
  margin-bottom: 24px;
  color: var(--color-text-secondary);
}

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


/* ============================================
   IMAGES
   ============================================ */
.post-image-block {
  margin: 40px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Two-up image layout */
.post-image-block.post-image-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  border-radius: 0;
  overflow: visible;
}

.post-image-duo .post-image-placeholder {
  border-radius: var(--radius-lg);
}

.post-image-placeholder {
  width: 100%;
  display: block;
  border-radius: var(--radius-lg);
}

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

.post-image-caption {
  font-size: 0.8125rem !important;
  color: var(--color-text-tertiary) !important;
  text-align: center;
  margin-top: 12px !important;
  margin-bottom: 0 !important;
  font-style: italic;
}


/* ============================================
   PULL QUOTE
   ============================================ */
.post-quote {
  margin: 48px 0;
  padding: 24px 32px;
  border-left: 3px solid var(--color-accent);
  background: var(--color-accent-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-heading);
  font-size: 1.1875rem;
  font-style: italic;
  color: var(--color-text);
  line-height: 1.65;
}


/* ============================================
   ARTICLE FOOTER
   ============================================ */
.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 48px;
  margin-top: 48px;
  border-top: 1px solid var(--color-border-light);
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 640px) {
  .post-hero        { height: 50vh; min-height: 280px; }
  .post-container   { padding: 40px 20px 64px; }
  .post-title       { font-size: 1.625rem; }
  .post-image-duo   { grid-template-columns: 1fr; }
  .post-footer      { flex-direction: column; align-items: flex-start; }
}
