/**
 * Blog Post Page (blog_post.html)
 * Styles for article layout, hero, partnership CTA, newsletter and footer.
 */

/* ========== HERO ========== */
.blog-hero-bg {
  background: linear-gradient(
      180deg,
      #ffffff 33.31%,
      rgba(255, 255, 255, 0.7) 60.69%,
      rgba(255, 255, 255, 0) 100%
    ),
    radial-gradient(
      136.32% 167.48% at 95.17% -34.34%,
      rgba(0, 102, 255, 0) 0%,
      rgba(0, 102, 255, 0.2) 66.23%,
      rgba(109, 77, 255, 0) 100%
    ),
    linear-gradient(
      126.13deg,
      #ffffff -8.57%,
      rgba(232, 228, 255, 0) -8.57%,
      #6d4dff 142.43%,
      rgba(0, 102, 255, 0.2) 157.67%
    );
}

.blog-hero-image-wrap {
  aspect-ratio: 548 / 452;
  min-height: 280px;
}

/* ========== PARTNERSHIP CTA ========== */
.blog-partnership-bg {
  background: linear-gradient(180deg, #ffffff 0%, #f7f4ff 50%, #e8e4ff 100%);
}

/* ========== NEWSLETTER + FOOTER SECTION ========== */
.blog-cta-section-bg {
  background: linear-gradient(180deg, #231b94 0%, #746bf7 100%);
}

/* ========== NEWSLETTER FORM (Figma Frame 1984078154 / 1984078148) ========== */
.newsletter-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px 20px 24px;
  gap: 10px;
  max-width: 340px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
}

.newsletter-card-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  gap: 24px;
  width: 100%;
  border-radius: 20px;
}

.newsletter-title {
  font-weight: 600;
  font-size: 18px;
  line-height: 28px;
  color: #ebe7fc;
  width: 100%;
}

.newsletter-fields {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
}

.newsletter-input {
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  padding: 10px 14px;
  background: #322aa5;
  border-radius: 42px;
  border: none;
  color: #fff;
  font-size: 14px;
  line-height: 24px;
  outline: none;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-input:focus {
  box-shadow: 0 0 0 2px #d8cfff;
}

.newsletter-select {
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  padding: 10px 14px;
  padding-right: 42px;
  background: #322aa5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.8)' stroke-width='2'%3E%3Cpath d='M18 15l-6-6-6 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  border-radius: 42px;
  border: none;
  color: #fff;
  font-size: 14px;
  line-height: 24px;
  font-weight: 700;
  appearance: none;
  cursor: pointer;
}

.newsletter-btn {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 44px;
  padding: 10px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 4px #d8cfff;
  border-radius: 42px;
  font-family: Manrope, sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: opacity 0.2s;
}

.newsletter-btn:hover {
  opacity: 0.95;
}

.newsletter-btn .btn-text {
  background: linear-gradient(180deg, #505cff 0%, #6644ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* arrow-narrow-right: top_left_arrow.svg */
.newsletter-btn .btn-arrow-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  object-fit: contain;
}

/* Figma: arrow-narrow-right with rotate(-30deg) for diagonal up-right */
.arrow-narrow-right-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  object-fit: contain;
  margin-left: 0.5rem;
  transform: rotate(-30deg);
}

/* ========== FOOTER CARD ========== */
.blog-footer-card {
  margin-left: auto;
  margin-right: auto;
  background: #fff;
  border-radius: 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  padding: 1.25rem 1rem;
}

@media (min-width: 768px) {
  .blog-footer-card {
    padding: 2rem;
  }
}

/* ========== MOBILE ONLY (max-width: 767px) – desktop unchanged ========== */
@media (max-width: 767px) {
  /* Main: use full-width layout like other pages */
  body {
    background: #ffffff;
  }

  /* Main content: remove centered card + left stripe so it matches other pages */
  #main-content {
    position: relative;
    padding-top: 6.5rem;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    background: transparent;
    box-shadow: none;
  }

  #main-content::before {
    content: none;
  }

  /* Hero: single column, order = Tag → Title → Image → Intro (match reference) */
  #hero-section {
    min-height: 0;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  /* Hero: solid white on mobile (no gradient, match Figma card) */
  #hero-section .blog-hero-bg {
    min-height: 0;
    border-radius: 0 0 1.5rem 1.5rem;
    background: #fff;
  }

  #hero-section .grid {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 0.5rem 1.5rem;
    gap: 0.75rem;
  }

  /* Text block becomes flow children so we can reorder */
  #hero-section .grid > .order-2 {
    display: contents;
  }

  #hero-section .grid > .order-2 > span {
    order: 1;
    margin-bottom: 0.25rem;
  }

  #hero-section .grid > .order-2 > h1 {
    order: 2;
  }

  /* Image block: full width so image is prominent; date below image */
  #hero-section .grid > .order-1.blog-hero-image-row {
    order: 3;
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.5rem;
  }

  #hero-section .grid > .order-1 .blog-hero-image-wrap {
    flex: none;
    width: 100%;
    min-height: 16rem;
    aspect-ratio: 4 / 3;
  }

  #hero-section .grid > .order-1 .blog-hero-date {
    margin-top: 0;
    font-size: 0.8125rem;
    color: #6b7280;
  }

  #hero-section .grid > .order-2 > p {
    order: 4;
    margin-top: 0.5rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #4b5563;
  }

  /* Category tag: pill shape, light purple gradient, black text, left-aligned */
  #hero-section .grid > .order-2 > span {
    align-self: flex-start;
    background: linear-gradient(90deg, #e9e5ff 0%, #ddd6fe 50%, #c4b5fd 100%);
    color: #1f2937;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
  }

  #hero-section h1 {
    font-size: 1.375rem;
    line-height: 1.3;
    font-weight: 700;
  }

  #hero-section .blog-hero-image-wrap {
    min-height: 16rem;
    max-width: 100%;
    border-radius: 1rem;
  }

  /* Article body: white to match Figma card */
  #article-body {
    padding-left: 1rem;
    padding-right: 1rem;
    background: #fff;
  }

  #article-body > div {
    max-width: 100%;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  #article-body h2 {
    font-size: 1.25rem;
  }

  #article-body h3 {
    font-size: 1.125rem;
    margin-top: 1rem;
    margin-bottom: 0.75rem;
  }

  #article-body .space-y-6 {
    gap: 1rem;
  }

  #article-body blockquote {
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
  }

  #article-body ul {
    gap: 0.75rem;
  }

  #article-body figure {
    margin-bottom: 1rem;
  }

  #article-body figure img {
    border-radius: 1rem;
    min-height: 10rem;
  }

  /* List bullet icons: keep fully rounded (circle) */
  #article-body ul li > span:first-child {
    border-radius: 9999px;
  }

  /* Partnership: Contact page header – Figma mobile (simple) */
  #partnership-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px 0;
    gap: 48px;
    background: #ffffff;
  }

  /* Hide rounded_circle.svg on mobile */
  #partnership-section .absolute.left-0.bottom-0 {
    display: none;
  }

  #partnership-section .blog-partnership-bg {
    aspect-ratio: auto;
    min-height: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 48px;
    background: #ffffff;
  }

  #partnership-section .relative.grid {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 48px;
    width: 100%;
    max-width: 375px;
    padding: 0;
    text-align: left;
  }

  #partnership-section .text-center {
    text-align: left;
    width: 100%;
  }

  #partnership-section form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  #partnership-section form input {
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    background: #fff;
  }

  #partnership-section form button {
    border-radius: 9999px;
    background: linear-gradient(90deg, #4f46e5 0%, #6366f1 100%);
    color: #fff;
  }

  /* Frame 1984078145: section – gradient #231B94 → #746BF7 */
  .blog-cta-section-bg {
    padding-top: 2rem;
    padding-bottom: 0.5rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    background: linear-gradient(180deg, #231b94 0%, #746bf7 100%);
  }

  .blog-cta-section-bg .max-w-6xl {
    max-width: 100%;
    gap: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .blog-cta-section-bg .max-w-6xl > div:first-child {
    text-align: center;
    width: 100%;
  }

  /* Ready to find the right mobile network? – 32px, bold, white, center */
  .blog-cta-section-bg h2 {
    font-size: 32px;
    font-weight: 700;
    line-height: 120%;
    letter-spacing: -0.02em;
    color: #ffffff;
  }

  /* Join the revolution... – 18px, center, white 0.8 */
  .blog-cta-section-bg .max-w-6xl > div:first-child p {
    margin-top: 0.5rem;
    font-size: 18px;
    font-weight: 400;
    line-height: 150%;
    letter-spacing: -0.02em;
    color: #ffffff;
    opacity: 0.8;
  }

  .newsletter-card {
    max-width: 100%;
    width: 100%;
    padding: 20px 20px 24px;
    gap: 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
  }

  .newsletter-card-inner {
    gap: 24px;
    border-radius: 20px;
  }

  .newsletter-title {
    font-weight: 600;
    font-size: 18px;
    line-height: 28px;
    color: #ebe7fc;
  }

  .newsletter-fields {
    gap: 16px;
  }

  .newsletter-input,
  .newsletter-select {
    height: 44px;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 24px;
    background: #322aa5;
    border: none;
    border-radius: 42px;
    color: #ffffff;
  }

  .newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
  }

  .newsletter-select {
    padding-right: 42px;
    background-color: #322aa5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.8)' stroke-width='2'%3E%3Cpath d='M18 15l-6-6-6 6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    font-weight: 700;
  }

  .newsletter-btn {
    height: 44px;
    padding: 10px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.02em;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 4px #d8cfff;
    border-radius: 42px;
  }

  .newsletter-btn .btn-text {
    background: linear-gradient(180deg, #505cff 0%, #6644ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .newsletter-btn .btn-arrow {
    background: linear-gradient(180deg, #505cff 0%, #6644ff 100%);
  }

  /* Frame 1984078144: footer card – frosted white, tight to newsletter */
  .blog-cta-section-bg footer {
    margin-top: 2.5rem;
    margin-bottom: 0;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .blog-footer-card {
    border-radius: 12px;
    padding: 24px 20px;
    background: linear-gradient(0deg, rgba(247, 245, 255, 0.9), rgba(247, 245, 255, 0.9));
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(216, 207, 255, 0.3);
  }

  .blog-footer-card .h-8 {
    height: auto;
    margin-bottom: 0.5rem;
  }

  /* Mission: 14px, #171718, opacity 0.7, line-height 23px */
  .blog-footer-card .md\:hidden p {
    font-weight: 500;
    font-size: 14px;
    line-height: 23px;
    letter-spacing: 0.01em;
    color: #171718;
    opacity: 0.7;
  }

  /* Frame 1984078153: Follow us – white bg, 8px radius, bold 14px #171718 0.9 */
  .blog-footer-card .mt-4.inline-flex {
    margin-top: 1rem;
    background: #ffffff;
    border: none;
    border-radius: 8px;
    color: #171718;
    font-weight: 700;
    font-size: 14px;
    line-height: 23px;
    letter-spacing: -0.02em;
    opacity: 0.9;
  }

  .blog-footer-card .mt-4.inline-flex .rounded-lg {
    background: #171718;
    color: #fff;
  }

  /* Frame 1984078070: Links – 14px 500 rgba(23,23,24,0.5); items 24px 700 rgba(23,23,24,0.9), gap 24 */
  .blog-footer-card .mt-5 h4 {
    font-weight: 500;
    font-size: 14px;
    line-height: 110%;
    text-align: left;
    color: rgba(23, 23, 24, 0.5);
    margin-bottom: 0.5rem;
  }

  .blog-footer-card .mt-5 a {
    font-weight: 700;
    font-size: 24px;
    line-height: 110%;
    letter-spacing: -0.02em;
    color: rgba(23, 23, 24, 0.9);
  }

  .blog-footer-card .mt-5 {
    margin-top: 1.25rem;
    gap: 24px;
  }

  .blog-footer-card .mt-5 .flex-col {
    gap: 24px;
  }

  /* Copyright: 10px 500, center, rgba(23,23,24,0.9) 0.7, line-height 23px */
  .blog-footer-card .mt-6.border-t {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-color: rgba(23, 23, 24, 0.15);
    text-align: center;
    font-weight: 500;
    font-size: 10px;
    line-height: 23px;
    letter-spacing: 0.01em;
    color: rgba(23, 23, 24, 0.9);
    opacity: 0.7;
  }

  .blog-footer-card .mt-6.border-t a {
    color: rgba(23, 23, 24, 0.9);
  }
}

/* Mobile nav uses index-style drawer (#mobileDrawer); no blog-specific overrides. */
