/* === YARBO COUPON REVEAL WIDGET === */
/* File: css/yarbo-coupon.css */
/* Loaded conditionally on the Yarbo product page via shortcode */

.yarbo-reveal-wrap {
  max-width: 680px;
  margin: 32px auto 40px;
  font-family: 'DM Sans', -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.yarbo-reveal-box {
  position: relative;
  background: linear-gradient(145deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  box-shadow:
    0 4px 6px rgba(0,0,0,0.12),
    0 12px 28px rgba(15,52,96,0.28),
    0 0 0 1px rgba(255,255,255,0.06) inset,
    0 -2px 12px rgba(228,175,53,0.08) inset;
}

.yarbo-reveal-box::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, #e4af35, #f0c75e, #e4af35);
}

.yarbo-reveal-box.expired::before {
  background: linear-gradient(90deg, #666, #888, #666);
}

.yarbo-reveal-inner {
  padding: 28px 32px 32px;
}

/* header */
.yarbo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  flex-wrap: wrap;
  gap: 8px;
}

.yarbo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(228,175,53,0.12);
  border: 1px solid rgba(228,175,53,0.25);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f0c75e;
}

.yarbo-badge svg {
  width: 14px;
  height: 14px;
  fill: #f0c75e;
  flex-shrink: 0;
}

.yarbo-badge.expired-badge {
  background: rgba(255,80,80,0.12);
  border-color: rgba(255,80,80,0.3);
  color: #ff8a8a;
}

.yarbo-badge.expired-badge svg {
  fill: #ff8a8a;
}

/* title */
.yarbo-title {
  font-family: 'Source Serif 4', Georgia, serif !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin: 14px 0 6px !important;
  line-height: 1.2 !important;
  padding: 0 !important;
  border: none !important;
}

.yarbo-title span {
  color: #f0c75e;
}

.yarbo-subtitle {
  font-size: 14px !important;
  color: rgba(255,255,255,0.55) !important;
  margin: 0 0 20px 0 !important;
  line-height: 1.5 !important;
}

.yarbo-subtitle strong {
  color: rgba(255,255,255,0.8);
  font-weight: 600;
}

/* === TIMELINE === */
.yarbo-timeline {
  background: rgba(0,0,0,0.25);
  border-radius: 10px;
  padding: 16px 20px 18px;
  margin-bottom: 22px;
}

.yarbo-timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 6px;
}

.yarbo-timeline-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.yarbo-timeline-status.live {
  color: #4ade80;
}

.yarbo-timeline-status.live .yarbo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  animation: yarbo-blink 1.6s ease-in-out infinite;
}

@keyframes yarbo-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.yarbo-timeline-status.upcoming {
  color: #7cc4fa;
}

.yarbo-timeline-status.ended {
  color: #ff8a8a;
}

.yarbo-timeline-countdown {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
}

.yarbo-timeline-countdown strong {
  color: #f0c75e;
  font-weight: 700;
}

.yarbo-track {
  position: relative;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 100px;
  margin-bottom: 10px;
  overflow: hidden;
}

.yarbo-track-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, #e4af35, #f0c75e);
  transition: width 0.6s ease;
}

.yarbo-track-fill.ended {
  background: linear-gradient(90deg, #666, #888);
}

.yarbo-dates {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.yarbo-date-point {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
  line-height: 1.4;
}

.yarbo-date-point.active {
  color: rgba(255,255,255,0.7);
}

.yarbo-date-point strong {
  display: block;
  font-weight: 600;
}

/* === EXPIRED NOTICE === */
.yarbo-expired-notice {
  background: rgba(255,80,80,0.08);
  border: 1px solid rgba(255,80,80,0.2);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 16px;
  display: none;
}

.yarbo-expired-notice p {
  margin: 0 !important;
  font-size: 14px !important;
  color: rgba(255,255,255,0.6) !important;
  line-height: 1.5 !important;
}

.yarbo-expired-notice strong {
  color: #ff8a8a;
}

/* === REVEAL ZONE === */
.yarbo-reveal-zone {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  min-height: 88px;
  transition: transform 0.2s ease;
}

.yarbo-reveal-zone:hover {
  transform: scale(1.01);
}

.yarbo-reveal-zone:active {
  transform: scale(0.99);
}

/* cover */
.yarbo-cover {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -55deg,
    rgba(228,175,53,0.08),
    rgba(228,175,53,0.08) 12px,
    rgba(228,175,53,0.04) 12px,
    rgba(228,175,53,0.04) 24px
  );
  border: 2px dashed rgba(228,175,53,0.35);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 2;
  transition: opacity 0.5s ease, transform 0.5s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 12px;
}

.yarbo-cover-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.yarbo-cover-text {
  font-size: 15px;
  font-weight: 600;
  color: #f0c75e;
  letter-spacing: 0.02em;
}

.yarbo-cover svg {
  width: 22px;
  height: 22px;
  fill: #f0c75e;
  animation: yarbo-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes yarbo-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

.yarbo-cover-hint {
  font-size: 11.5px;
  color: rgba(255,255,255,0.3);
  text-align: center;
  line-height: 1.4;
  max-width: 480px;
}

.yarbo-cover.revealed {
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;
}

/* code layer */
.yarbo-code-layer {
  background: rgba(0,0,0,0.35);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.yarbo-code-display {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.yarbo-code-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.35);
}

.yarbo-code-value {
  font-family: 'DM Sans', monospace;
  font-size: 28px;
  font-weight: 700;
  color: #f0c75e;
  letter-spacing: 0.06em;
  user-select: all;
}

.yarbo-code-value.struck {
  text-decoration: line-through;
  color: rgba(255,255,255,0.25);
}

.yarbo-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e4af35;
  color: #1a1a2e;
  border: none;
  border-radius: 8px;
  padding: 12px 22px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  line-height: 1.4;
}

.yarbo-copy-btn:hover {
  background: #f0c75e;
  box-shadow: 0 4px 16px rgba(228,175,53,0.35);
}

.yarbo-copy-btn svg {
  width: 16px;
  height: 16px;
  fill: #1a1a2e;
  flex-shrink: 0;
}

.yarbo-copy-btn.copied {
  background: #4ade80;
  color: #064e3b;
}

.yarbo-copy-btn.copied svg {
  fill: #064e3b;
}

/* === LAUNCH COUNTDOWN === */
.yarbo-launch-bar {
  margin-top: 16px;
  background: rgba(74,222,128,0.06);
  border: 1px solid rgba(74,222,128,0.18);
  border-radius: 10px;
  padding: 14px 18px;
  display: none;
  animation: yarbo-fadeSlideIn 0.35s ease;
}

@keyframes yarbo-fadeSlideIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.yarbo-launch-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.yarbo-launch-msg {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
}

.yarbo-launch-msg strong {
  color: #4ade80;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.yarbo-launch-cancel {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  padding: 5px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.yarbo-launch-cancel:hover {
  border-color: rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.85);
}

.yarbo-launch-track {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 100px;
  overflow: hidden;
}

.yarbo-launch-fill {
  height: 100%;
  width: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, #4ade80, #22c55e);
  transform-origin: left;
  transition: transform 0.15s linear;
}

/* === SHOP BUTTON === */
.yarbo-shop-row {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.yarbo-shop-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #e4af35 0%, #d4991e 100%);
  color: #1a1a2e !important;
  text-decoration: none !important;
  border: none;
  border-radius: 10px;
  padding: 14px 28px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(228,175,53,0.3);
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: all 0.4s ease;
  line-height: 1.4;
}

.yarbo-shop-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.yarbo-shop-btn:hover {
  background: linear-gradient(135deg, #f0c75e 0%, #e4af35 100%);
  box-shadow: 0 6px 24px rgba(228,175,53,0.4);
  transform: translateY(-1px);
  color: #1a1a2e !important;
  text-decoration: none !important;
}

.yarbo-shop-btn svg {
  width: 16px;
  height: 16px;
  fill: #1a1a2e;
  flex-shrink: 0;
}

.yarbo-shop-hint {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  opacity: 0;
  transition: opacity 0.4s ease 0.2s;
}

.yarbo-shop-hint.visible {
  opacity: 1;
}

/* === SHARE ROW === */
.yarbo-share-row {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.yarbo-share-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-right: 4px;
}

.yarbo-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 8px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.7) !important;
  cursor: pointer;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.yarbo-share-btn:hover {
  background: rgba(255,255,255,0.12);
  color: #ffffff !important;
  text-decoration: none !important;
  border-color: rgba(255,255,255,0.2);
}

.yarbo-share-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

.yarbo-share-btn.email-share:hover {
  border-color: rgba(100,180,255,0.4);
  color: #7cc4fa !important;
}

.yarbo-share-btn.x-share:hover {
  border-color: rgba(255,255,255,0.35);
  color: #ffffff !important;
}

/* === DISCLOSURE === */
.yarbo-disclosure {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.04);
  font-size: 11px;
  color: rgba(255,255,255,0.22);
  line-height: 1.5;
}

/* === GHOST BUSTER — WordPress Classic Editor <p> and <br> injection === */
.yarbo-reveal-wrap p,
.yarbo-reveal-wrap br {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
  font-size: 0 !important;
  height: 0 !important;
}

/* re-allow <p> inside elements that actually need them */
.yarbo-expired-notice p,
.yarbo-disclosure p {
  display: block !important;
  font-size: inherit !important;
  line-height: inherit !important;
  height: auto !important;
}

/* === RESPONSIVE === */
@media (max-width: 520px) {
  .yarbo-reveal-inner {
    padding: 22px 20px 26px;
  }
  .yarbo-title {
    font-size: 21px !important;
  }
  .yarbo-timeline {
    padding: 14px 16px 16px;
  }
  .yarbo-code-layer {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .yarbo-code-value {
    font-size: 24px;
  }
  .yarbo-copy-btn {
    justify-content: center;
  }
  .yarbo-shop-btn {
    width: 100%;
    justify-content: center;
  }
  .yarbo-share-row {
    justify-content: center;
  }
  .yarbo-launch-top {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .yarbo-launch-cancel {
    align-self: center;
  }
}
