/* Blog Article Styles - For individual blog post pages */

/* Main content */
main {
    position: relative;
    z-index: 10;
    padding-top: 120px;
}

/* Article container */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

/* Back link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    transition: color 0.2s ease, gap 0.2s ease;
}

.back-link:hover {
    color: #22D3EE;
    gap: 0.75rem;
}

/* Article header */
.article-header {
    margin-bottom: 3rem;
    text-align: center;
    display: block;
    width: 100%;
}

.article-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.article-category {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #22D3EE;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.5rem 1rem;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: 20px;
}

.article-date {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.article-date i {
    color: #22D3EE;
}

.article-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(34, 211, 238, 0.85) 0%,
        rgba(236, 72, 153, 0.80) 50%,
        rgba(245, 158, 11, 0.85) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 4s ease-in-out infinite;
}

/* Share buttons */
.article-share {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 0.85rem;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    color: #ffffff;
}

.share-btn:hover {
    transform: scale(1.15);
    opacity: 0.9;
}

.share-email    { background: rgba(255, 255, 255, 0.15); }
.share-whatsapp { background: #25D366; }
.share-facebook { background: #1877F2; }
.share-x        { background: #000000; border: 1px solid rgba(255,255,255,0.2); }
.share-linkedin { background: #0A66C2; }
.share-copy     { background: rgba(255, 255, 255, 0.15); border: none; cursor: pointer; font-family: inherit; }

/* Hero image */
.article-hero-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 3rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Article content */
.article-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.article-content h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.article-content ul {
    list-style: none;
    margin-bottom: 1.5rem;
    padding-left: 0;
}

.article-content ul li {
    margin-bottom: 0.75rem;
    padding-left: 1.75rem;
    position: relative;
}

.article-content ul li::before {
    content: "•";
    position: absolute;
    left: 0.5rem;
    color: #22D3EE;
    font-size: 1.5rem;
    line-height: 1.8rem;
}

.article-content strong {
    color: #ffffff;
    font-weight: 600;
}

.article-content em {
    color: rgba(255, 255, 255, 0.9);
}

.article-content a {
    color: #22D3EE;
    text-decoration: underline;
    font-weight: inherit;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    transition: color 0.2s ease;
}

.article-content a:hover {
    color: #7DD3FC;
}

/* Quick Answer */
.quick-answer {
    margin-bottom: 2.5rem;
    background: rgba(34, 211, 238, 0.06);
    border: 1px solid rgba(34, 211, 238, 0.25);
    border-radius: 16px;
    overflow: hidden;
}

.quick-answer-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.quick-answer-toggle::-webkit-details-marker {
    display: none;
}

.quick-answer-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #22D3EE;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-answer-chevron {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    transition: transform 0.2s ease;
}

.quick-answer[open] .quick-answer-chevron {
    transform: rotate(180deg);
}

.quick-answer-content {
    padding: 0 1.5rem 1.25rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}

.quick-answer-content ul {
    list-style: none;
    margin: 0.5rem 0 0 0;
    padding-left: 0;
}

.quick-answer-content ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.75rem;
    position: relative;
}

.quick-answer-content ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #22D3EE;
    font-weight: 700;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .quick-answer {
        margin-bottom: 2rem;
        border-radius: 12px;
    }

    .quick-answer-toggle {
        padding: 0.85rem 1.25rem;
    }

    .quick-answer-content {
        padding: 0 1.25rem 1rem;
        font-size: 1rem;
    }
}

/* CTA section */
.article-cta {
    margin-top: 4rem;
    padding: 2.5rem;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 20px;
    text-align: center;
}

.article-cta .cta-hook {
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    margin-bottom: 1.25rem;
}

.article-cta h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.article-cta p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.article-cta .app-store-badge {
    height: 54px;
}

/* Responsive - Article */
@media (max-width: 768px) {
    main {
        padding-top: 70px;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .article-container {
        padding: 0 0 3rem;
        max-width: 100%;
    }

    .back-link {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }

    .article-header {
        margin-bottom: 1.5rem;
    }

    .article-meta {
        margin-top: 1rem;
        gap: 0.5rem;
    }

    .article-category {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .article-date {
        font-size: 0.85rem;
    }

    .article-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        line-height: 1.3;
        padding: 0 0.25rem;
    }

    .article-hero-image {
        max-height: none;
        height: auto;
        width: calc(100% + 2rem);
        margin-left: -1rem;
        margin-right: -1rem;
        margin-bottom: 2rem;
        border-radius: 0;
    }

    .article-content {
        font-size: 1.05rem;
    }

    .article-content h2 {
        font-size: 1.5rem;
        margin-top: 2rem;
    }

    .article-content h3 {
        font-size: 1.25rem;
        margin-top: 1.75rem;
    }

    .article-cta {
        padding: 2rem 1.5rem;
        margin-top: 3rem;
    }

    .article-cta h3 {
        font-size: 1.25rem;
    }

    .article-cta p {
        font-size: 0.95rem;
    }

    .article-cta .app-store-badge {
        height: 48px;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 1.5rem;
    }
}

/* Force mobile layout for all small screens */
@media (max-width: 900px) {
    .article-container {
        overflow-x: hidden;
    }
}

/* Related Posts Section */
.related-posts {
  margin: 4rem 0;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.related-posts h3 {
  margin: 0 0 1.5rem 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.5rem;
  font-weight: 600;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.related-post-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.related-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  border-color: rgba(34, 211, 238, 0.3);
}

.related-post-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.related-post-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.related-post-card h4 {
  padding: 1rem 1rem 0.5rem;
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
}

.related-post-card .post-date {
  padding: 0 1rem 1rem;
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Previous/Next Navigation */
.post-navigation {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 3rem 0;
}

.post-navigation a {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  transition: all 0.2s ease;
}

.post-navigation a:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(34, 211, 238, 0.4);
  transform: translateY(-2px);
}

.nav-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.nav-title {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  line-height: 1.4;
}

.nav-next {
  text-align: right;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .related-posts {
    padding: 1.5rem;
    margin: 3rem 0;
  }

  .related-posts h3 {
    font-size: 1.25rem;
  }

  .related-posts-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .related-post-card img {
    height: 180px;
  }

  .post-navigation {
    grid-template-columns: 1fr;
    margin: 2rem 0;
  }

  .nav-next {
    text-align: left;
  }
}
