/* ==========================================================================
   Email Signup Strip — compact horizontal bar, DashaClub brand
   ========================================================================== */

/* --- Visibility helpers ------------------------------------------------- */
#daily-email-signup .hidden,
#email-signup-form-container.hidden,
#email-signup-success.hidden,
#email-signup-error.hidden { display: none; }

/* --- Card shell: narrow strip ------------------------------------------- */
#daily-email-signup {
  margin-top: var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid;
  padding: var(--space-md) var(--space-lg);
}

.theme-dark #daily-email-signup,
#daily-email-signup.theme-dark {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-color: rgba(226, 185, 107, 0.3);
}

.theme-light #daily-email-signup,
#daily-email-signup.theme-light {
  background: #faf8ff;
  border-color: rgba(75, 0, 130, 0.18);
}

/* --- Top strip: label + social proof side by side ----------------------- */
.signup-strip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.6rem;
}

.signup-strip-label {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
}

.theme-dark .signup-strip-label  { color: var(--accent-on-dark); }
.theme-light .signup-strip-label { color: var(--color-primary); }

.signup-social-proof {
  font-size: 0.7rem;
  font-weight: 500;
  white-space: nowrap;
}

.theme-dark .signup-social-proof  { color: var(--text-dark-muted); }
.theme-light .signup-social-proof { color: var(--color-secondary-accessible); }

/* --- Form --------------------------------------------------------------- */
#email-signup-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* --- Input + button in one row ------------------------------------------ */
.signup-input-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

#email-signup-input {
  flex: 1;
  min-width: 0;
  border-radius: var(--radius-md);
  border: 1px solid;
  padding: 0.55rem 0.85rem;
  font-size: 0.875rem;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#email-signup-input:focus {
  outline: none;
}

.theme-dark #email-signup-input {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-dark-primary);
}
.theme-dark #email-signup-input:focus {
  border-color: rgba(226, 185, 107, 0.6);
  box-shadow: 0 0 0 2px rgba(226, 185, 107, 0.15);
}
.theme-dark #email-signup-input::placeholder { color: var(--text-dark-subtle); }

.theme-light #email-signup-input {
  background: #ffffff;
  border-color: #d1c4e9;
  color: #1a1a1a;
}
.theme-light #email-signup-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(75, 0, 130, 0.12);
}
.theme-light #email-signup-input::placeholder { color: #9e9e9e; }

/* --- CTA submit button -------------------------------------------------- */
#email-signup-submit {
  flex-shrink: 0;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.theme-dark #email-signup-submit {
  background: linear-gradient(135deg, #e2b96b 0%, #c9a050 100%);
  color: #1a1a2e;
  box-shadow: 0 2px 6px rgba(226, 185, 107, 0.3);
}
.theme-dark #email-signup-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(226, 185, 107, 0.4);
}

.theme-light #email-signup-submit {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 2px 5px rgba(75, 0, 130, 0.2);
}
.theme-light #email-signup-submit:hover:not(:disabled) {
  background: #6a0bad;
  transform: translateY(-1px);
}

#email-signup-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* --- Consent checkbox --------------------------------------------------- */
#daily-email-signup .signup-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.7rem;
  line-height: 1.45;
  cursor: pointer;
}

.theme-dark .signup-consent  { color: var(--text-dark-muted); }
.theme-light .signup-consent { color: var(--text-muted); }

#daily-email-signup .signup-consent input[type="checkbox"] {
  width: 13px;
  height: 13px;
  min-width: 13px;
  margin-top: 0.18rem;
  flex-shrink: 0;
  accent-color: var(--color-secondary);
  cursor: pointer;
}

.theme-dark .signup-consent a  { color: var(--accent-on-dark); opacity: 0.75; }
.theme-light .signup-consent a { color: var(--color-primary); }

/* --- Error message ------------------------------------------------------ */
#email-signup-error {
  font-size: 0.72rem;
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.5rem;
}

.theme-dark #email-signup-error  { color: #fca5a5; background: rgba(239, 68, 68, 0.15); }
.theme-light #email-signup-error { color: #b91c1c; background: rgba(239, 68, 68, 0.08); }

/* --- Footer row: privacy + dismiss -------------------------------------- */
.signup-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.signup-privacy-note {
  font-size: 0.68rem;
  margin: 0;
  line-height: 1.4;
}

.theme-dark .signup-privacy-note  { color: var(--text-dark-faint); }
.theme-light .signup-privacy-note { color: var(--text-muted); opacity: 0.7; }

.signup-dismiss {
  background: transparent;
  border: none;
  padding: 0;
  font-size: 0.72rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.theme-dark .signup-dismiss       { color: var(--text-dark-subtle); }
.theme-dark .signup-dismiss:hover { color: var(--text-dark-muted); }
.theme-light .signup-dismiss       { color: var(--text-muted); }
.theme-light .signup-dismiss:hover { color: var(--text-color); }

/* --- Success state ------------------------------------------------------ */
#email-signup-success {
  padding: 0.5rem 0;
  text-align: center;
}

#email-signup-success .success-heading {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.theme-dark #email-signup-success .success-heading  { color: var(--accent-on-dark); }
.theme-light #email-signup-success .success-heading { color: var(--color-primary); }

#email-signup-success .success-subtext {
  font-size: 0.8rem;
  line-height: 1.5;
}

.theme-dark #email-signup-success .success-subtext  { color: var(--text-dark-secondary); }
.theme-light #email-signup-success .success-subtext { color: var(--text-muted); }

.success-upsell { margin-top: 0.5rem; font-size: 0.75rem; }
.theme-dark .success-upsell  { color: var(--text-dark-muted); }
.theme-light .success-upsell { color: var(--text-muted); }

.success-upsell-link { font-weight: 600; text-decoration: underline; }
.theme-dark .success-upsell-link  { color: var(--accent-on-dark); }
.theme-light .success-upsell-link { color: var(--color-primary); }

/* --- Sniper Links (inbox deep-link buttons) ----------------------------- */
.sniper-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin: var(--space-md) 0 var(--space-sm);
  justify-content: center;
}

.sniper-link-btn {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
}

.theme-light .sniper-link-btn {
  background: var(--color-indigo-600);
  color: #fff;
}
.theme-light .sniper-link-btn:hover {
  background: #4338CA;
}

.theme-dark .sniper-link-btn {
  background: var(--color-indigo-500);
  color: #fff;
}
.theme-dark .sniper-link-btn:hover {
  background: var(--color-indigo-600);
}

/* --- Spam-check footnote ------------------------------------------------ */
.success-spam-note {
  font-size: 0.75rem;
  margin-top: var(--space-xs);
}

.theme-light .success-spam-note { color: var(--text-muted); }
.theme-dark .success-spam-note  { color: var(--text-dark-subtle); }
