/* =========================================================
   SINGLE POST — Luxury (Optimized)
========================================================= */

.single-post{
  padding: clamp(44px, 6vw, 72px) 0;
}

.post-article{
  max-width: 980px;
  margin-inline: auto;
  padding-inline: 16px; /* مهم للموبايل */
}

/* Featured image */
.post-thumbnail{
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  margin-bottom: 26px;
}

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

/* Header */
.post-header{
  margin-bottom: 18px;
}

.post-title{
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 900;
  letter-spacing: -.03em;
  margin-bottom: 10px;
  line-height: 1.12;
}

.post-meta{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: .95rem;
}

/* Content typography */
.post-content{
  font-size: 1.06rem;
  line-height: 1.85;
  color: var(--text-secondary);
}

/* Strong readable headings inside content */
.post-content h2{
  font-size: clamp(1.5rem, 2.8vw, 2.05rem);
  margin: 2.2rem 0 1rem;
  letter-spacing: -.02em;
  line-height: 1.22;
  color: rgba(255,255,255,.92);
}

.post-content h3{
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  margin: 1.7rem 0 .8rem;
  line-height: 1.25;
  color: rgba(255,255,255,.90);
}

.post-content p{
  margin: 0 0 1.05rem;
}

/* Lists */
.post-content ul,
.post-content ol{
  margin: 0 0 1.1rem;
  padding-left: 1.2rem;
}

.post-content li{
  margin: .35rem 0;
}

/* Links (SEO/UX: readable + focus) */
.post-content a{
  color: rgba(14,165,233,.95);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: opacity .2s ease;
}

@media (hover:hover) and (pointer:fine){
  .post-content a:hover{ opacity: .85; }
}

.post-content a:focus-visible{
  outline: 2px solid rgba(14,165,233,.75);
  outline-offset: 3px;
  border-radius: 8px;
}

/* Images inside content */
.post-content img,
.post-content video{
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

.post-content figure{
  margin: 1.4rem 0;
}

.post-content figcaption{
  margin-top: .55rem;
  font-size: .95rem;
  color: var(--text-muted);
}

/* Blockquote */
.post-content blockquote{
  margin: 1.5rem 0;
  padding: 1rem 1.1rem;
  border-left: 3px solid rgba(139,92,246,.7);
  background: rgba(255,255,255,.03);
  border-radius: 14px;
  color: rgba(255,255,255,.85);
}

/* Tables (if any) */
.post-content table{
  width: 100%;
  border-collapse: collapse;
  margin: 1.4rem 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--border-color);
}

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

.post-content th{
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.03);
}

/* Footer */
.post-footer{
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--border-color);
}

/* Post Navigation */
.post-navigation{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.post-navigation .nav-previous,
.post-navigation .nav-next{
  padding: 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  min-height: 64px; /* touch target */
}

@media (hover:hover) and (pointer:fine){
  .post-navigation .nav-previous:hover,
  .post-navigation .nav-next:hover{
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
    border-color: rgba(245,158,11,.30);
  }
}

.post-navigation .nav-next{ text-align:right; }

.nav-subtitle{
  display:block;
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.nav-title{
  font-weight: 800;
  color: rgba(255,255,255,.92);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .post-navigation .nav-previous,
  .post-navigation .nav-next{
    transition: none !important;
  }
}

/* Mobile */
@media(max-width:768px){
  .post-navigation{ grid-template-columns: 1fr; }
  .post-article{ padding-inline: 14px; }
  .post-title{ line-height: 1.14; }
}