/* ═══════════════════════════════════════════
   SourMango Blog — blog.css
   Extends the inline base styles on each page
   ═══════════════════════════════════════════ */

/* ── Blog listing page ── */
.blog-hero {
  padding: 48px 32px 40px;
  max-width: 720px;
  margin: 0 auto;
}
.blog-hero__title {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #D6FF2A, #27E28B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.blog-hero__subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.8;
}

.blog-grid {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px 80px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Blog card ── */
.blog-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.blog-card:hover {
  transform: translateY(-3px);
  border-color: rgba(214,255,42,0.15);
  text-decoration: none;
}
.blog-card__emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  min-width: 100px;
  background: linear-gradient(135deg, rgba(214,255,42,0.06), rgba(39,226,139,0.04));
  border-right: 1px solid rgba(255,255,255,0.04);
}
.blog-card__body {
  padding: 22px 24px;
  flex: 1;
}
.blog-card__tag {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 10px;
}
.blog-card__tag--guide {
  background: rgba(214,255,42,0.1);
  color: #D6FF2A;
  border: 1px solid rgba(214,255,42,0.18);
}
.blog-card__tag--tips {
  background: rgba(42,246,255,0.1);
  color: #2AF6FF;
  border: 1px solid rgba(42,246,255,0.18);
}
.blog-card__tag--story {
  background: rgba(255,176,0,0.1);
  color: #FFB000;
  border: 1px solid rgba(255,176,0,0.18);
}
.blog-card__tag--update {
  background: rgba(39,226,139,0.1);
  color: #27E28B;
  border: 1px solid rgba(39,226,139,0.18);
}
.blog-card__title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.2px;
  line-height: 1.35;
  margin-bottom: 6px;
  color: rgba(255,255,255,0.92);
}
.blog-card__excerpt {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
  line-height: 1.55;
}
.blog-card__meta {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.25);
  font-weight: 600;
}

/* ── Blog post page ── */
.post {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 32px 80px;
}
.post__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  margin-bottom: 32px;
  transition: color 0.2s;
}
.post__back:hover {
  color: #D6FF2A;
  text-decoration: none;
}
.post__tag {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 16px;
}
.post__title {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.95);
}
.post__meta {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.3);
  font-weight: 600;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ── Post content (markdown output) ── */
.post__content h2 {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.3px;
  margin: 40px 0 16px;
  color: rgba(255,255,255,0.92);
}
.post__content h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 32px 0 12px;
  color: rgba(255,255,255,0.85);
}
.post__content p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.6);
  margin-bottom: 18px;
  font-weight: 500;
}
.post__content a {
  color: #D6FF2A;
  text-decoration: none;
}
.post__content a:hover {
  text-decoration: underline;
}
.post__content ul, .post__content ol {
  margin: 0 0 20px 20px;
  color: rgba(255,255,255,0.6);
}
.post__content li {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 6px;
  font-weight: 500;
}
.post__content blockquote {
  border-left: 3px solid rgba(214,255,42,0.4);
  padding: 14px 20px;
  margin: 24px 0;
  background: rgba(255,255,255,0.02);
  border-radius: 0 12px 12px 0;
}
.post__content blockquote p {
  color: rgba(255,255,255,0.5);
  font-style: italic;
  margin: 0;
}
.post__content img {
  max-width: 100%;
  border-radius: 12px;
  margin: 24px 0;
  border: 1px solid rgba(255,255,255,0.06);
}
.post__content code {
  background: rgba(255,255,255,0.06);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.85rem;
  font-family: 'SF Mono', Monaco, monospace;
  color: #2AF6FF;
}
.post__content pre {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 20px;
  overflow-x: auto;
  margin: 24px 0;
}
.post__content pre code {
  background: none;
  padding: 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
.post__content hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin: 40px 0;
}
.post__content strong {
  color: rgba(255,255,255,0.85);
  font-weight: 700;
}

/* ── CTA banner at end of post ── */
.post__cta {
  margin-top: 48px;
  padding: 28px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.post__cta-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: rgba(255,255,255,0.92);
  margin-bottom: 6px;
}
.post__cta-text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 18px;
  font-weight: 500;
}
.post__cta-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
.post__cta-badges .store-badge {
  display: inline-flex;
  text-decoration: none;
  transition: transform 0.2s, opacity 0.2s;
}
.post__cta-badges .store-badge:hover {
  transform: scale(1.05);
  opacity: 0.9;
  text-decoration: none;
}
.post__cta-badges .store-badge svg {
  display: block;
  height: 40px;
  width: auto;
}

/* ── More Guides ── */
.post__more {
  margin-top: 32px;
  text-align: center;
}
.post__more-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}
.post__more-link {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 14px;
  border: 1px solid rgba(214,255,42,0.2);
  background: rgba(214,255,42,0.05);
  color: #D6FF2A;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.post__more-link:hover {
  background: rgba(214,255,42,0.1);
  border-color: rgba(214,255,42,0.35);
  transform: translateY(-2px);
  text-decoration: none;
}

/* ── Waitlist Modal ── */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.modal.active { display: flex; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal__card {
  position: relative;
  width: min(440px, calc(100% - 48px));
  background: rgba(12,36,24,0.95);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 28px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 40px 120px rgba(0,0,0,0.6);
  animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.6);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.modal__close:hover { background: rgba(255,255,255,0.1); color: #fff; }
.modal__logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin: 0 auto 18px;
  filter: drop-shadow(0 0 30px rgba(214,255,42,0.15));
}
.modal__title {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin: 0 0 8px;
  background: linear-gradient(135deg, #D6FF2A, #27E28B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.modal__text {
  color: rgba(255,255,255,0.5);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.6;
  margin: 0 0 24px;
}
.modal__form { display: flex; gap: 10px; }
.modal__input {
  flex: 1;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.25);
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.modal__input::placeholder { color: rgba(255,255,255,0.35); }
.modal__input:focus { border-color: rgba(214,255,42,0.4); }
.modal__submit {
  flex-shrink: 0;
  padding: 14px 22px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-weight: 800;
  font-size: 0.95rem;
  font-family: inherit;
  color: #062014;
  background: linear-gradient(135deg, #FFB000, #D6FF2A);
  box-shadow: 0 12px 26px rgba(255,176,0,0.18);
  transition: filter 0.2s, transform 0.2s;
}
.modal__submit:hover { filter: brightness(1.05); transform: translateY(-1px); }
.modal__note {
  margin: 14px 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #27E28B;
  min-height: 1.2em;
}
@media (max-width: 480px) {
  .modal__card { padding: 32px 20px; }
  .modal__form { flex-direction: column; }
}

/* ── Footer ── */
.blog-footer {
  padding: 24px 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.2);
  font-weight: 500;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .blog-hero, .post, .blog-grid {
    padding-left: 20px;
    padding-right: 20px;
  }
  .blog-hero__title, .post__title {
    font-size: 1.7rem;
  }
  .blog-card {
    flex-direction: column;
  }
  .blog-card__emoji {
    min-width: unset;
    height: 80px;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.04);
  }
}
