/* ==========================================================================
   TANVIR AHMED - CLEAN MINIMAL NEWSLETTER PAGE STYLES (newsletter.css)
   Pure, distraction-free landing page for email subscriptions.
   No navbar, no footer, clean centered layout.
   ========================================================================== */

/* ----------------- 0. BASE & CENTERING LAYOUT ----------------- */
html,
body.newsletter-page {
  background-color: #ffffff !important;
  color: #0a0f1d;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
  -webkit-font-smoothing: antialiased;
}

.newsletter-page main {
  width: 100%;
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ----------------- 1. HERO / CARD WRAPPER ----------------- */
.newsletter-hero-section {
  width: 100%;
  min-height: 100vh;
  padding: clamp(2.5rem, 5vw, 4.5rem) 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.newsletter-minimal-card {
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ----------------- 2. CIRCULAR AVATAR PICTURE ----------------- */
.newsletter-avatar-wrap {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  margin: 0 auto 1.65rem auto;
  padding: 0;
  background-color: transparent;
  border: none;
  box-shadow: none;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.newsletter-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* ----------------- 3. TYPOGRAPHY & INTRO ----------------- */
.newsletter-eyebrow {
  display: inline-block;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #64748b;
  background-color: #f1f5f9;
  padding: 0.35rem 0.85rem;
  margin-bottom: 0.85rem;
  border-radius: 0 !important;
}

.newsletter-headline {
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(28px, 4.5vw, 38px);
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #0a0f1d;
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem) 0;
  line-height: 1.15;
}

/* ----------------- 4. INLINE NEWSLETTER FORM (BORDERLESS GRAY INPUT) ----------------- */
.newsletter-page .newsletter-form {
  display: flex !important;
  align-items: stretch !important;
  justify-content: center !important;
  gap: 0 !important;
  width: 100% !important;
  max-width: 560px !important;
  margin: 0 auto 0.85rem auto !important;
  position: relative !important;
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  clip-path: polygon(18px 0, 100% 0, calc(100% - 18px) 100%, 0 100%) !important;
  -webkit-clip-path: polygon(18px 0, 100% 0, calc(100% - 18px) 100%, 0 100%) !important;
  box-sizing: border-box !important;
}

/* Gray input wrapper with zero borders */
.newsletter-page .newsletter-input-wrap {
  position: relative !important;
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  background-color: #f1f5f9 !important;
  background: #f1f5f9 !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  min-width: 0 !important;
  height: 56px !important;
  z-index: 1 !important;
  transition: background-color 0.2s ease !important;
}

.newsletter-page .newsletter-input-icon {
  position: absolute !important;
  left: 1.65rem !important;
  color: #64748b !important;
  pointer-events: none !important;
  transition: color 0.25s ease !important;
  z-index: 2 !important;
}

.newsletter-page .newsletter-input {
  width: 100% !important;
  height: 100% !important;
  padding: 0 1.6rem 0 3.45rem !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: #0a0f1d !important;
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif) !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  border-radius: 0 !important;
  box-sizing: border-box !important;
}

.newsletter-page .newsletter-input::placeholder {
  color: #94a3b8 !important;
}

.newsletter-page .newsletter-input:-webkit-autofill,
.newsletter-page .newsletter-input:-webkit-autofill:hover,
.newsletter-page .newsletter-input:-webkit-autofill:focus {
  -webkit-text-fill-color: #0a0f1d !important;
  -webkit-box-shadow: 0 0 0px 1000px #f1f5f9 inset !important;
  transition: background-color 5000s ease-in-out 0s !important;
}

.newsletter-page .newsletter-form:focus-within .newsletter-input-wrap {
  background-color: #e2e8f0 !important;
  background: #e2e8f0 !important;
}

.newsletter-page .newsletter-form:focus-within .newsletter-input-icon {
  color: #0a0f1d !important;
}

/* Subscribe Button - Same signature solid dark style */
.newsletter-page .newsletter-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.65rem !important;
  padding: 0 2.2rem 0 2.6rem !important;
  height: 56px !important;
  background-color: #212121 !important;
  color: #ffffff !important;
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif) !important;
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  border: none !important;
  border-radius: 0 !important;
  clip-path: polygon(18px 0, 100% 0, 100% 100%, 0 100%) !important;
  -webkit-clip-path: polygon(18px 0, 100% 0, 100% 100%, 0 100%) !important;
  margin-left: -18px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  transition: opacity 0.25s ease, filter 0.25s ease, background-color 0.25s ease !important;
  z-index: 2 !important;
  position: relative !important;
}

.newsletter-page .newsletter-btn span,
.newsletter-page .newsletter-btn svg {
  transition: opacity 0.25s ease, transform 0.25s ease !important;
  display: inline-block !important;
}

.newsletter-page .newsletter-btn:hover {
  background-color: #515151 !important;
  filter: brightness(1.1) !important;
}

.newsletter-page .newsletter-btn:hover svg {
  transform: translateX(4px) !important;
}

.newsletter-page .newsletter-btn:disabled {
  opacity: 0.7 !important;
  cursor: not-allowed !important;
}

.newsletter-page .newsletter-privacy-note {
  font-family: var(--font-sans, 'Plus Jakarta Sans', sans-serif);
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 0.85rem 0 0 0;
  text-align: center;
}

.newsletter-page .newsletter-privacy-note a {
  color: #64748b;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.newsletter-page .newsletter-privacy-note a:hover {
  color: #0a0f1d;
}

/* ----------------- 5. TOAST NOTIFICATION ----------------- */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background-color: #0a0f1d;
  color: #ffffff;
  padding: 0.95rem 1.65rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9999;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
  border-radius: 0 !important;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.toast svg polyline {
  stroke: #10b981;
}

/* ----------------- 6. RESPONSIVE BREAKPOINTS ----------------- */
@media (max-width: 768px) {
  .newsletter-hero-section {
    padding: 2.5rem 1.25rem;
  }

  .newsletter-avatar-wrap {
    width: 112px;
    height: 112px;
    margin-bottom: 1.25rem;
  }

  .newsletter-headline {
    font-size: 26px;
  }
}

@media (max-width: 540px) {
  .newsletter-page .newsletter-form {
    flex-direction: column !important;
    clip-path: none !important;
    -webkit-clip-path: none !important;
    gap: 0.75rem !important;
  }

  .newsletter-page .newsletter-input-wrap {
    height: 52px !important;
    background-color: #f1f5f9 !important;
    background: #f1f5f9 !important;
    border: none !important;
    box-shadow: none !important;
    clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%) !important;
    -webkit-clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%) !important;
  }

  .newsletter-page .newsletter-btn {
    height: 52px !important;
    margin-left: 0 !important;
    width: 100% !important;
    clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%) !important;
    -webkit-clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%) !important;
  }
}
