/* Press24 News Pro v4.0 — Full Pro Suite CSS */

/* 1. Bangla TTS Audio Reader Bar */
.p24-tts-box {
  background: var(--p24-surface-alt);
  border: 1.5px solid var(--p24-border);
  border-left: 4px solid var(--p24-primary);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 18px;
}
.p24-tts-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.p24-tts-play-btn {
  background: var(--p24-primary);
  color: #FFFFFF;
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  font-family: var(--p24-font);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 6px 14px rgba(5, 150, 105, 0.25);
}
.p24-tts-play-btn:hover { opacity: 0.92; }
.p24-tts-mini-btn {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--p24-border);
  background: var(--p24-surface);
  color: var(--p24-text);
  font-weight: 800;
  cursor: pointer;
}
.p24-tts-wave {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
  opacity: 0.35;
}
.p24-tts-wave span {
  width: 3.5px;
  height: 6px;
  background: var(--p24-primary);
  border-radius: 3px;
}
.p24-tts-wave.playing { opacity: 1; }
.p24-tts-wave.playing span { animation: p24Wave 0.75s infinite ease-in-out; }
.p24-tts-wave.playing span:nth-child(2) { animation-delay: 0.15s; }
.p24-tts-wave.playing span:nth-child(3) { animation-delay: 0.3s; }
.p24-tts-wave.playing span:nth-child(4) { animation-delay: 0.45s; }
@keyframes p24Wave {
  0%, 100% { height: 5px; }
  50% { height: 18px; }
}
.p24-tts-status {
  font-size: 14px;
  font-weight: 700;
  color: var(--p24-text-muted);
  flex: 1;
  min-width: 140px;
}
.p24-tts-right {
  display: flex;
  align-items: center;
  gap: 6px;
}
.p24-tts-voice-switch {
  display: inline-flex;
  border: 1px solid var(--p24-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--p24-surface);
}
.p24-v-btn {
  border: 0;
  background: transparent;
  color: var(--p24-text-muted);
  padding: 5px 10px;
  font-family: var(--p24-font);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}
.p24-v-btn.active { background: var(--p24-primary); color: #FFFFFF; }
.p24-tts-progress-track {
  width: 100%;
  height: 5px;
  background: rgba(148, 163, 184, 0.25);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 10px;
}
.p24-tts-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--p24-primary), #10B981);
  transition: width 0.25s linear;
}

/* 2. Live TV Breaking Bar */
.p24-livetv-bar {
  background: linear-gradient(90deg, #991B1B, #DC2626, #991B1B);
  color: #FFFFFF;
  padding: 8px 0;
}
.p24-livetv-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.p24-livetv-left { display: flex; align-items: center; gap: 10px; }
.p24-live-badge {
  background: #FFFFFF;
  color: #DC2626;
  font-size: 12px;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.p24-live-badge .p24-pulse { background: #DC2626; }
.p24-livetv-title { font-size: 15.5px; font-weight: 700; }
.p24-livetv-btn {
  background: #FDE047;
  color: #111827;
  border: 0;
  border-radius: 8px;
  padding: 6px 14px;
  font-family: var(--p24-font);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

/* 3. Online Live Poll */
.p24-poll-q { margin: 0 0 12px; font-size: 16px; font-weight: 700; line-height: 1.45; }
.p24-poll-options { display: flex; flex-direction: column; gap: 8px; }
.p24-poll-opt {
  position: relative;
  overflow: hidden;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1.5px solid var(--p24-border);
  background: var(--p24-bg);
  color: var(--p24-text);
  font-family: var(--p24-font);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}
.p24-poll-opt:hover { border-color: var(--p24-primary); }
.p24-poll-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: rgba(5, 150, 105, 0.18);
  transition: width 0.35s ease;
  z-index: 0;
}
.p24-poll-text, .p24-poll-pct { position: relative; z-index: 1; }
.p24-poll-foot {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--p24-text-muted);
}

/* 4. Prayer Times & Weather Widget */
.p24-pw-weather {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(5,150,105,0.12), rgba(14,165,233,0.10));
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
}
.p24-pw-temp { font-size: 22px; font-weight: 800; color: var(--p24-primary); }
.p24-pw-prayers { display: flex; flex-direction: column; gap: 6px; }
.p24-pw-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--p24-surface-alt);
  font-size: 15px;
}

/* 5. Date Archive Calendar */
.p24-arch-date {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1.5px solid var(--p24-border);
  background: var(--p24-bg);
  color: var(--p24-text);
  font-size: 15px;
  font-weight: 700;
}

/* 6. Frontend News Submission Form */
.p24-submit-wrap {
  background: var(--p24-surface);
  border: 1px solid var(--p24-border);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--p24-shadow);
}
.p24-submit-form { display: flex; flex-direction: column; gap: 14px; }
.p24-sf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.p24-submit-form label { display: block; font-weight: 700; margin-bottom: 5px; font-size: 15px; }
.p24-submit-form input[type="text"],
.p24-submit-form select,
.p24-submit-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1.5px solid var(--p24-border);
  background: var(--p24-bg);
  color: var(--p24-text);
  font-family: var(--p24-font);
  font-size: 15.5px;
}
.p24-form-msg { padding: 12px 14px; border-radius: 8px; margin-bottom: 14px; font-weight: 700; }
.p24-form-msg.ok { background: #DCFCE7; color: #166534; border: 1px solid #86EFAC; }
.p24-form-msg.err { background: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5; }

/* 7. Full-Screen Photo Lightbox */
.p24-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.94);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.p24-lightbox.open { display: flex; }
.p24-lb-stage { max-width: 90vw; max-height: 88vh; text-align: center; }
.p24-lb-stage img { max-width: 100%; max-height: 76vh; margin: 0 auto; border-radius: 8px; }
.p24-lb-cap { color: #F8FAFC; font-size: 17px; font-weight: 700; margin-top: 12px; }
.p24-lb-counter { color: #94A3B8; font-size: 13.5px; margin-top: 4px; }
.p24-lb-close, .p24-lb-nav {
  position: fixed;
  background: rgba(255,255,255,0.14);
  color: #FFFFFF;
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 26px;
  cursor: pointer;
}
.p24-lb-close { top: 18px; right: 20px; }
.p24-lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.p24-lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

@media (max-width: 640px) {
  .p24-sf-grid { grid-template-columns: 1fr; }
}


/* 8. Floating Bottom Reading & Audio Bar (Visible ONLY from Start to End of Single News) */
.p24-float-bar {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translate(-50%, 120px);
  opacity: 0;
  pointer-events: none;
  z-index: 9500;
  width: calc(100% - 24px);
  max-width: 650px;
  background: rgba(15, 23, 42, 0.94);
  color: #FFFFFF;
  border: 1.5px solid rgba(52, 211, 153, 0.45);
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease;
}
.p24-float-bar.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}
.p24-float-read-track {
  width: 100%;
  height: 3.5px;
  background: rgba(255, 255, 255, 0.14);
}
.p24-float-read-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #10B981, #FDE047);
  transition: width 0.12s linear;
}
.p24-float-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 14px;
}
.p24-float-audio-grp,
.p24-float-font-grp {
  display: flex;
  align-items: center;
  gap: 7px;
}
.p24-float-play-btn {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #FFFFFF;
  border: 0;
  border-radius: 999px;
  padding: 7px 15px;
  font-family: var(--p24-font);
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}
.p24-float-play-btn:hover { opacity: 0.92; }
.p24-float-btn {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 5px 10px;
  font-family: var(--p24-font);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
}
.p24-float-btn:hover {
  background: var(--p24-primary);
  border-color: var(--p24-primary);
}
.p24-float-vswitch {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  overflow: hidden;
}
.p24-fv-btn {
  border: 0;
  background: transparent;
  color: #CBD5E1;
  padding: 5px 9px;
  font-family: var(--p24-font);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.p24-fv-btn.active {
  background: #10B981;
  color: #FFFFFF;
}
.p24-float-flbl {
  font-size: 13.5px;
  color: #94A3B8;
  font-weight: 700;
}
.p24-float-wave span { background: #34D399; }

/* Lift Back-to-Top button above floating bar when visible */
.p24-back-top.p24-lifted { bottom: 84px; }

@media (max-width: 560px) {
  .p24-float-bar { bottom: 10px; width: calc(100% - 16px); border-radius: 14px; }
  .p24-float-inner { padding: 8px 10px; gap: 6px; }
  .p24-float-flbl, .p24-float-wave, .p24-float-fval { display: none; }
  .p24-float-play-btn { padding: 6px 11px; font-size: 13.5px; }
  .p24-float-btn { padding: 5px 8px; min-width: 30px; font-size: 13px; }
  .p24-fv-btn { padding: 4px 7px; font-size: 12px; }
}
@media print {
  .p24-float-bar { display: none !important; }
}
