
:root {
  --bg: #071a12;
  --card: #0d2a1e;
  --text: #e8eae6;
  --accent: #c9a84c;
  --accent2: #e0c068;
  --muted: #96a89a;
  --border: #1e3d2e;
  --tag-bg: rgba(201,168,76,0.12);
  --tag-text: #c9a84c;
  --hero-start: #071a12;
  --hero-end: #0a2e1c;
  --tip-bg: rgba(201,168,76,0.08);
  --tip-border: #c9a84c;
  --tip-text: #e0c068;
  --info-bg: rgba(30,120,80,0.1);
  --info-border: #2a7a4a;
  --bq-bg: rgba(30,120,80,0.08);
  --radius: 14px;
  --tag-radius: 8px;
  --max-w: 1140px;
  --glass: rgba(13,42,30,0.88);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Amiri', 'Traditional Arabic', serif;
  font-size: 18px;
  line-height: 2.0;
  color: var(--text);
  background: var(--bg);
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
}

/* Islamic geometric pattern overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z' fill='none' stroke='%23c9a84c' stroke-width='0.5'/%3E%3Cpath d='M30 10L50 30L30 50L10 30Z' fill='none' stroke='%23c9a84c' stroke-width='0.3'/%3E%3Ccircle cx='30' cy='30' r='8' fill='none' stroke='%23c9a84c' stroke-width='0.3'/%3E%3C/svg%3E");
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 9999;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent2); }

/* ===== HEADER ===== */
.site-header {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  font-family: 'Amiri', serif;
}
.site-header nav { display: flex; gap: 0.25rem; }
.site-header nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-family: 'Tajawal', system-ui, sans-serif;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: var(--tag-radius);
  transition: all 0.2s;
}
.site-header nav a:hover, .site-header nav a.active {
  color: var(--accent);
  background: var(--tag-bg);
  text-decoration: none;
}

/* ===== HERO — Islamic Dome + Arabesque ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #041008 0%, #071a12 30%, #0a2e1c 60%, #071a12 100%);
  color: #fff;
  text-align: center;
  padding: 6rem 1.5rem 5.5rem;
}
/* Arabesque pattern layer */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(2px 2px at 10% 15%, rgba(201,168,76,0.5), transparent),
    radial-gradient(1.5px 1.5px at 20% 45%, rgba(201,168,76,0.35), transparent),
    radial-gradient(2px 2px at 35% 75%, rgba(201,168,76,0.4), transparent),
    radial-gradient(1.5px 1.5px at 45% 25%, rgba(30,180,90,0.3), transparent),
    radial-gradient(2.5px 2.5px at 55% 65%, rgba(201,168,76,0.35), transparent),
    radial-gradient(1.5px 1.5px at 65% 10%, rgba(30,180,90,0.25), transparent),
    radial-gradient(1.5px 1.5px at 75% 50%, rgba(201,168,76,0.3), transparent),
    radial-gradient(2px 2px at 85% 80%, rgba(201,168,76,0.3), transparent),
    radial-gradient(1.5px 1.5px at 92% 30%, rgba(30,180,90,0.3), transparent),
    radial-gradient(1.5px 1.5px at 5% 60%, rgba(201,168,76,0.25), transparent),
    radial-gradient(2px 2px at 50% 90%, rgba(30,180,90,0.2), transparent);
  pointer-events: none;
  animation: twinkle 8s ease-in-out infinite alternate;
}
@keyframes twinkle { 0% { opacity: 0.5; } 100% { opacity: 1; } }

/* Central emerald glow */
.hero::after {
  content: '';
  position: absolute;
  top: 45%; left: 50%;
  width: 800px; height: 500px;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(ellipse, rgba(30,120,60,0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 40%, rgba(201,168,76,0.06) 0%, transparent 50%);
  pointer-events: none;
  filter: blur(40px);
}
.hero-inner { max-width: 720px; margin: 0 auto; position: relative; z-index: 1; }
.hero-icon {
  display: inline-block;
  margin-bottom: 1.2rem;
  opacity: 0.8;
  animation: moonFloat 6s ease-in-out infinite;
}
@keyframes moonFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(-3deg); }
}
.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  font-family: 'Amiri', serif;
  background: linear-gradient(135deg, #fff 20%, #c9a84c 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.2rem;
  opacity: 0.75;
  margin-bottom: 2rem;
  font-family: 'Tajawal', system-ui, sans-serif;
  font-weight: 400;
}
.hero-btn {
  display: inline-block;
  background: linear-gradient(135deg, #c9a84c, #e0c068);
  color: #071a12;
  padding: 0.9rem 2.4rem;
  border-radius: var(--tag-radius);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  transition: all 0.25s;
  font-family: 'Tajawal', system-ui, sans-serif;
  animation: btnGlow 3s ease-in-out infinite;
}
@keyframes btnGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(201,168,76,0.15); }
  50% { box-shadow: 0 0 40px rgba(201,168,76,0.35); }
}
.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,168,76,0.3);
  text-decoration: none;
  color: #071a12;
}

/* ===== CONTAINER ===== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}
.lead {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 2rem;
  font-family: 'Tajawal', system-ui, sans-serif;
}

/* ===== POST CARDS ===== */
.post-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1.5rem;
}
.post-card {
  position: relative;
  background: linear-gradient(165deg, rgba(13,42,30,0.9) 0%, rgba(7,26,18,0.95) 100%);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(30px);
}
.post-card.visible { opacity: 1; transform: translateY(0); }
.post-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(165deg, rgba(201,168,76,0.15) 0%, transparent 50%, rgba(30,120,60,0.08) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}
.post-card:hover {
  border-color: rgba(201,168,76,0.2);
  box-shadow:
    0 12px 40px rgba(0,0,0,0.4),
    0 0 60px rgba(30,120,60,0.06),
    inset 0 1px 0 rgba(255,255,255,0.05);
  transform: translateY(-4px);
}
.post-card:hover::before { opacity: 1; }
.post-card img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s;
  filter: brightness(0.85) saturate(0.9);
}
.post-card:hover img { transform: scale(1.04); filter: brightness(1) saturate(1); }
.post-card-body {
  padding: 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.post-card h2, .post-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  line-height: 1.5;
  font-weight: 700;
  font-family: 'Amiri', serif;
}
.post-card h2 a, .post-card h3 a { color: var(--text); }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--accent); text-decoration: none; }
.post-card p {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
  font-family: 'Tajawal', system-ui, sans-serif;
  line-height: 1.7;
  flex: 1;
}
.post-card .card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
  font-family: 'Tajawal', system-ui, sans-serif;
}
.post-card.featured-post {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.post-card.featured-post .post-card-body { padding: 2rem; }
.post-card.featured-post h2 { font-size: 1.5rem; font-weight: 700; }
.post-meta { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* ===== TAGS ===== */
.tag {
  display: inline-block;
  background: var(--tag-bg);
  color: var(--tag-text);
  padding: 0.25rem 0.7rem;
  border-radius: var(--tag-radius);
  font-size: 0.8rem;
  font-family: 'Tajawal', system-ui, sans-serif;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s;
  border: 1px solid transparent;
}
.tag:hover {
  background: var(--accent);
  color: #071a12;
  text-decoration: none;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(201,168,76,0.2);
}

/* ===== ARTICLE ===== */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-family: 'Tajawal', system-ui, sans-serif;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }

.article-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.article-header h1 {
  font-size: 2.3rem;
  line-height: 1.35;
  margin-bottom: 1rem;
  font-weight: 700;
  font-family: 'Amiri', serif;
  background: linear-gradient(135deg, var(--text) 60%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.article-meta {
  color: var(--muted);
  font-size: 0.88rem;
  font-family: 'Tajawal', system-ui, sans-serif;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.article-body {
  margin-bottom: 2.5rem;
  max-width: 780px;
}
.article-body h2 {
  font-size: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  color: var(--text);
  font-weight: 700;
  font-family: 'Amiri', serif;
  position: relative;
}
.article-body h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(270deg, var(--accent), transparent);
}
.article-body h3 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--accent);
  font-weight: 700;
  font-family: 'Amiri', serif;
}
.article-body p {
  margin-bottom: 1.2rem;
  font-family: 'Tajawal', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.95;
  color: var(--text);
}
.article-body strong { color: var(--accent2); font-weight: 600; }
.article-body ul, .article-body ol {
  margin: 1rem 0 1.5rem;
  padding-right: 1.5rem;
  padding-left: 0;
  font-family: 'Tajawal', system-ui, sans-serif;
  font-size: 1rem;
}
.article-body li {
  margin-bottom: 0.6rem;
  line-height: 1.8;
}
.article-body blockquote {
  background: linear-gradient(135deg, rgba(30,120,60,0.06) 0%, rgba(201,168,76,0.04) 100%);
  border-right: 3px solid var(--accent);
  border-left: none;
  padding: 1.4rem 1.8rem;
  margin: 2rem 0;
  font-style: italic;
  border-radius: var(--radius) 0 0 var(--radius);
  color: var(--muted);
  position: relative;
}
.article-body blockquote::before {
  content: '\FE41';
  position: absolute;
  top: -0.1em;
  right: 0.4em;
  font-size: 3rem;
  color: rgba(201,168,76,0.12);
  font-family: 'Amiri', serif;
  line-height: 1;
}
.article-body blockquote p { color: var(--muted); margin-bottom: 0; }
.article-body figure {
  margin: 2rem -1rem;
  text-align: center;
}
.article-body figure img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: transform 0.5s, filter 0.5s;
  filter: brightness(0.9);
}
.article-body figure img:hover { transform: scale(1.02); filter: brightness(1); }
.article-body figcaption {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.6rem;
  font-family: 'Tajawal', system-ui, sans-serif;
}

/* ===== FAQ ITEMS ===== */
.faq-item {
  background: linear-gradient(165deg, rgba(13,42,30,0.7) 0%, rgba(7,26,18,0.9) 100%);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius);
  padding: 1.3em 1.6em;
  margin-bottom: 0.75em;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  overflow: hidden;
}
.faq-item::before {
  content: '؟';
  position: absolute;
  top: -0.1em;
  left: 0.5em;
  font-size: 4rem;
  font-weight: 800;
  color: rgba(201,168,76,0.04);
  font-family: 'Amiri', serif;
  pointer-events: none;
}
.faq-item:hover {
  border-color: rgba(201,168,76,0.2);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transform: translateX(-4px);
}
.faq-item h3 {
  color: var(--accent);
  margin: 0 0 0.5em 0;
  font-size: 1.05em;
  border: none;
  padding: 0;
  font-weight: 700;
  font-family: 'Amiri', serif;
}
.faq-item p { margin: 0; font-family: 'Tajawal', system-ui, sans-serif; font-size: 0.95rem; }

/* ===== TIP / INFO BOXES ===== */
.tip {
  background: var(--tip-bg);
  border-right: 3px solid var(--tip-border);
  border-left: none;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: var(--radius) 0 0 var(--radius);
  color: var(--tip-text);
}
.info {
  background: var(--info-bg);
  border-right: 3px solid var(--info-border);
  border-left: none;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: var(--radius) 0 0 var(--radius);
}

/* ===== SHARE ===== */
.share-buttons {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 2.5rem 0;
  padding: 1.2rem 0;
  border-top: 1px solid var(--border);
  font-family: 'Tajawal', system-ui, sans-serif;
  font-size: 0.88rem;
}
.share-buttons span { color: var(--muted); }
.share-buttons a, .share-buttons button {
  padding: 0.45rem 1rem;
  border-radius: var(--tag-radius);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  font-size: 0.85rem;
  font-family: 'Tajawal', system-ui, sans-serif;
  transition: all 0.2s;
}
.share-buttons a:hover, .share-buttons button:hover {
  background: var(--accent);
  color: #071a12;
  border-color: var(--accent);
  text-decoration: none;
}

/* ===== AUTHOR BIO ===== */
.author-bio-box {
  display: flex;
  gap: 1.5rem;
  padding: 1.8rem;
  background: linear-gradient(165deg, rgba(13,42,30,0.7) 0%, rgba(7,26,18,0.9) 100%);
  border: 1px solid rgba(201,168,76,0.1);
  border-radius: var(--radius);
  margin: 2.5rem 0;
  position: relative;
  overflow: hidden;
}
.author-bio-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(30,120,60,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.author-avatar svg { border-radius: 50%; }
.author-info strong { color: var(--text); font-size: 1rem; font-family: 'Amiri', serif; }
.author-info p { color: var(--muted); font-size: 0.88rem; margin-top: 0.3rem; font-family: 'Tajawal', system-ui, sans-serif; }
.author-info a { font-size: 0.88rem; }

/* ===== RELATED POSTS ===== */
.related-posts { margin: 2.5rem 0; }
.related-posts h2 { font-size: 1.3rem; margin-bottom: 1rem; border: none; padding: 0; font-family: 'Amiri', serif; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }

/* ===== DICTIONARY ===== */
.letter-nav { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 2rem; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.letter-nav a { padding: 0.4rem 0.8rem; border-radius: var(--tag-radius); font-weight: 700; font-size: 0.95rem; font-family: 'Amiri', serif; transition: all 0.2s; }
.letter-nav a:hover { background: var(--tag-bg); text-decoration: none; transform: scale(1.15); }
.dictionary-list { list-style: none; padding: 0; }
.dictionary-list li { padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
.dictionary-list li:hover { background: rgba(30,120,60,0.04); }
.dictionary-list .muted { color: var(--muted); font-size: 0.85rem; }

/* ===== ABOUT PAGE ===== */
.about-header { text-align: center; margin-bottom: 2rem; }
.about-header h1 { margin-top: 1rem; }
.about-header .subtitle { color: var(--accent); font-style: italic; }
.about-bio, .about-credentials, .about-approach, .about-curiosities,
.about-stats, .about-contact, .about-disclaimer { margin-bottom: 2rem; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; text-align: center; }
.stat {
  padding: 1.5rem;
  background: linear-gradient(165deg, rgba(13,42,30,0.7) 0%, rgba(7,26,18,0.9) 100%);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.3s;
}
.stat:hover { border-color: rgba(201,168,76,0.2); box-shadow: 0 4px 20px rgba(0,0,0,0.2); transform: translateY(-2px); }
.stat-number {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #c9a84c, #e0c068);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'Amiri', serif;
}
.stat-label { font-size: 0.85rem; color: var(--muted); font-family: 'Tajawal', system-ui, sans-serif; }

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin: 2.5rem 0;
  font-family: 'Tajawal', system-ui, sans-serif;
}
.pagination a {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--tag-radius);
  color: var(--muted);
  font-size: 0.88rem;
  transition: all 0.25s;
}
.pagination a.active, .pagination a:hover {
  background: var(--accent);
  color: #071a12;
  border-color: var(--accent);
  text-decoration: none;
}

/* ===== FOOTER ===== */
.site-footer {
  background: linear-gradient(180deg, var(--card) 0%, #040e08 100%);
  color: var(--muted);
  padding: 3.5rem 0 1.5rem;
  margin-top: 4rem;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.site-footer h4 { color: var(--accent); margin-bottom: 1rem; font-size: 0.95rem; font-family: 'Amiri', serif; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.5rem; font-size: 0.9rem; }
.footer-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.footer-bottom {
  max-width: var(--max-w);
  margin: 2rem auto 0;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.6;
  font-family: 'Tajawal', system-ui, sans-serif;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text);
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  font-family: 'Tajawal', system-ui, sans-serif;
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}
.cookie-banner a { color: var(--accent); }
.cookie-banner button {
  background: var(--accent);
  color: #071a12;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: var(--tag-radius);
  cursor: pointer;
  font-weight: 700;
  font-family: 'Tajawal', system-ui, sans-serif;
  transition: all 0.2s;
}
.cookie-banner button:hover { box-shadow: 0 4px 15px rgba(201,168,76,0.3); }

/* ===== HERO PARTICLES ===== */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(201,168,76,0.4);
  animation: particleFloat linear infinite;
}
.particle:nth-child(1) { left: 10%; animation-duration: 14s; }
.particle:nth-child(2) { left: 30%; animation-duration: 18s; animation-delay: 2s; background: rgba(30,180,90,0.3); }
.particle:nth-child(3) { left: 50%; animation-duration: 12s; animation-delay: 4s; }
.particle:nth-child(4) { left: 70%; animation-duration: 20s; animation-delay: 1s; background: rgba(30,180,90,0.25); }
.particle:nth-child(5) { left: 85%; animation-duration: 16s; animation-delay: 3s; }
.particle:nth-child(6) { left: 15%; animation-duration: 22s; animation-delay: 5s; width: 4px; height: 4px; background: rgba(201,168,76,0.2); }
@keyframes particleFloat {
  0% { bottom: -10px; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { bottom: 110%; opacity: 0; transform: translateX(-40px); }
}

/* ===== HERO ENTRANCE ===== */
.hero-inner { animation: heroFadeIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
@keyframes heroFadeIn {
  0% { opacity: 0; transform: translateY(20px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== ARTICLE BODY ANIMATIONS ===== */
.article-body h2, .article-body h3, .article-body figure {
  opacity: 0; transform: translateY(15px);
  transition: opacity 0.5s, transform 0.5s;
}
.article-body h2.visible, .article-body h3.visible, .article-body figure.visible {
  opacity: 1; transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero { padding: 3.5rem 1.2rem 3rem; }
  .hero h1 { font-size: 2.2rem; }
  .post-cards-grid { grid-template-columns: 1fr; }
  .post-card.featured-post { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .author-bio-box { flex-direction: column; }
  .header-inner { flex-direction: column; gap: 0.5rem; }
  .site-header nav { gap: 0; }
  .article-body { max-width: 100%; }
  .article-body figure { margin: 1.5rem 0; }
  .container { padding: 1.5rem 1.2rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .site-logo { font-size: 1.2rem; }
  .site-header nav a { font-size: 0.82rem; padding: 0.3rem 0.5rem; }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

::selection { background: rgba(30,120,60,0.3); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}


