/* ========================= */
/* ARTICLE PAGE (PREMIUM + STICKY SHARE + READING TIME) */
/* ========================= */

:root{
  --brand: #65b215;
  --brand-2: #8fd13f;
  --text: #101010;
  --muted: #666;
  --muted-2: #999;
  --bg: #ffffff;
  --card: #ffffff;
  --border: #ececec;
  --shadow: 0 10px 28px rgba(0,0,0,0.08);
  --radius: 18px;
}

body{
  background: var(--bg);
  color: var(--text);
  padding-bottom: 100px; /* bottom nav + sticky bar space */
}

/* Back header */
.article-header{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  padding: 10px 0;
}

.back-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#111;
  text-decoration:none;
  font-weight:600;
  font-size:14px;
}

.back-link i{ font-size:16px; }

/* Layout container */
.article-wrap{
  max-width: 980px;
  margin: 0 auto;
}

.article-shell{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow:hidden;
}

/* Hero image */
.article-hero{
  width:100%;
  height: 360px;
  object-fit: cover;
  display:block;
}

@media (max-width: 768px){
  .article-hero{ height: 240px; }
}

/* Article body */
.article-body{
  padding: 18px 18px 22px;
}

@media (min-width: 768px){
  .article-body{ padding: 24px 26px 28px; }
}

/* Tag row */
.article-topline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom: 10px;
}

.article-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(101,178,21,0.12);
  color: var(--brand);
}

.article-title{
  font-family: 'The Seasons', serif;
  font-size: 34px;
  line-height: 1.15;
  margin: 10px 0 10px;
}

@media (max-width: 768px){
  .article-title{ font-size: 26px; }
}

.article-sub{
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 12px;
}

/* Meta row */
.article-meta{
  display:flex;
  align-items:center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted-2);
  margin-bottom: 16px;
}

.article-meta i{
  margin-right:6px;
  color: var(--muted-2);
}

/* Reading time pill */
.reading-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
  color: #333;
}

/* Author mini profile */
.author-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fbfbfb;
  margin: 10px 0 18px;
}

.author-left{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 240px;
}

.author-avatar{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(101,178,21,0.35);
}

.author-name{
  font-weight:800;
  font-size:14px;
  margin:0;
  line-height:1.2;
}

.author-role{
  font-size:12px;
  color: var(--muted-2);
  margin: 2px 0 0;
}

/* Share icons (inline) */
.share-row{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.share-btn{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.share-btn i{
  font-size: 16px;
  color:#333;
}

.share-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(101,178,21,0.45);
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}

.share-label{
  font-size: 12px;
  color: var(--muted-2);
  margin-right: 6px;
  font-weight: 800;
}

/* Content typography */
.article-content{
  font-size: 16px;
  line-height: 1.8;
  color: #1b1b1b;
}

.article-content h2{
  font-size: 20px;
  margin: 18px 0 8px;
  font-weight: 900;
}

.article-content h3{
  font-size: 17px;
  margin: 16px 0 8px;
  font-weight: 900;
}

.article-content p{
  margin: 0 0 14px;
  color: #2a2a2a;
}

.article-content ul{
  margin: 6px 0 14px 18px;
  color: #2a2a2a;
}

.article-content a{
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
}

.article-content a:hover{
  text-decoration: underline;
}

/* Premium floating quote */
.float-quote{
  position: relative;
  padding: 16px 16px 16px 18px;
  border-left: 4px solid var(--brand);
  background: linear-gradient(180deg, rgba(101,178,21,0.10), rgba(101,178,21,0.04));
  border-radius: 14px;
  margin: 18px 0;
  color: #1f2a18;
  font-style: italic;
}

.float-quote::before{
  content: "“";
  position:absolute;
  top:-18px;
  left: 10px;
  font-size: 44px;
  color: rgba(101,178,21,0.35);
  font-style: normal;
}

/* Divider */
.article-divider{
  height:1px;
  background: var(--border);
  margin: 18px 0;
}

/* Related articles */
.related-wrap{
  max-width: 980px;
  margin: 18px auto 0;
}

.related-title{
  font-family: 'The Seasons', serif;
  font-size: 22px;
  margin:0 0 10px;
}

.related-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 900px){
  .related-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px){
  .related-grid{ grid-template-columns: 1fr; }
}

.related-card{
  text-decoration:none;
  color: inherit;
  background:#fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow:hidden;
  box-shadow: 0 10px 22px rgba(0,0,0,0.06);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.related-card:hover{
  transform: translateY(-2px);
  border-color: rgba(101,178,21,0.35);
  box-shadow: 0 14px 26px rgba(0,0,0,0.08);
}

.related-img{
  width:100%;
  height: 140px;
  object-fit: cover;
  display:block;
}

.related-body{
  padding: 12px 12px 14px;
}

.related-pill{
  display:inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  background: rgba(101,178,21,0.12);
  color: var(--brand);
  margin-bottom: 8px;
}

.related-h{
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
  margin: 0 0 6px;
}

.related-meta{
  font-size: 12px;
  color: var(--muted-2);
}

/* Not found card */
.notfound{
  max-width: 980px;
  margin: 0 auto;
  background:#fff;
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.notfound .nf-hero{
  width:100%;
  height: 260px;
  object-fit: cover;
  display:block;
}
.notfound .nf-body{
  padding: 18px;
}
.notfound h2{
  font-family: 'The Seasons', serif;
  margin: 10px 0 8px;
}
.notfound p{
  color: var(--muted);
  margin: 0 0 8px;
}

/* ========================= */
/* STICKY SHARE BAR */
/* ========================= */

.sticky-share{
  position: sticky;
  top: 14px;
  z-index: 20;
  display:flex;
  align-items:center;
  justify-content:center;
  margin: 14px auto 0;
  max-width: 980px;
}

.sticky-share-inner{
  width: 100%;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  box-shadow: 0 14px 28px rgba(0,0,0,0.06);
  padding: 10px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  flex-wrap:wrap;
}

.sticky-left{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.sticky-mini{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background:#fff;
  font-size: 12px;
  font-weight: 900;
  color:#222;
}

.sticky-mini i{ color: var(--brand); }

.sticky-right{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.sticky-btn{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.sticky-btn i{
  font-size: 16px;
  color:#333;
}

.sticky-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(101,178,21,0.45);
  box-shadow: 0 10px 20px rgba(0,0,0,0.06);
}

/* Mobile: make sticky bar fixed above bottom nav */
@media (max-width: 768px){
  .sticky-share{
    position: fixed;
    top: auto;
    bottom: 78px; /* above bottom nav */
    left: 0;
    right: 0;
    padding: 0 14px;
    margin: 0;
  }

  .sticky-share-inner{
    padding: 10px 10px;
  }
}




/* Progress bar */
.progress-bar{
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  z-index: 9999;
  background: linear-gradient(90deg, #65b215, #8fd13f);
  box-shadow: 0 6px 18px rgba(101,178,21,0.25);
}

body{
  padding-top: 6px;
}