/* ==========================================================================
   article.css — Shared Premium Article Styles — Alimentos Hami
   ========================================================================== */

/* ── Hero ── */
.article-hero {
  position: relative;
  padding: 140px 5% 80px;
  background: linear-gradient(135deg, #0d1117 0%, #1a1f2e 60%, #0f1923 100%);
  text-align: center;
  overflow: hidden;
}

.article-hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(255,122,0,0.14) 0%, transparent 70%);
  pointer-events: none;
}
.article-hero::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(0,82,161,0.14) 0%, transparent 70%);
  pointer-events: none;
}

.article-category {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #FF7A00;
  background: rgba(255,122,0,0.15);
  border: 1px solid rgba(255,122,0,0.40);
  border-radius: 999px;
  padding: 0.3rem 1rem;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.article-hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.15;
  position: relative;
  z-index: 1;
}

.article-hero .article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.article-hero .article-meta span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.50);
  font-weight: 500;
}

.article-hero .article-meta span strong {
  color: rgba(255,255,255,0.80);
}

/* ── Article Layout ── */
.article-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 5%;
}

/* Featured image */
.article-content > img,
.article-content .featured-img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  margin-bottom: 2.5rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  display: block;
}

/* ── Body Typography ── */
.post-body {
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--text-muted);
}

.post-body > p:first-of-type::first-letter {
  font-size: 3.8rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: #FF7A00;
  float: left;
  line-height: 0.85;
  margin-right: 0.5rem;
  margin-bottom: -0.2rem;
}

.post-body p {
  margin-bottom: 1.5rem;
}

.post-body h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--text-main);
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 4px solid #FF7A00;
  line-height: 1.2;
}

.post-body h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.post-body strong { color: var(--text-main); }

.post-body ul, .post-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.post-body li {
  margin-bottom: 0.6rem;
  color: var(--text-muted);
}

.post-body img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 2rem 0;
  box-shadow: 0 12px 36px rgba(0,0,0,0.12);
  display: block;
}

.post-body blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid #FF7A00;
  background: rgba(255,122,0,0.06);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--text-main);
}

/* ── Social Share ── */
.social-share {
  margin-top: 4rem;
  padding: 2.5rem;
  border-radius: 20px;
  background: linear-gradient(135deg, #0d1117, #1a1f2e);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.social-share::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #FF7A00, #0052A1);
}

.social-share h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.4rem;
}

.social-share > p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.75rem;
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  color: #fff !important;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.25s ease,
              filter 0.25s ease;
  position: relative;
  overflow: hidden;
}

.share-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.2s ease;
}

.share-btn:hover::after { background: rgba(255,255,255,0.08); }

.share-btn:hover {
  transform: translateY(-3px) scale(1.04);
}

/* Facebook */
.btn-fb {
  background: linear-gradient(135deg, #1877F2, #0d5bbf);
  box-shadow: 0 6px 20px rgba(24,119,242,0.35);
}
.btn-fb:hover { box-shadow: 0 10px 28px rgba(24,119,242,0.50); }

/* WhatsApp */
.btn-wa {
  background: linear-gradient(135deg, #25D366, #128C7E);
  box-shadow: 0 6px 20px rgba(37,211,102,0.35);
}
.btn-wa:hover { box-shadow: 0 10px 28px rgba(37,211,102,0.50); }

/* Instagram */
.btn-ig {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  box-shadow: 0 6px 20px rgba(220,39,67,0.35);
}
.btn-ig:hover { box-shadow: 0 10px 28px rgba(220,39,67,0.50); }

.share-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── Back Link ── */
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #FF7A00;
  text-decoration: none;
  margin-bottom: 2.5rem;
  transition: gap 0.2s ease;
}
.article-back:hover { gap: 0.7rem; }

/* ── Article Reader Modal (Index.html) ── */
.article-reader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  padding: 5vh 1rem 2rem 1rem;
}

.article-reader-overlay.active {
  opacity: 1;
  visibility: visible;
}

.article-reader-content {
  background: var(--surface);
  width: 100%;
  max-width: 900px;
  border-radius: 20px;
  position: relative;
  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
  transform: translateY(30px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.article-reader-overlay.active .article-reader-content {
  transform: translateY(0);
}

.close-article-btn {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: rgba(0,0,0,0.05);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-primary);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s, transform 0.2s;
}

.close-article-btn:hover {
  background: rgba(0,0,0,0.1);
  transform: scale(1.05);
}

.article-reader-scroll {
  overflow-y: auto;
  padding: 1rem 0;
}

/* Modifiers for inline modal reading */
.article-reader-scroll .article-content {
  padding-top: 2rem;
  padding-bottom: 2rem;
  margin: 0 auto;
}
.article-reader-scroll .article-back {
  display: none; /* Hide back link in modal */
}
