@import url('/static/app.css?v=8.6');

/* ==========================================================================
   AiJobFinder — Dedicated Article & SEO Guide Stylesheet
   Preserves 100% of the Live App at the Top, with Smooth Scroll to Article
   ========================================================================== */

/* Enable normal page scrolling on article pages */
html.article-page,
body.article-page {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  position: relative !important;
  height: auto !important;
  min-height: 100vh !important;
}

/* ─── FULL ISOLATION FOR SEARCH RESULTS & RADAR ON ARTICLE PAGE ─── */
body.article-page.results-active #guide-article,
body.article-page.searching-active #guide-article {
  display: none !important;
}

body.article-page.results-active {
  overflow: hidden !important;
  height: 100vh !important;
}

/* Results section & searching overlay are hidden by default, and only visible when searching or displaying results */
.article-page .universe-results-section,
.article-page .searching-overlay {
  display: none !important;
}

body.article-page.searching-active .searching-overlay {
  display: flex !important;
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 10000 !important;
  background: #07070D !important;
  background: radial-gradient(circle at 50% 25%, #121226 0%, #07070D 80%) !important;
}

body.article-page.results-active .universe-results-section {
  display: flex !important;
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  z-index: 9999 !important;
  background: #07070D !important;
  background: radial-gradient(circle at 50% 12%, #111022 0%, #07070D 75%) !important;
}

/* Hero app section takes first full viewport on article page */
.article-page .universe-hero-center {
  position: relative !important;
  min-height: 90vh;
  padding: 50px 20px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  overflow: hidden;
}

/* On article page, reposition floating tags comfortably away from center controls */
.article-page .paper-labels-galaxy .tag-q1 { bottom: 14%; left: 4%; }
.article-page .paper-labels-galaxy .tag-q2 { bottom: 14%; right: 4%; }
.article-page .paper-labels-galaxy .tag-q4 { display: none !important; }
.article-page .paper-labels-galaxy .tag-q5 { display: none !important; }

/* Scroll to Guide Downward Button */
.scroll-to-guide-btn {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: var(--r-full);
  background: rgba(22, 22, 38, 0.85);
  border: 1px solid rgba(217, 119, 87, 0.28);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-decoration: none;
  transition: all 0.25s ease;
  z-index: 20;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.scroll-to-guide-btn:hover {
  background: rgba(217, 119, 87, 0.18);
  border-color: rgba(217, 119, 87, 0.6);
  color: #FFFFFF;
  transform: translateY(2px);
  box-shadow: 0 6px 20px rgba(217, 119, 87, 0.3);
}

.scroll-to-guide-btn .arrow-down {
  animation: bounceArrow 2s infinite ease-in-out;
  color: var(--accent);
}

@keyframes bounceArrow {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}

/* ─── ARTICLE CONTAINER ──────────────────────────────────── */
.article-main-container {
  position: relative;
  z-index: 10;
  max-width: 920px;
  margin: 0 auto;
  padding: 20px 24px 100px;
}

/* Breadcrumbs */
.article-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.article-breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-breadcrumbs a:hover {
  color: var(--accent);
}

.article-breadcrumbs .sep {
  opacity: 0.4;
}

/* Header & H1 */
.article-header {
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 24px;
}

.article-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--r-full);
  background: rgba(217, 119, 87, 0.12);
  border: 1px solid rgba(217, 119, 87, 0.3);
  color: var(--accent-2);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.article-title-h1 {
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: #FFFFFF;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #FFFFFF 40%, #E2E8F0 70%, #EA8868 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.article-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.author-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: #FFFFFF;
}

.author-meta-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Key Takeaways Callout */
.article-key-takeaways {
  background: rgba(14, 14, 24, 0.85);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-left: 4px solid #34D399;
  border-radius: var(--r-md);
  padding: 22px 26px;
  margin: 32px 0 40px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.takeaways-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #34D399;
  margin-bottom: 12px;
}

.takeaways-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.takeaways-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: #E2E8F0;
  line-height: 1.55;
}

.takeaways-list li::before {
  content: "⚡";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 13px;
}

/* Section Typo */
.article-content h2 {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 600;
  color: #FFFFFF;
  margin: 44px 0 16px;
  letter-spacing: -0.015em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-content h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--accent-2);
  margin: 28px 0 12px;
}

.article-content p {
  font-size: 15px;
  line-height: 1.75;
  color: #CBD5E1;
  margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
  margin: 16px 0 24px 20px;
  color: #CBD5E1;
  line-height: 1.7;
}

.article-content li {
  margin-bottom: 10px;
  font-size: 14.5px;
}

.article-content strong {
  color: #FFFFFF;
}

/* Comparison Table */
.comparison-table-wrapper {
  overflow-x: auto;
  margin: 32px 0;
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 14, 24, 0.7);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
}

.comparison-table th {
  background: rgba(255, 255, 255, 0.04);
  padding: 14px 18px;
  color: #FFFFFF;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.comparison-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #CBD5E1;
}

.comparison-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.feature-tag-highlight {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(52, 211, 153, 0.15);
  color: #34D399;
  font-weight: 600;
  font-size: 12px;
}

/* Numbered Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 28px 0 36px;
}

.step-card {
  background: rgba(16, 16, 28, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--r-md);
  padding: 20px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.step-card:hover {
  transform: translateY(-3px);
  border-color: rgba(217, 119, 87, 0.35);
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #D97757 0%, #8B5CF6 100%);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 12px;
}

.step-card-title {
  font-size: 15.5px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.step-card-desc {
  font-size: 13px;
  color: #94A3B8;
  line-height: 1.55;
  margin-bottom: 0 !important;
}

/* FAQ Accordion Section */
.article-faq-section {
  margin: 50px 0 40px;
}

.faq-card {
  background: rgba(14, 14, 24, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--r-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-card:hover {
  border-color: rgba(217, 119, 87, 0.3);
}

.faq-question {
  padding: 16px 20px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.faq-answer {
  padding: 0 20px 18px;
  color: #94A3B8;
  font-size: 14px;
  line-height: 1.65;
}

/* CTA Card at the bottom */
.article-cta-box {
  background: radial-gradient(circle at 50% 0%, rgba(217,119,87,0.18) 0%, rgba(14,14,24,0.95) 75%);
  border: 1px solid rgba(217, 119, 87, 0.35);
  border-radius: var(--r-lg);
  padding: 36px 30px;
  text-align: center;
  margin: 60px 0 40px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.article-cta-title {
  font-size: 24px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.article-cta-sub {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 22px;
  line-height: 1.6;
}

.article-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, #D97757 0%, #A03318 100%);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(217, 119, 87, 0.45);
  transition: all 0.25s ease;
}

.article-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(217, 119, 87, 0.65);
}

/* Interactive Query Chips */
.query-chips-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 24px;
}

.query-chip-label {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.query-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #E2E8F0;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.query-chip:hover {
  background: rgba(217, 119, 87, 0.18);
  border-color: rgba(217, 119, 87, 0.4);
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* ─── 4-COLUMN FOOTER RELATED ARTICLES DIRECTORY (40 LINKS) ── */
.article-footer-directory {
  margin-top: 50px;
  padding: 32px 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-dir-title {
  font-size: 15px;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-articles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 30px;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-2);
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(217, 119, 87, 0.2);
  padding-bottom: 6px;
}

.footer-articles-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 !important;
  padding: 0 !important;
}

.footer-articles-list li {
  margin-bottom: 0 !important;
}

.footer-articles-list a {
  font-size: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
  line-height: 1.45;
  display: block;
}

.footer-articles-list a:hover {
  color: #FFFFFF;
  transform: translateX(2px);
}

@media (max-width: 900px) {
  .footer-articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (max-width: 600px) {
  .footer-articles-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* Article Footer */
.article-footer {
  margin-top: 20px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: var(--text-muted);
}

.article-footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-footer a:hover {
  color: var(--accent);
}

@media (max-width: 768px) {
  /* On mobile article page, hide chaotic floating query tags so they NEVER overlap the search bar, format hint, or guide button */
  .article-page .paper-labels-galaxy .tag-q1,
  .article-page .paper-labels-galaxy .tag-q2,
  .article-page .paper-labels-galaxy .tag-q3,
  .article-page .paper-labels-galaxy .tag-q4,
  .article-page .paper-labels-galaxy .tag-q5,
  .article-page .paper-labels-galaxy .tag-search,
  .article-page .paper-labels-galaxy .tag-worldwide {
    display: none !important;
  }

  .article-page .paper-labels-galaxy .tag-resume {
    display: block !important;
    top: 8px !important;
    left: 8px !important;
    font-size: 10px !important;
    padding: 3px 8px !important;
  }

  .article-page .paper-labels-galaxy .tag-jobs {
    display: block !important;
    top: 8px !important;
    right: 8px !important;
    font-size: 10px !important;
    padding: 3px 8px !important;
  }

  .article-page .universe-hero-center {
    min-height: auto !important;
    height: auto !important;
    padding: 40px 14px 28px !important;
    margin-bottom: 24px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  .scroll-to-guide-btn {
    margin-top: 16px !important;
    padding: 8px 16px !important;
    font-size: 11px !important;
    max-width: 92vw !important;
    text-align: center;
  }

  #guide-article {
    scroll-margin-top: 24px;
    clear: both;
    position: relative;
    z-index: 15;
  }

  .article-main-container {
    padding: 16px 16px 80px;
  }
  .article-title-h1 {
    font-size: 24px;
  }
  .article-key-takeaways {
    padding: 18px 18px;
  }
  .article-cta-box {
    padding: 26px 18px;
  }
}

/* ─── FIXED CREATOR BADGE & MEDIA RESETS ─────────────────── */
img {
  max-width: 100%;
  height: auto;
}

.creator-fixed-badge {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 1000;
  display: block !important;
}

.creator-linkedin-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 5px 13px 5px 6px !important;
  border-radius: 9999px !important;
  background: rgba(18, 18, 28, 0.92) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #FFFFFF !important;
  text-decoration: none !important;
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif) !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5) !important;
  transition: all 0.25s ease !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

.creator-linkedin-btn:hover {
  border-color: rgba(217, 119, 87, 0.6) !important;
  background: rgba(30, 26, 38, 0.96) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 22px rgba(217, 119, 87, 0.35) !important;
}

.creator-avatar-wrap {
  position: relative !important;
  width: 26px !important;
  height: 26px !important;
  flex-shrink: 0 !important;
}

.creator-avatar-img {
  width: 26px !important;
  height: 26px !important;
  max-width: 26px !important;
  max-height: 26px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  display: block !important;
  border: 1.5px solid rgba(217, 119, 87, 0.7) !important;
}

.creator-online-pulse {
  position: absolute !important;
  bottom: -1px !important;
  right: -1px !important;
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: #10B981 !important;
  border: 1px solid #0E0E18 !important;
}

.linkedin-svg {
  width: 13px !important;
  height: 13px !important;
  color: #0A66C2 !important;
  flex-shrink: 0 !important;
}

.creator-btn-text {
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  color: #E2E8F0 !important;
}
