/* ==========================================================================
   RAY AERO ARTICLE READER — HIGH-END EDITORIAL MAGAZINE VIEW
   ========================================================================== */

/* Reading Progress Bar */
#readingProgressBar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  width: 0%;
  background: linear-gradient(90deg, #38bdf8 0%, #818cf8 50%, #38bdf8 100%);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
  z-index: 100000;
  transition: width 0.1s ease-out;
}

/* Base Body & Layout */
body.article-reader-body {
  background: #080d1a !important;
  background-image: 
    radial-gradient(at 15% 10%, rgba(14, 165, 233, 0.14) 0px, transparent 45%),
    radial-gradient(at 85% 20%, rgba(99, 102, 241, 0.12) 0px, transparent 45%),
    radial-gradient(at 50% 90%, rgba(56, 189, 248, 0.08) 0px, transparent 50%),
    linear-gradient(180deg, #070c18 0%, #0c1527 100%) !important;
  background-attachment: fixed !important;
  color: #cbd5e1 !important;
  font-family: 'Open Sans', system-ui, -apple-system, sans-serif !important;
}

.article-reader-container,
.article-page {
  max-width: 980px !important;
  margin: 30px auto 70px !important;
  padding: 0 20px !important;
}

/* Reader Top Bar & Breadcrumbs */
.reader-top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.reader-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 7px 16px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reader-back-btn:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateX(-3px);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.3);
}

.reader-meta-chips {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.reader-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #94a3b8;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 12px;
  border-radius: 20px;
}

.reader-chip i {
  color: #38bdf8;
}

/* Reader Main Card */
.article-reader-card,
.article-page .article-card {
  background: linear-gradient(170deg, rgba(20, 30, 50, 0.85) 0%, rgba(11, 17, 30, 0.96) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 22px !important;
  overflow: hidden !important;
  box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  margin-bottom: 40px !important;
}

/* Article Hero Header */
.article-reader-header,
.article-page .article-header {
  padding: 36px 40px 24px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
}


.article-reader-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #38bdf8 30%, #818cf8 70%, transparent 100%);
}

.article-cat-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-family: 'Oswald', sans-serif !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  padding: 5px 14px !important;
  border-radius: 20px !important;
  margin-bottom: 16px !important;
  width: auto !important;
  max-width: fit-content !important;
  line-height: 1.2 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
}

.pill-defense {
  background: rgba(220, 38, 38, 0.9) !important;
  color: #ffffff !important;
  border: 1px solid rgba(252, 165, 165, 0.6) !important;
}

.pill-airliners {
  background: rgba(2, 132, 199, 0.9) !important;
  color: #ffffff !important;
  border: 1px solid rgba(125, 211, 252, 0.6) !important;
}

.pill-special {
  background: rgba(217, 119, 6, 0.9) !important;
  color: #ffffff !important;
  border: 1px solid rgba(253, 230, 138, 0.6) !important;
}

.pill-events {
  background: rgba(147, 51, 234, 0.9) !important;
  color: #ffffff !important;
  border: 1px solid rgba(216, 180, 254, 0.6) !important;
}

.pill-analysis {
  background: rgba(5, 150, 105, 0.9) !important;
  color: #ffffff !important;
  border: 1px solid rgba(110, 231, 183, 0.6) !important;
}

.article-reader-title {
  font-family: 'Oswald', sans-serif !important;
  font-size: 36px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  line-height: 1.25 !important;
  letter-spacing: 0.4px !important;
  margin: 0 0 18px 0 !important;
  text-align: left !important;
  width: 100% !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
}

@media (max-width: 768px) {
  .article-reader-title {
    font-size: 26px !important;
  }
  .article-reader-header {
    padding: 24px 20px 18px !important;
  }
}

.article-byline-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 14px !important;
  padding-top: 14px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  width: 100% !important;
}

.byline-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #080d1a;
  font-weight: 700;
  font-size: 14px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #f8fafc;
}

.author-meta {
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  gap: 8px;
}

.article-quick-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-reader-action {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-reader-action:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #38bdf8;
}

/* Hero Media */
.article-reader-hero,
.article-page .article-hero {
  margin: 0 !important;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #090e17;
  overflow: hidden;
}

.article-reader-hero img,
.article-page .article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  display: block;
}

.article-reader-hero figcaption,
.article-page .article-hero figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 20px;
  background: linear-gradient(to top, rgba(11, 17, 30, 0.95) 0%, transparent 100%);
  color: #94a3b8;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-reader-hero figcaption i,
.article-page .article-hero figcaption i {
  color: #38bdf8;
}

/* Article Body Content */
.article-reader-body-content,
.article-page .article-body {
  padding: 36px 40px 48px !important;
  font-size: 16px;
  line-height: 1.8;
  color: #cbd5e1;
}

@media (max-width: 768px) {
  .article-reader-body-content,
  .article-page .article-body {
    padding: 24px 20px 36px !important;
    font-size: 15px;
    line-height: 1.75;
  }
}

.article-intro-lead,
.article-page .intro {
  font-size: 18px !important;
  line-height: 1.75 !important;
  color: #f1f5f9 !important;
  font-weight: 400 !important;
  margin-bottom: 28px !important;
  padding-bottom: 22px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.article-reader-body-content p,
.article-page .article-body p {
  margin-bottom: 20px;
  color: #cbd5e1;
  text-indent: 0 !important;
}


.article-reader-body-content strong {
  color: #f8fafc;
  font-weight: 600;
}

.article-reader-body-content h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
  margin: 36px 0 16px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.article-reader-body-content h2::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 45px;
  height: 2px;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}

.article-reader-body-content h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #38bdf8;
  margin: 26px 0 12px 0;
}

/* Callout Box / Key Takeaways */
.article-takeaways-card {
  background: linear-gradient(165deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 14px;
  padding: 22px 26px;
  margin: 28px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.takeaways-title {
  font-family: 'Oswald', sans-serif;
  font-size: 16.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.takeaways-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.takeaways-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: #e2e8f0;
}

.takeaways-list li::before {
  content: '\F26E';
  font-family: 'bootstrap-icons';
  position: absolute;
  left: 0;
  top: 1px;
  color: #38bdf8;
  font-size: 13px;
}

/* Stylized Blockquote */
.article-quote {
  background: rgba(15, 23, 42, 0.75);
  border-left: 4px solid #38bdf8;
  border-radius: 0 12px 12px 0;
  padding: 18px 24px;
  margin: 28px 0;
  font-style: italic;
  color: #f1f5f9;
  font-size: 16.5px;
  line-height: 1.6;
  position: relative;
}

.article-quote i {
  color: rgba(56, 189, 248, 0.4);
  font-size: 24px;
  margin-right: 8px;
}

/* Bullet list inside body */
.article-reader-body-content ul:not(.takeaways-list) {
  padding-left: 20px;
  margin-bottom: 22px;
}

.article-reader-body-content ul:not(.takeaways-list) li {
  margin-bottom: 8px;
  color: #cbd5e1;
}

/* Related Stories & Further Reading Cards */
.article-further-reading {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.further-reading-title {
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.further-reading-title i {
  color: #38bdf8;
}

.further-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.further-link-card {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 18px;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.further-link-card:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.further-link-info span {
  display: block;
  font-size: 11px;
  color: #38bdf8;
  text-transform: uppercase;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
}

.further-link-info h4 {
  margin: 2px 0 0 0;
  font-size: 13.5px;
  color: #f8fafc;
  font-weight: 600;
  line-height: 1.35;
}

.further-link-card i {
  color: #94a3b8;
  font-size: 16px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.further-link-card:hover i {
  color: #38bdf8;
  transform: translateX(4px);
}

/* Bottom Share & Nav Bar */
.article-reader-footer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 36px;
}

.article-share-btn-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reader-share-btn {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.reader-share-btn:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #38bdf8;
}

/* Toast */
.reader-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  border: 1px solid #38bdf8;
  color: #f8fafc;
  padding: 12px 18px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 100000;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.25s ease;
  pointer-events: none;
}

.reader-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Dark Editorial Data Tables */
.article-reader-body-content table {
  width: 100% !important;
  margin: 28px 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: rgba(15, 23, 42, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
}

.article-reader-body-content th {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%) !important;
  color: #f8fafc !important;
  padding: 14px 18px !important;
  font-family: 'Oswald', sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  border-bottom: 2px solid rgba(56, 189, 248, 0.4) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
  text-align: left !important;
}

.article-reader-body-content th:last-child {
  border-right: none !important;
}

.article-reader-body-content td {
  padding: 12px 18px !important;
  color: #e2e8f0 !important;
  font-size: 14px !important;
  background: rgba(15, 23, 42, 0.6) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.article-reader-body-content td:last-child {
  border-right: none !important;
}

.article-reader-body-content td strong {
  color: #38bdf8 !important;
  font-weight: 600 !important;
}

.article-reader-body-content tr:last-child td {
  border-bottom: none !important;
}

.article-reader-body-content tr:hover td {
  background: rgba(56, 189, 248, 0.08) !important;
}

