/* Trigger Image & Tooltip */
.dupcap-marketing-trigger-wrapper {
  display: flex;
  justify-content: flex-end;
  position: relative;
  margin-bottom: 15px;
}

.dupcap-marketing-trigger {
  width: 40px;
  height: auto;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dupcap-marketing-trigger:hover {
  transform: scale(1.15);
}

.dupcap-classic-wrapper .dupcap-marketing-tooltip {
  right: 8px;
}

.dupcap-marketing-tooltip {
  visibility: hidden;
  background-color: #1e1e2f;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 8px 12px;
  position: absolute;
  z-index: 99999;
  top: 120%;
  right: -7px;
  width: 140px;
  opacity: 0;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  transform: translateY(-10px);
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

.dupcap-marketing-tooltip::after {
  content: "";
  position: absolute;
  bottom: 100%;
  right: 15px;
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent #1e1e2f transparent;
}

.dupcap-header-wrapper {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  margin-right: 8px !important;
  cursor: pointer !important;
  height: 36px !important;
}

/* Classic Editor Wrapper */
.dupcap-classic-wrapper {
  position: relative !important;
  display: inline-block !important;
  /* Ensure it sits nicely in toolbar */
}

.dupcap-marketing-trigger-wrapper:hover .dupcap-marketing-tooltip,
.dupcap-header-wrapper:hover .dupcap-marketing-tooltip,
.dupcap-classic-wrapper:hover .dupcap-marketing-tooltip,
.dupcap-marketing-trigger-wrapper.show-tooltip .dupcap-marketing-tooltip,
.dupcap-header-wrapper.show-tooltip .dupcap-marketing-tooltip,
.dupcap-classic-wrapper.show-tooltip .dupcap-marketing-tooltip {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

/* Modal Overlay */
.dupcap-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 100000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.dupcap-modal-overlay.active {
  display: flex !important;
  opacity: 1;
  visibility: visible;
}

/* Modal Content */
.dupcap-modal-content {
  background: #ffffff;
  width: 500px;
  max-width: 90%;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,
    Cantarell, "Helvetica Neue", sans-serif;
}

.dupcap-modal-overlay.active .dupcap-modal-content {
  transform: scale(1);
}

/* Header */
.dupcap-modal-header {
  background: #ffffff;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f0f0f1;
}

.dupcap-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dupcap-header-left .dashicons {
  color: #0073aa;
  /* WordPress Blue */
  font-size: 20px;
  width: 20px;
  height: 20px;
}

.dupcap-modal-header h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #1d2327;
}

.dupcap-modal-close {
  font-size: 20px;
  color: #a7aaad;
  cursor: pointer;
  transition: color 0.2s;
}

.dupcap-modal-close:hover {
  color: #d63638;
}

/* Modal Body */
.dupcap-modal-body {
  padding: 30px 40px;
  text-align: center;
}

/* Main Section */
.dupcap-main-section h2 {
  font-size: 24px;
  font-weight: 700;
  color: #1d2327;
  margin: 0 0 16px 0;
  line-height: 1.3;
}

.dupcap-main-section p {
  font-size: 15px;
  color: #646970;
  margin: 0 0 24px 0;
  line-height: 1.5;
}

/* Main Copy Button */
.dupcap-copy-button {
  width: 100%;
  padding: 10px 20px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  background: #0073aa !important;
  /* Strong Blue */
  color: #fff !important;
  border: none !important;
  border-radius: 6px !important;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s ease !important;
  height: auto !important;
  margin-bottom: 24px !important;
}

.dupcap-copy-button:hover {
  background: #005177 !important;
}

.dupcap-copy-button.dashicons {
  font-size: 23px;
  width: 20px;
  height: 20px;
  color: #fff;
}

.dupcap-copy-button.disabled,
.dupcap-copy-button.disabled.button {
  background: #c0c0c0 !important;
  border-color: #c0c0c0 !important;
  color: #ffffff !important;
  cursor: not-allowed !important;
}

.dupcap-copy-button.disabled:hover,
.dupcap-copy-button.disabled.button:hover {
  background: #c0c0c0 !important;
}

/* Marketing Card */
.dupcap-marketing-card {
  background: #f0f6fc;
  /* Very light blue */
  border: 1px solid #c5d9e2;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  margin-top: 20px;
}

.dupcap-marketing-card h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 700;
  color: #0073aa;
}

.dupcap-marketing-card p {
  margin: 0 0 20px 0;
  font-size: 14px;
  color: #50575e;
  line-height: 1.5;
}

.dupcap-marketing-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* Marketing Buttons */
.dupcap-marketing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  gap: 6px;
  flex: 1;
  white-space: nowrap;
  /* Make them equal width */
}

.dupcap-primary-btn {
  background: #0073aa;
  color: #fff !important;
  border: 1px solid #0073aa;
}

.dupcap-primary-btn:hover {
  background: #005177;
  border-color: #005177;
  color: #fff !important;
}

.dupcap-secondary-btn {
  background: #f6f7f7;
  color: #2c3338 !important;
  border: 1px solid #dcdcde;
}

.dupcap-secondary-btn:hover {
  background: #f0f0f1;
  border-color: #c3c4c7;
  color: #1d2327 !important;
}

.dupcap-marketing-btn .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
}

/* Footer Note */
.dupcap-modal-footer-note {
  background: #ffffff;
  border-top: 1px solid #f0f0f1;
  padding: 16px 24px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.dupcap-modal-footer-note .dashicons {
  color: #d63638;
  /* Warning color, maybe orange #dba617 if purely warning, red if danger */
  color: #dba617;
  font-size: 20px;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.dupcap-modal-footer-note p {
  margin: 0;
  font-size: 13px;
  color: #646970;
  font-style: italic;
  line-height: 1.5;
  text-align: left;
}

#dupcap-marketing-modal {
  display: none;
}

.dupcap-main-section .ducap-override-waring {
  color: #dc2626;
  font-weight: 500;
}
.dupcap-main-section .ducap-override-waring {
  color: #dc2626;
  font-weight: 500;
}
