/* ================================================
   BLOG ARTICLE - A&I FAST LOGISTIC
   Typography premium, reading progress bar
   ================================================ */

/* === READING PROGRESS BAR === */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  z-index: 1000;
  pointer-events: none;
}

.reading-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #FF5A1F 0%, #D91E36 100%);
  box-shadow: 0 0 8px rgba(255, 90, 31, 0.5);
  transition: width 0.1s linear;
}

/* === ARTICLE HERO === */
.article-hero {
  background: linear-gradient(135deg, #1A1A2E 0%, #2D2D44 100%);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.article-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(255, 90, 31, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(217, 30, 54, 0.08) 0%, transparent 50%);
}

.article-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.article-hero .breadcrumb {
  justify-content: center;
  margin-bottom: 24px;
}

.article-hero .breadcrumb a { color: rgba(255, 122, 71, 0.9); }
.article-hero .breadcrumb span { color: rgba(255, 255, 255, 0.5); }
.article-hero .breadcrumb .sep { color: rgba(255, 255, 255, 0.3); }

.article-category-badge {
  display: inline-block;
  padding: 6px 14px;
  background: linear-gradient(135deg, #FF5A1F 0%, #D91E36 100%);
  color: white;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 24px;
  box-shadow: 0 6px 16px rgba(255, 90, 31, 0.3);
}

.article-hero h1 {
  color: white;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: 20px;
}

.article-meta {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
  margin-top: 24px;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-meta strong {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

/* === ARTICLE BODY === */
.article-body {
  background: white;
  padding: 80px 0 60px;
}

.article-content {
  max-width: 760px;
  margin: 0 auto;
  font-family: 'Manrope', system-ui, sans-serif;
}

.article-lead {
  font-size: 1.25rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 36px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #FFF4EE 0%, #FFE8E0 100%);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  font-weight: 500;
}

.article-content h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink);
  margin: 50px 0 18px;
  letter-spacing: -0.01em;
  line-height: 1.2;
  position: relative;
  padding-left: 18px;
}

.article-content h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 4px;
  background: linear-gradient(180deg, #FF5A1F 0%, #D91E36 100%);
  border-radius: 4px;
}

.article-content h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  margin: 32px 0 14px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.article-content p {
  font-size: 1.05rem;
  line-height: 1.78;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.article-content p strong { color: var(--ink); font-weight: 700; }

.article-content a:not(.article-cta-button):not(.related-card) {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 90, 31, 0.3);
  transition: text-decoration-color 0.2s;
}

.article-content a:not(.article-cta-button):not(.related-card):hover {
  text-decoration-color: var(--primary);
}

.article-content ul,
.article-content ol {
  margin: 18px 0 22px;
  padding-left: 0;
  list-style: none;
}

.article-content ul li,
.article-content ol li {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 12px;
  padding-left: 32px;
  position: relative;
}

.article-content ul li::before {
  content: '▸';
  position: absolute;
  left: 8px;
  top: 0;
  color: var(--primary);
  font-weight: 800;
  font-size: 1.1rem;
}

.article-content ol {
  counter-reset: ol-counter;
}

.article-content ol li {
  counter-increment: ol-counter;
}

.article-content ol li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #FF5A1F 0%, #D91E36 100%);
  color: white;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
}

/* === QUOTE / CALLOUT === */
.article-content blockquote {
  background: var(--snow);
  border-left: 4px solid var(--primary);
  padding: 24px 28px;
  margin: 32px 0;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.7;
  position: relative;
}

.article-content blockquote::before {
  content: '\201C';
  position: absolute;
  top: -10px;
  left: 18px;
  font-size: 4rem;
  color: var(--primary);
  font-family: 'Georgia', serif;
  line-height: 1;
  opacity: 0.3;
}

.article-content blockquote cite {
  display: block;
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  font-style: normal;
}

/* === CALLOUT BOX (info, warning, success) === */
.callout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 24px;
  border-radius: 14px;
  margin: 32px 0;
  border: 1px solid var(--cloud);
}

.callout .callout-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.callout-info {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border-color: rgba(59, 130, 246, 0.2);
}
.callout-info .callout-icon { background: #3B82F6; color: white; }

.callout-warning {
  background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
  border-color: rgba(245, 158, 11, 0.2);
}
.callout-warning .callout-icon { background: #F59E0B; color: white; }

.callout-success {
  background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
  border-color: rgba(16, 185, 129, 0.2);
}
.callout-success .callout-icon { background: #10B981; color: white; }

.callout-primary {
  background: linear-gradient(135deg, #FFF4EE 0%, #FFE8E0 100%);
  border-color: rgba(255, 90, 31, 0.2);
}
.callout-primary .callout-icon { background: linear-gradient(135deg, #FF5A1F 0%, #D91E36 100%); color: white; }

.callout-content { flex: 1; }

.callout-content strong {
  display: block;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 4px;
}

.callout-content p {
  margin: 0;
  font-size: 0.92rem !important;
  line-height: 1.55 !important;
  color: var(--ink-soft);
}

/* === STATS GRID (for case study) === */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.stat-grid .stat-box {
  background: var(--snow);
  border-radius: 14px;
  padding: 22px;
  text-align: center;
  border: 1px solid var(--cloud);
}

.stat-grid .stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.4rem;
  font-weight: 900;
  background: linear-gradient(135deg, #FF5A1F 0%, #D91E36 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-grid .stat-label {
  font-size: 0.78rem;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* === COMPARISON TABLE === */
.comparison-table {
  width: 100%;
  margin: 32px 0;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.95rem;
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(26, 26, 46, 0.06);
}

.comparison-table th {
  background: linear-gradient(135deg, #1A1A2E 0%, #2D2D44 100%);
  color: white;
  padding: 14px 18px;
  text-align: left;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.comparison-table th.highlight {
  background: linear-gradient(135deg, #FF5A1F 0%, #D91E36 100%);
}

.comparison-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--cloud);
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.comparison-table tr:last-child td { border-bottom: none; }

.comparison-table td:first-child {
  font-weight: 700;
  color: var(--ink);
}

.comparison-table .ok { color: #10B981; font-weight: 700; }
.comparison-table .no { color: #EF4444; font-weight: 700; }
.comparison-table .neutral { color: #F59E0B; font-weight: 700; }

/* === ARTICLE CTA === */
.article-cta {
  background: linear-gradient(135deg, #1A1A2E 0%, #2D2D44 100%);
  color: white;
  border-radius: 20px;
  padding: 36px 32px;
  margin: 48px 0 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.article-cta::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 60%;
  height: 180%;
  background: radial-gradient(circle, rgba(255, 90, 31, 0.25) 0%, transparent 60%);
}

.article-cta-inner {
  position: relative;
  z-index: 1;
}

.article-cta h3 {
  color: white !important;
  font-size: 1.4rem !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
}

.article-cta h3::before { display: none !important; }

.article-cta p {
  color: rgba(255, 255, 255, 0.8) !important;
  margin-bottom: 18px !important;
  font-size: 1rem !important;
}

.article-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: linear-gradient(135deg, #FF5A1F 0%, #D91E36 100%);
  color: white !important;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none !important;
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: 'Manrope', sans-serif;
  font-size: 0.95rem;
}

.article-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 90, 31, 0.4);
}

/* === ARTICLE FOOTER (autor, share, related) === */
.article-end {
  max-width: 760px;
  margin: 60px auto 0;
  padding-top: 36px;
  border-top: 1px solid var(--cloud);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.article-tag {
  padding: 6px 14px;
  background: var(--snow);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--slate);
  text-decoration: none;
  transition: all 0.2s;
}

.article-tag:hover {
  background: var(--primary);
  color: white;
}

/* === RELATED ARTICLES === */
.related-section {
  background: var(--snow);
  padding: 70px 0;
}

.related-section h3 {
  text-align: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.8rem;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 820px;
  margin: 0 auto;
}

.related-card {
  background: white;
  border-radius: 14px;
  padding: 24px 22px;
  text-decoration: none;
  border: 1px solid var(--cloud);
  transition: all 0.3s;
  display: block;
  color: inherit;
}

.related-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 90, 31, 0.3);
  box-shadow: 0 12px 32px rgba(26, 26, 46, 0.08);
}

.related-card .related-cat {
  display: inline-block;
  padding: 3px 10px;
  background: var(--grad-soft);
  color: var(--primary-dark);
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.related-card h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.3;
  text-transform: uppercase;
}

.related-card p {
  font-size: 0.88rem;
  color: var(--slate);
  margin: 0;
  line-height: 1.5;
}

/* === RESPONSIVE === */
@media (max-width: 720px) {
  .article-hero { padding: 70px 0 60px; }
  .article-body { padding: 50px 0 40px; }
  .article-lead { font-size: 1.1rem; padding: 16px 20px; }
  .article-content { padding: 0 4px; }
  .article-content h2 { font-size: 1.5rem; padding-left: 14px; }
  .article-content p { font-size: 1rem; }

  .comparison-table { font-size: 0.85rem; }
  .comparison-table th,
  .comparison-table td { padding: 10px 12px; }

  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: 1fr; }
  .article-cta { padding: 28px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .reading-progress-bar { transition: none; }
  .related-card { transition: none; }
}
