/* Press24 News Pro v5.0 — 8 New Pro Features CSS */

/* 1. News Emoji Reactions */
.p24-react-box {
  background: var(--p24-surface-alt);
  border: 1.5px solid var(--p24-border);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 22px 0 10px;
}
.p24-react-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 16px;
}
.p24-react-total { font-size: 14px; color: var(--p24-text-muted); }
.p24-react-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.p24-react-btn {
  background: var(--p24-surface);
  border: 1.5px solid var(--p24-border);
  border-radius: 10px;
  padding: 10px 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: var(--p24-font);
  color: var(--p24-text);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}
.p24-react-btn:hover { transform: translateY(-3px); border-color: var(--p24-primary); }
.p24-react-btn.active {
  background: rgba(5, 150, 105, 0.14);
  border-color: var(--p24-primary);
  box-shadow: 0 6px 14px rgba(5, 150, 105, 0.18);
}
.p24-react-emoji { font-size: 24px; line-height: 1; }
.p24-react-lbl { font-size: 13.5px; font-weight: 700; }
.p24-react-cnt {
  font-size: 13px;
  font-weight: 800;
  color: var(--p24-primary);
  background: var(--p24-surface-alt);
  padding: 1px 8px;
  border-radius: 99px;
}

/* 2. Key Takeaways Box */
.p24-takeaways-box {
  background: linear-gradient(135deg, rgba(5,150,105,0.08), rgba(14,165,233,0.05));
  border: 1.5px solid rgba(5, 150, 105, 0.28);
  border-left: 5px solid var(--p24-primary);
  border-radius: 12px;
  padding: 15px 18px;
  margin-bottom: 20px;
}
.p24-tk-head {
  font-size: 18px;
  font-weight: 800;
  color: var(--p24-primary);
  margin-bottom: 8px;
}
.p24-tk-list {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--p24-text);
}

/* 3. Bookmarks / Save News */
.p24-bm-nav-btn { position: relative; }
.p24-bm-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--p24-accent);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  display: none;
  align-items: center;
  justify-content: center;
}
.p24-bm-badge.has-items { display: inline-flex; }
.p24-bm-toggle.saved {
  background: var(--p24-primary) !important;
  color: #FFFFFF !important;
  border-color: var(--p24-primary) !important;
}
.p24-bm-list { display: flex; flex-direction: column; gap: 10px; }
.p24-bm-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--p24-border);
  border-radius: 10px;
  background: var(--p24-bg);
}
.p24-bm-item img { width: 68px; height: 48px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.p24-bm-item-body { flex: 1; min-width: 0; }
.p24-bm-item-body a { display: block; font-weight: 700; font-size: 15px; line-height: 1.35; }
.p24-bm-item-body small { color: var(--p24-text-muted); font-size: 12px; }
.p24-bm-rm {
  border: 0;
  background: rgba(220,38,38,0.12);
  color: #DC2626;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 800;
}

/* 5. Author / Reporter Profile Box */
.p24-author-box {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--p24-surface);
  border: 1.5px solid var(--p24-border);
  border-left: 5px solid var(--p24-primary);
  border-radius: 12px;
  padding: 18px 20px;
  margin-top: 22px;
  box-shadow: var(--p24-shadow);
}
.p24-author-avatar img {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--p24-primary);
}
.p24-author-info { flex: 1; }
.p24-author-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.p24-author-name { margin: 0 0 3px; font-size: 20px; }
.p24-author-meta { font-size: 13.5px; color: var(--p24-text-muted); display: flex; gap: 6px; flex-wrap: wrap; }
.p24-author-bio { margin: 10px 0; font-size: 15px; color: var(--p24-text-muted); line-height: 1.55; }
.p24-author-more { display: inline-block; font-size: 14.5px; font-weight: 700; color: var(--p24-primary); }

/* 6. Currency & Gold Widget */
.p24-cg-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 12px;
}
.p24-cg-tab {
  padding: 7px 8px;
  border-radius: 8px;
  border: 1px solid var(--p24-border);
  background: var(--p24-surface-alt);
  color: var(--p24-text-muted);
  font-family: var(--p24-font);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.p24-cg-tab.active {
  background: var(--p24-primary);
  color: #FFFFFF;
  border-color: var(--p24-primary);
}
.p24-cg-pane { display: none; flex-direction: column; gap: 6px; }
.p24-cg-pane.active { display: flex; }

/* 7. Auto-Expiring Red Breaking Flash Banner */
.p24-flash-bar {
  background: linear-gradient(90deg, #7F1D1D, #DC2626, #B91C1C);
  color: #FFFFFF;
  border-bottom: 2px solid #FDE047;
  padding: 9px 0;
  position: relative;
  z-index: 920;
}
.p24-flash-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.p24-flash-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.p24-flash-badge {
  background: #FDE047;
  color: #111827;
  font-size: 13px;
  font-weight: 900;
  padding: 3px 11px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.p24-flash-badge .p24-pulse { background: #DC2626; }
.p24-flash-text {
  font-size: 16px;
  font-weight: 800;
  color: #FFFFFF !important;
}
.p24-flash-close {
  background: rgba(255,255,255,0.18);
  color: #FFFFFF;
  border: 0;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

/* 8. E-Paper Header Button & Embed Page */
.p24-epaper-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--p24-accent);
  color: #FFFFFF !important;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}
.p24-epaper-nav-btn:hover { opacity: 0.9; }
.p24-epaper-fullpage {
  padding: 0 0 24px !important;
}
.p24-epaper-fluid {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}
.p24-epaper-shell {
  background: var(--p24-surface);
  border-top: 1px solid var(--p24-border);
  border-bottom: 1px solid var(--p24-border);
  width: 100%;
  overflow: hidden;
}
.p24-epaper-shell:fullscreen,
.p24-epaper-shell:-webkit-full-screen {
  background: #FFFFFF;
  overflow-y: auto;
  width: 100vw;
  height: 100vh;
}
.p24-epaper-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 18px;
  background: var(--p24-surface-alt);
  border-bottom: 1px solid var(--p24-border);
}
.p24-epaper-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
}
.p24-epaper-date {
  color: var(--p24-text-muted);
  font-size: 14px;
  font-weight: 600;
}
.p24-epaper-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.p24-ep-active {
  background: var(--p24-primary) !important;
  color: #FFFFFF !important;
  border-color: var(--p24-primary) !important;
}
.p24-ep-zval {
  min-width: 46px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--p24-text);
}
.p24-epaper-frame-wrap {
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #F1F5F9;
  min-height: 900px;
}
.p24-epaper-frame-wrap.is-scrollable {
  overflow: auto;
}
.p24-epaper-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  transform-origin: top left;
  background: #FFFFFF;
}

@media (max-width: 640px) {
  .p24-react-grid { grid-template-columns: repeat(3, 1fr); }
  .p24-author-box { flex-direction: column; align-items: center; text-align: center; }
  .p24-author-top { justify-content: center; }
  .p24-author-meta { justify-content: center; }
  .p24-epaper-nav-btn span { display: none; }
}
