/**
 * DFlip Newspaper Automation Styles
 * Seamlessly matches existing DFlip Lite styles and website theme.
 */

/* Newspaper Date Badge on Card */
.df-popup-thumb .df-newspaper-date {
  display: block;
  font-size: 0.82em;
  color: #666;
  margin-top: 4px;
  line-height: 1.3;
  letter-spacing: 0.3px;
  text-align: center;
  transition: color 0.2s ease;
}

.df-popup-thumb:hover .df-newspaper-date {
  color: #25D366;
}

.df-newspaper-date-icon {
  display: inline-block;
  margin-right: 4px;
  vertical-align: -1px;
}

/* WhatsApp Button Container at Bottom of Section */
.dflip-whatsapp-container {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  margin: 40px auto 25px auto !important;
  clear: both !important;
  position: relative !important;
  z-index: 10 !important;
  text-align: center !important;
}

/* WhatsApp Redirect Button */
a.dflip-whatsapp-btn,
.dflip-whatsapp-container a.dflip-whatsapp-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  padding: 14px 36px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  color: #ffffff !important;
  background-color: #25D366 !important;
  border: none !important;
  border-radius: 50px !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4) !important;
  outline: none !important;
  text-decoration: none !important;
  user-select: none !important;
  font-family: inherit !important;
  margin: 0 auto !important;
}

a.dflip-whatsapp-btn:hover,
.dflip-whatsapp-container a.dflip-whatsapp-btn:hover {
  background-color: #1ebe5d !important;
  color: #ffffff !important;
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.55) !important;
  transform: translateY(-2px) !important;
}

a.dflip-whatsapp-btn:visited,
.dflip-whatsapp-container a.dflip-whatsapp-btn:visited {
  color: #ffffff !important;
}

a.dflip-whatsapp-btn:active,
.dflip-whatsapp-container a.dflip-whatsapp-btn:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3) !important;
}

/* WhatsApp SVG Icon */
.dflip-wa-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
}

.dflip-wa-icon svg {
  display: block !important;
  fill: #ffffff !important;
}

.dflip-wa-text {
  letter-spacing: 0.2px !important;
}

/* Fallback Client-side Thumbnail Canvas (hidden) */
.dflip-pdf-render-canvas {
  display: none !important;
  position: absolute;
  left: -9999px;
  top: -9999px;
}
