/* ===== ARTICLE PAGE SHARED CSS ===== */

.hidden { display: none !important; }

/* ── Articles Hero (listing page) ── */
.al-hero {
  padding: calc(var(--nav-h) + 64px) 0 48px;
  text-align: center;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.al-hero-title { font-size: clamp(32px,5vw,60px); font-weight:900; letter-spacing:-0.03em; margin-bottom:12px; }
.al-hero-sub { font-size:16px; color:var(--text-muted); max-width:500px; margin:0 auto; }

/* ── Filters Bar ── */
.al-filters-bar {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: var(--nav-h);
  z-index: 50;
  padding: 14px 0;
}
.al-filters-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.al-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  min-width: 220px;
  flex-shrink: 0;
  transition: border-color 0.2s;
}
.al-search-wrap:focus-within { border-color: rgba(224,90,26,0.4); }
.al-search-wrap svg { color: var(--text-muted); flex-shrink:0; }
.al-search-wrap input {
  background: none; border: none; outline: none; color: var(--text);
  font-size: 13px; font-family: inherit; width: 100%;
}
.al-search-wrap input::placeholder { color: var(--text-muted); }

.al-filter-chips { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.al-chip {
  padding: 6px 16px; border-radius: 999px; font-size: 12px; font-weight: 600;
  cursor: pointer; border: 1px solid var(--border); background: transparent;
  color: var(--text-muted); transition: all 0.2s; white-space: nowrap;
}
.al-chip.active, .al-chip:hover {
  background: rgba(224,90,26,0.1); border-color: rgba(224,90,26,0.4); color: #E05A1A;
}
.al-sort-select {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 12px; font-size: 12px; color: var(--text);
  font-family: inherit; cursor: pointer; outline: none; flex-shrink: 0;
  appearance: none;
}
.al-sort-select option { background: #0f0f0f; }

/* ── Articles Content ── */
.al-content { padding: 48px 0 100px; }
.al-results-info { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; }
.al-empty {
  text-align: center; padding: 80px 20px; color: var(--text-muted);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.al-empty p { font-size:16px; }

/* ── Article Cards (listing) ── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.article-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.article-card:hover {
  transform: translateY(-5px);
  border-color: rgba(224,90,26,0.3);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
.article-thumb-wrap { overflow: hidden; position: relative; }
.article-thumb {
  width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block;
  background: #111; transition: transform 0.4s ease;
}
.article-card:hover .article-thumb { transform: scale(1.04); }
.article-tag {
  position: absolute; top: 14px; left: 14px;
  background: rgba(224,90,26,0.92); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 20px;
}
.article-thumb-placeholder {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, rgba(224,90,26,0.1), rgba(224,90,26,0.03));
  display: flex; align-items: center; justify-content: center;
}
.article-thumb-placeholder svg { opacity: 0.2; }
.article-body { padding: 20px 20px 18px; display: flex; flex-direction: column; flex: 1; gap: 8px; }
.article-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-muted); }
.article-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-muted); flex-shrink: 0; }
.article-title { font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.4; flex: 1; }
.article-excerpt {
  font-size: 13px; color: var(--text-muted); line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--border);
}
.article-card-stats { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--text-muted); }
.article-card-stat { display: flex; align-items: center; gap: 4px; }
.article-read-more { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #E05A1A; transition: gap 0.2s; }
.article-card:hover .article-read-more { gap: 10px; }

/* ── Full-Page Article Reader ── */
.article-main { min-height: 100vh; padding-top: var(--nav-h); }
.art-loading { display: flex; align-items: center; justify-content: center; min-height: 60vh; }
.art-spinner {
  width: 44px; height: 44px; border: 3px solid rgba(255,255,255,0.1);
  border-top-color: #E05A1A; border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.art-notfound {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 60vh; gap: 16px; text-align: center; padding: 40px;
}
.art-notfound h2 { font-size: 28px; font-weight: 800; }
.art-notfound p { color: var(--text-muted); }
.art-notfound svg { color: rgba(255,255,255,0.15); }

.art-breadcrumb {
  display: flex; align-items: center; gap: 6px; padding: 20px 24px;
  font-size: 13px; color: var(--text-muted);
}
.art-breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.art-breadcrumb a:hover { color: #E05A1A; }

.art-hero {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 48px 0 40px;
}
.art-tag-row { margin-bottom: 16px; }
.art-tag {
  display: inline-block; background: rgba(224,90,26,0.15); border: 1px solid rgba(224,90,26,0.3);
  color: #E05A1A; font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 5px 14px; border-radius: 999px;
}
.art-title { font-size: clamp(28px,4.5vw,52px); font-weight: 900; line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 24px; }
.art-meta-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.art-author-chip { display: flex; align-items: center; gap: 12px; }
.art-author-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, #E05A1A, #B83D0F);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800; color: #fff; flex-shrink: 0;
}
.art-author-name { font-size: 14px; font-weight: 700; }
.art-publish-date { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.art-stats-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.art-stat-pill {
  display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted);
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 999px;
}

.art-cover-wrap {
  width: 100%; max-height: 480px; overflow: hidden; background: #111;
  display: flex; align-items: center; justify-content: center;
}
.art-cover { width: 100%; max-height: 480px; object-fit: cover; display: block; }

.art-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  padding-top: 48px;
  padding-bottom: 64px;
  align-items: start;
}

/* Article prose */
.art-content {
  font-size: 17px; line-height: 1.85; color: rgba(255,255,255,0.82);
  max-width: 700px;
}
.art-content h2 { font-size: clamp(20px,2.5vw,26px); font-weight: 800; margin: 36px 0 14px; color: #fff; letter-spacing: -0.02em; }
.art-content h3 { font-size: clamp(17px,2vw,21px); font-weight: 700; margin: 28px 0 12px; color: #fff; }
.art-content p { margin-bottom: 20px; }
.art-content ul, .art-content ol { padding-left: 28px; margin-bottom: 20px; }
.art-content li { margin-bottom: 8px; }
.art-content strong { color: #fff; font-weight: 700; }
.art-content blockquote {
  border-left: 3px solid #E05A1A; padding: 16px 20px; margin: 28px 0;
  background: rgba(224,90,26,0.06); border-radius: 0 8px 8px 0;
  font-style: italic; color: rgba(255,255,255,0.7);
}
.art-content img { width: 100%; border-radius: 12px; margin: 24px 0; }
.art-content a { color: #E05A1A; text-decoration: underline; }

/* Sidebar cards */
.art-sidebar { position: sticky; top: calc(var(--nav-h) + 20px); display: flex; flex-direction: column; gap: 16px; }
.art-reactions-card, .art-share-card, .art-related-card {
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  border-radius: 20px; padding: 22px;
}
.art-reactions-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 16px;
}
.art-reactions-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.react-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: 14px; padding: 12px 8px; cursor: pointer; transition: all 0.2s;
  width: 100%;
}
.react-btn:hover { background: rgba(224,90,26,0.1); border-color: rgba(224,90,26,0.3); transform: translateY(-2px); }
.react-btn.reacted { background: rgba(224,90,26,0.15); border-color: #E05A1A; box-shadow: 0 0 12px rgba(224,90,26,0.2); }
.react-icon { font-size: 22px; line-height: 1; }
.react-count { font-size: 13px; font-weight: 700; color: var(--text-muted); }
.react-btn.reacted .react-count { color: #E05A1A; }

/* Share grid */
.art-share-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.share-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 12px; font-weight: 600; padding: 9px 10px; border-radius: 10px;
  cursor: pointer; transition: all 0.2s; text-decoration: none; border: none;
  font-family: inherit;
}
.share-pill--copy {
  grid-column: 1 / -1;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: #fff;
  padding: 11px;
}
.share-pill--copy:hover { background: rgba(255,255,255,0.1); }
.share-pill--copy.copied { background: rgba(16,185,129,0.12); border-color: rgba(16,185,129,0.4); color: #10b981; }
.share-pill--wa { background: #25D366; color: #fff; }
.share-pill--wa:hover { background: #1ebe5d; color: #fff; transform: translateY(-2px); }
.share-pill--fb { background: #1877F2; color: #fff; }
.share-pill--fb:hover { background: #1464d8; color: #fff; transform: translateY(-2px); }
.share-pill--x { background: #000; border: 1px solid rgba(255,255,255,0.15); color: #fff; }
.share-pill--x:hover { background: #111; color: #fff; transform: translateY(-2px); }
.share-pill--ig { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: #fff; }
.share-pill--ig:hover { opacity: 0.9; color: #fff; transform: translateY(-2px); }
.share-pill--li { background: #0A66C2; color: #fff; }
.share-pill--li:hover { background: #0958a8; color: #fff; transform: translateY(-2px); }

.art-related-item {
  display: flex; flex-direction: column; gap: 4px; padding: 10px 0;
  border-bottom: 1px solid var(--border); cursor: pointer; text-decoration: none;
  transition: color 0.2s;
}
.art-related-item:last-child { border-bottom: none; }
.art-related-item:hover .art-related-title { color: #E05A1A; }
.art-related-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; color: #E05A1A; text-transform: uppercase; }
.art-related-title { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.4; }

/* Comments */
.art-comments-section {
  border-top: 1px solid var(--border); padding: 56px 0 80px; max-width: 760px;
}
.art-comments-title {
  display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; margin-bottom: 32px;
}
.art-comments-title span {
  background: #E05A1A; color: #fff; font-size: 12px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
}

.art-comment-form {
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px; margin-bottom: 40px; display: flex;
  flex-direction: column; gap: 14px;
}
.comment-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.art-comment-form input, .art-comment-form textarea {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 16px; font-size: 14px; color: var(--text);
  font-family: inherit; outline: none; transition: border-color 0.2s; width: 100%;
}
.art-comment-form input::placeholder, .art-comment-form textarea::placeholder { color: var(--text-muted); }
.art-comment-form input:focus, .art-comment-form textarea:focus { border-color: rgba(224,90,26,0.5); }
.art-comment-form textarea { resize: vertical; min-height: 100px; }
.comment-submit-btn { align-self: flex-start; }

.comment-item {
  display: flex; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--border);
  animation: fadeUp 0.4s ease;
}
.comment-item:last-child { border-bottom: none; }
@keyframes fadeUp { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
.comment-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #2a1008, #4a1a0e);
  border: 1px solid rgba(224,90,26,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; color: #E05A1A;
}
.comment-body { flex: 1; }
.comment-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.comment-name { font-size: 14px; font-weight: 700; }
.comment-date { font-size: 12px; color: var(--text-muted); }
.comment-text { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.75); }

/* Responsive */
@media (max-width: 1024px) {
  .art-layout { grid-template-columns: 1fr; }
  .art-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .art-reactions-card, .art-share-card, .art-related-card { flex: 1; min-width: 240px; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .al-filters-inner { flex-direction: column; align-items: stretch; }
  .al-filter-chips { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .al-chip { flex-shrink: 0; }
  .articles-grid { grid-template-columns: 1fr; gap: 16px; }
  .art-hero { padding: 32px 0 28px; }
  .art-title { font-size: clamp(24px, 7vw, 36px); }
  .comment-form-row { grid-template-columns: 1fr; }
  .art-meta-row { flex-direction: column; align-items: flex-start; }
  .art-content { font-size: 15px; }
}

/* ===== INSTAGRAM EMBED BLOCK ===== */
.bih-ig-embed { margin: 36px 0; }
.bih-ig-link {
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(135deg, rgba(240,148,51,0.08), rgba(188,24,136,0.08));
  border: 1px solid rgba(188,24,136,0.25); border-radius: 14px;
  padding: 18px 22px; text-decoration: none; color: #fff; transition: all 0.2s;
}
.bih-ig-link:hover { background: linear-gradient(135deg, rgba(240,148,51,0.15), rgba(188,24,136,0.15)); border-color: rgba(188,24,136,0.4); color: #fff; text-decoration: none; }
.bih-ig-link strong { display: block; font-size: 15px; font-weight: 700; color: #fff; }
.bih-ig-link small { display: block; color: rgba(255,255,255,0.55); font-size: 12px; margin-top: 4px; }

/* ===== ARTICLE IN-CONTENT CTA BUTTON ===== */
.bih-contact-wrap {
  text-align: center;
  margin: 40px 0;
}
.bih-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #E05A1A, #F07838);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 16px 36px;
  border-radius: 50px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(224,90,26,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.bih-contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(224,90,26,0.5);
}
.art-content .bih-contact-btn {
  color: #fff !important;
  text-decoration: none !important;
}

/* ===== ARTICLE VIDEO EMBED ===== */
.article-video-embed {
  margin: 36px 0;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #000;
}
.article-video-embed iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

/* ===== CONTACT POPUP MODAL ===== */
.contact-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeInOverlay 0.2s ease;
}
.contact-popup-overlay.hidden { display: none; }
@keyframes fadeInOverlay { from { opacity: 0; } to { opacity: 1; } }

.contact-popup {
  background: #111;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 40px 36px;
  width: 100%;
  max-width: 500px;
  position: relative;
  animation: slideUpPopup 0.3s ease;
}
@keyframes slideUpPopup { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

.contact-popup-close {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  transition: background 0.2s;
}
.contact-popup-close:hover { background: rgba(255,255,255,0.12); color: #fff; }

.cpop-icon { font-size: 32px; margin-bottom: 12px; }
.cpop-title { font-size: 24px; font-weight: 800; color: #fff; margin-bottom: 6px; letter-spacing: -0.02em; }
.cpop-sub { font-size: 14px; color: rgba(255,255,255,0.5); margin-bottom: 24px; line-height: 1.5; }

.cpop-form { display: flex; flex-direction: column; gap: 12px; }
.cpop-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cpop-form input,
.cpop-form select,
.cpop-form textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  color: #fff;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.cpop-form input::placeholder,
.cpop-form textarea::placeholder { color: rgba(255,255,255,0.35); }
.cpop-form input:focus,
.cpop-form select:focus,
.cpop-form textarea:focus { border-color: rgba(224,90,26,0.6); }
.cpop-form select { appearance: none; cursor: pointer; color: rgba(255,255,255,0.7); }
.cpop-form textarea { resize: vertical; min-height: 80px; }

.cpop-submit {
  background: linear-gradient(135deg, #E05A1A, #F07838);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  margin-top: 4px;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 4px 20px rgba(224,90,26,0.3);
}
.cpop-submit:hover { opacity: 0.9; transform: translateY(-1px); }

.cpop-success {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  color: #10b981;
  font-weight: 600;
}
.cpop-success.hidden { display: none; }

@media (max-width: 480px) {
  .contact-popup { padding: 28px 20px; }
  .cpop-row { grid-template-columns: 1fr; }
}
