/*
 * Zeover Blog Theme Styles
 * Blog-specific styles that extend the shared design system
 *
 * Uses theme-aware variables from shared/styles/theme.css
 * Supports .theme-light and .theme-dark via class on <html>
 */

 body, html {
  padding: 0;
  margin: 0;
 }

/* ============================================
 * LAYOUT
 * ============================================ */
.main-content {
  min-height: calc(100vh - 200px);
  padding: 3rem 0;
}

/* ============================================
 * HEADER - Desktop
 * Matches zeover.com main site navbar
 * ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-dark-main-brown, #190702);
  transition: background 0.3s ease;
}

.site-header.scrolled {
  border-bottom: 1px solid rgba(240, 191, 143, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 0;
  max-width: 72rem;
  margin: 0 auto;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.nav-group.nav-right {
  justify-content: flex-end;
}

.nav-group a {
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  font-family: Poppins, sans-serif;
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  padding: 0.25rem 0.5rem;
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-group a:hover {
  color: #ffffff;
}

.logo-container {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

.logo {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  color: #FCE1C8;
}

.logo svg {
  flex-shrink: 0;
}

.logo span {
  font-family: Poppins, sans-serif;
  font-size: 1.375rem;
  font-style: normal;
  font-weight: 500;
  letter-spacing: -0.0275rem;
  text-transform: uppercase;
}

/* ============================================
 * HEADER - Mobile
 * Hamburger menu matching zeover.com
 * ============================================ */
.mobile-nav {
  display: none;
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-dark-main-brown, #190702);
  transition: background 0.3s ease;
}

.mobile-nav.scrolled {
  border-bottom: 1px solid rgba(240, 191, 143, 0.15);
}

.mobile-nav-bar {
  display: flex;
  padding: 0.875rem 1rem;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-spacer {
  width: 32px;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 60;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger-line.open:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-line.open:nth-child(2) {
  opacity: 0;
}

.hamburger-line.open:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 40;
}

.mobile-menu-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #190702;
  z-index: 55;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.mobile-menu-panel.open {
  transform: translateX(0);
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  padding: 6.5rem 1.5rem 2rem;
  gap: 0.5rem;
}

.mobile-menu-links a {
  color: rgba(255, 255, 255, 0.7);
  font-family: Poppins, sans-serif;
  font-size: 1.35rem;
  font-weight: 400;
  text-decoration: none;
  text-align: center;
  padding: 0.35rem 1rem;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.mobile-menu-links a:hover {
  background: var(--surface-hover);
}

.mobile-menu-separator {
  width: 100%;
  height: 1px;
  background: var(--border-default);
  margin: 0.75rem 0;
}

@media (max-width: 768px) {
  .site-header {
    display: none;
  }

  .mobile-nav {
    display: block;
  }
}

/* ============================================
 * THEME TOGGLE
 * Same style as dashboard PrimaryMenu toggle
 * ============================================ */
.theme-toggle-nav {
  position: relative;
  padding: 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 0.5rem;
  transition: background 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
}

.theme-toggle-nav:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* ============================================
 * FOOTER
 * ============================================ */
.main-footer {
  padding: 4rem;
  color: var(--text-tertiary);
}

.main-footer nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2rem;
}

.main-footer--logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.main-footer--logo .logo {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.main-footer--logo .logo span {
  font-family: Poppins, sans-serif;
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.0275rem;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .main-footer {
    padding: 4rem 1.5rem;
  }

  .main-footer nav {
    gap: 1rem;
  }

  .main-footer--logo {
    margin-bottom: 1rem;
  }
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================
 * BLOG HOME
 * ============================================ */
.blog-hero {
  text-align: center;
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.blog-hero h1 {
    color: var(--text-primary);
    text-align: center;
    font-size: 4rem;
    font-style: normal;
    font-weight: 600;
    line-height: 4.625rem;
    letter-spacing: -0.08rem;
    margin-bottom: 1.5rem;
    margin-top: 0;
    padding: 0;
}

.blog-hero h3 {
    font-family: Manrope;
    text-align: center;
		color: var(--text-secondary);
		text-align: center;
		font-size: 1.375rem;
		font-style: normal;
		font-weight: 400;
		line-height: 1.75rem;
		letter-spacing: -0.01375rem;
		max-width: 43.125rem;
    margin: auto;
	}

@media (max-width: 768px) {
  .blog-hero h3 {
    color: var(--text-secondary);
    text-align: center;

    font-size: 1.03125rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.5rem;
    letter-spacing: -0.01031rem;
  }
}

	.blog-hero h2 {
		font-size: 1.8rem;
		font-style: normal;
		font-weight: 600;
		line-height: normal;
		letter-spacing: -0.02475rem;
		text-align: center;

		background: linear-gradient(222deg, #F1C276 -34.33%, #FF681C 155.51%);
		background-clip: text;
		-webkit-background-clip: text;
		-webkit-text-fill-color: transparent;
		margin: 0 auto 0.5rem auto;
	}

	@media (max-width: 768px) {
		.blog-hero h2 {
			font-family: Manrope;
			font-size: 0.95rem;
			font-style: normal;
			font-weight: 500;
			line-height: normal;
			letter-spacing: -0.0135rem;
		}
	}



/* ============================================
 * FEATURED ARTICLE
 * ============================================ */
 .featured-card {
    position: relative;
    overflow: hidden;
  }

 .featured-card:before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(202deg, #F1C276 5.09%, #C66433 72.35%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}


.featured-article {
  margin-bottom: 1rem;
}

.featured-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-accent);
  margin-bottom: 1rem;
}

.featured-meta time {
  color: var(--text-tertiary);
  letter-spacing: 0.1rem;
  font-family: monospace;
  text-transform: uppercase;
}

.featured-category a {
  color: var(--text-secondary);
  text-decoration: none;
}

.featured-title {
  margin: 0 0 1rem;
  font-size: 2.25rem;
  line-height: 1.2;
}

.featured-title a {
  color: var(--text-primary);
  text-decoration: none;
  margin: 0 3rem;
}

.featured-title a:hover {
  opacity: 0.85;
}

.featured-excerpt {
  color: var(--text-secondary);
  margin: 0 0 1.5rem;
  line-height: 1.7;
  font-size: 1.0625rem;
  max-width: 48rem;
}

.featured-read-more {
  border-radius: 2rem;
  border: 1px solid var(--border-subtle);
  padding: 0.375rem 1rem;
  color: var(--text-primary);
  margin-top: 1rem;
  display: inline-block;
  text-decoration: none;
  font-size: .8rem;
  font-weight: bold;
  transition: color 0.2s ease, background 0.2s ease;
}

.featured-read-more:hover {
  background: var(--text-primary);
  color: var(--page-bg);
}

@media (max-width: 768px) {
  .featured-content {
    padding: 1.5rem;
  }

  .featured-title {
    font-size: 1.5rem;
  }

  .featured-title a {
    margin: 0;
  }

  .featured-excerpt {
    font-size: 1rem;
  }
}

/* ============================================
 * POST LIST
 * ============================================ */
.post-list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;

  @media (max-width: 64rem) {
    grid-template-columns: 1fr 1fr;
  }

  @media (max-width: 42rem) {
    grid-template-columns: 1fr;
  }
}

a.post-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  text-align: center;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

a.post-card-link:hover .post-card {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-card-hover);
}

.post-card-thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 1;
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.post-card:hover .post-card-thumb img {
  transform: scale(1.04);
}

.post-card-content {
    padding: 1.5rem 1.8rem 2rem;
    display: grid;
    grid-template-rows: auto 1fr auto;
    flex: 1;

    & > * + * {
      border-top: 1px solid var(--border-subtle);
    }

    & > *:nth-child(1) {
      padding-bottom: 1rem;
    }

    & > *:nth-child(2) {
      padding: 1rem 0;
    }

}

header time {
  color: var(--text-tertiary);
  letter-spacing: .15rem;
  font-family: monospace;
  text-transform: uppercase;
}

.post-categories a,
.post-category a {
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: -0.02475rem;
    text-align: center;
    background: linear-gradient(222deg, #F1C276 -34.33%, #FF681C 155.51%);
    background-clip: text;
    -webkit-background-clip: text;
    text-decoration: underline;
    -webkit-text-fill-color: transparent;
}

.post-card .post-title,
.post-card .post-title a {
  text-decoration: none;
    font-size: 1.67rem;
}

.post-title {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  text-decoration: underline;
}

.post-title a {
  color: var(--text-primary);
  text-decoration: none;
}

.post-title a:hover {
  color: var(--text-accent);
}

.post-excerpt {
  color: var(--text-secondary);
  margin: 0 0 1rem;
  line-height: 1.7;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-accent);
  text-decoration: none;
  font-size: 0.9375rem;
}

.read-more:hover {
  color: var(--text-primary);
}

/* ============================================
 * SINGLE POST
 * ============================================ */
 .main-content:before {
    content: "";
    width: 21.875rem;
    height: 21.875rem;
    position: fixed;
    left: .4375rem;
    bottom: 4.3125rem;
    background: var(--color-primary, #FF791B);
    border-radius: 50%;
    filter: blur(312px);
    opacity: var(--glow-opacity, 1);
}

.main-content:after {
    content: "";
    width: 5.875rem;
    height: 5.875rem;
    position: fixed;
    right: .4375rem;
    bottom: 4.3125rem;
    background: var(--color-primary, #FF791B);
    border-radius: 50%;
    filter: blur(80px);
    opacity: var(--glow-opacity, 1);
}

.post {
  max-width: 48rem;
  margin: 0 auto;
}

.post-header {
  margin-bottom: 2rem;
  text-align: center;
}

.post-header .zeover-logo {
  margin-top: 2rem;
}

.post-header .post-title {
  margin: 0;
}

.post-subtitle {
  color: var(--text-secondary);
  margin: 1rem 0 0;
}

.post-featured-image {
  margin: 2rem 0;
}

.post-featured-image img {
  width: 100%;
  border-radius: 0.5rem;
}

/* Post content - article body */
article.post {
  background: var(--surface-card);
  padding: 3rem 1.5rem;

  @media (min-width: 64rem) {
    padding: 3rem 10rem;
  }

  border: 1px solid var(--border-default);
}

.post-content {
  color: var(--text-primary);
  font-size: 1.125rem;
  line-height: 1.8;
}

.post-content > * + * {
  margin-top: 1.5rem;
}

.post-content h2,
.post-content h3,
.post-content h4 {
  color: var(--text-primary);
  margin-top: 2.5rem;
}

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

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

.post-content a {
  color: var(--text-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-content a:hover {
  color: var(--text-primary);
}

.post-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.post-content blockquote {
  border-left: 3px solid var(--color-primary);
  padding-left: 1.5rem;
  margin-left: 0;
  color: var(--text-tertiary);
  font-style: italic;
}

.post-content ul,
.post-content ol {
  padding-left: 1.5rem;
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-content code {
  background: var(--surface-code);
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.9em;
}

.post-content pre {
  background: var(--surface-code);
  padding: 1.25rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  border: 1px solid var(--border-default);
}

.post-content pre code {
  background: none;
  padding: 0;
  font-size: 0.875rem;
  line-height: 1.6;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.post-content hr {
  border: none;
  height: 1px;
  background: var(--border-separator);
  margin: 3rem 0;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
}

.post-content th,
.post-content td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border-separator);
}

.post-content th {
  color: var(--text-primary);
  font-weight: 600;
}

/* Post footer */
.post-footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-separator);
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.post-tags span {
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--surface-hover);
  border-radius: 9999px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
}

.tag:hover {
  background: var(--surface-hover-strong);
  color: var(--text-primary);
}

/* Post navigation */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-separator);
}

.prev-post,
.next-post {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem;
  background: var(--surface-hover);
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background 0.2s ease;
}

.prev-post:hover,
.next-post:hover {
  background: var(--surface-hover-strong);
}

.next-post {
  text-align: right;
  grid-column: 2;
}

.nav-label {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.nav-title {
  color: var(--text-primary);
  font-weight: 500;
}

@media (max-width: 768px) {
  .post-header .post-title {
    font-size: 1.75rem;
  }

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

  .post-navigation {
    grid-template-columns: 1fr;
  }

  .next-post {
    text-align: left;
  }
}

/* ============================================
 * ARCHIVE PAGE
 * ============================================ */
.archive-page {
  max-width: 48rem;
  margin: 0 auto;
}

.archive-header {
  margin-bottom: 3rem;
}

.archive-header h1 {
  margin-bottom: 0.5rem;
}

.archive-count {
  color: var(--text-tertiary);
  font-size: 0.875rem;
  margin: 0;
}

.archive-year {
  font-size: 1.25rem;
  color: var(--text-accent);
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-separator);
}

.archive-posts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.archive-post {
  display: flex;
  gap: 1rem;
  padding: 0.75rem 0;
}

.archive-post time {
  flex-shrink: 0;
  width: 4rem;
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

.archive-post a {
  color: var(--text-primary);
  text-decoration: none;
}

.archive-post a:hover {
  color: var(--text-accent);
}

/* ============================================
 * PAGINATION
 * ============================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-separator);
}

.pagination-prev,
.pagination-next {
  color: var(--text-accent);
  text-decoration: none;
}

.pagination-prev:hover,
.pagination-next:hover {
  color: var(--text-primary);
}

.pagination-prev.disabled,
.pagination-next.disabled {
  color: var(--text-tertiary);
  pointer-events: none;
}

.pagination-info {
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

/* ============================================
 * PAGE
 * ============================================ */
.page {
  max-width: 48rem;
  margin: 0 auto;
}

.page-header {
  margin-bottom: 2rem;
}

.page-title {
  margin: 0;
}

/* ============================================
 * RELATED POSTS
 * ============================================ */
.related-posts {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-separator);
}

.related-posts h3 {
  margin: 0 0 1.5rem;
  font-size: 1.25rem;
  color: var(--text-primary);
}

.related-posts-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.related-post-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--surface-hover);
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background 0.2s ease;
}

.related-post-item:hover {
  background: var(--surface-hover-strong);
}

.related-thumb {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 0.25rem;
  flex-shrink: 0;
}

.related-post-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.related-post-title {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.related-post-info time {
  color: var(--text-tertiary);
  font-size: 0.75rem;
}

@media (max-width: 768px) {
  .related-posts-list {
    grid-template-columns: 1fr;
  }
}

/* ============================================
 * LIGHT THEME overrides
 * ============================================ */
.theme-light {
  --blog-readmore-gradient: linear-gradient(223deg, #B84E1E -49.41%, #D4621A 99.89%);
}

/* Visually hidden but accessible to screen readers and structured data */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Post date on cards */
.post-card .post-date {
  display: block;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 0.25rem;
}
