/* Article Styles für BesserNews – 2025 High-Dopamin Edition 🔥 */

.bn-article {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--bn-space-2xl) var(--bn-space-lg);
  position: relative;
}

/* Animated gradient background blob */
.bn-article::before {
  content: '';
  position: fixed;
  top: 10%;
  right: 5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 122, 24, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(100px);
  animation: floatArticle 10s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes floatArticle {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
  50% { transform: translate(-30px, -40px) scale(1.15); opacity: 0.8; }
}

.bn-article-shell {
  background: var(--bn-white);
  border-radius: var(--bn-radius-xl);
  padding: var(--bn-space-2xl);
  box-shadow: 0 10px 60px rgba(0, 0, 0, 0.08),
              0 0 0 1px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  transition: all 0.4s ease;
}

.bn-article-shell::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, 
    var(--bn-orange) 0%, 
    var(--bn-orange-dark) 50%, 
    var(--bn-orange) 100%);
  background-size: 200% 100%;
  animation: gradientShift 3s linear infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

.bn-article-header {
  margin-bottom: var(--bn-space-xl);
  animation: slideInUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.bn-article-category {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: linear-gradient(135deg, var(--bn-orange-light) 0%, #fff 100%);
  color: var(--bn-orange-dark);
  font-size: 0.8125rem;
  font-weight: 800;
  border-radius: var(--bn-radius-full);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--bn-space-md);
  box-shadow: 0 4px 20px rgba(255, 122, 24, 0.25),
              inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 122, 24, 0.2);
  position: relative;
  overflow: hidden;
}

.bn-article-category::before {
  content: '●';
  color: var(--bn-orange);
  font-size: 0.625rem;
  animation: pulse-dot 2s ease-in-out infinite;
}

.bn-article-category::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.5) 50%, transparent 100%);
  animation: shimmer 3s ease-in-out infinite;
}

.bn-article-title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 900;
  color: var(--bn-heading);
  line-height: 1.15;
  margin: 0 0 var(--bn-space-md);
  letter-spacing: -0.02em;
  position: relative;
  padding-bottom: var(--bn-space-sm);
}

.bn-article-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 5px;
  background: linear-gradient(90deg, var(--bn-orange) 0%, transparent 100%);
  border-radius: 3px;
  animation: expandTitleLine 1s ease-out 0.3s backwards;
}

@keyframes expandTitleLine {
  0% { width: 0; opacity: 0; }
  100% { width: 80px; opacity: 1; }
}

.bn-article-lead {
  font-size: 1.25rem;
  color: var(--bn-text);
  line-height: 1.75;
  margin-bottom: var(--bn-space-md);
  font-weight: 500;
  opacity: 0.95;
}

.bn-article-meta {
  display: flex;
  gap: var(--bn-space-md);
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--bn-text-muted);
  padding-top: var(--bn-space-md);
  border-top: 1px solid rgba(229, 231, 235, 0.6);
}

.bn-article-meta span {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: var(--bn-bg);
  border-radius: var(--bn-radius-full);
  transition: all 0.3s ease;
}

.bn-article-meta span:hover {
  background: var(--bn-orange-light);
  color: var(--bn-orange-dark);
  transform: translateY(-2px);
}

.bn-article-meta i {
  opacity: 0.7;
  font-size: 0.75rem;
}

.bn-author-link {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.bn-author-link:hover {
  color: var(--bn-orange);
}

/* Cover Image – Glassmorphism & Zoom */
.bn-article-cover {
  margin: 0 0 var(--bn-space-xl);
  border-radius: var(--bn-radius-xl);
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15),
              0 0 0 1px rgba(0, 0, 0, 0.05);
  animation: slideInUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s backwards;
}

.bn-article-cover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, 
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.05) 60%,
    rgba(0, 0, 0, 0.2) 100%);
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.4s ease;
}

.bn-article-cover:hover::before {
  opacity: 0.7;
}

.bn-article-cover img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bn-article-cover:hover img {
  transform: scale(1.05);
}

.bn-article-cover figcaption {
  padding: var(--bn-space-sm) var(--bn-space-md);
  background: linear-gradient(180deg, rgba(250, 250, 250, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.875rem;
  color: var(--bn-text-muted);
  text-align: center;
  border-top: 1px solid rgba(229, 231, 235, 0.5);
}

/* Inline Article Images */
.bn-article-image {
  margin: var(--bn-space-xl) 0;
  border-radius: var(--bn-radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
}

.bn-article-image:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(255, 122, 24, 0.2);
}

.bn-article-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.bn-article-image:hover img {
  transform: scale(1.03);
}

.bn-article-image figcaption {
  padding: var(--bn-space-sm) var(--bn-space-md);
  background: var(--bn-bg);
  font-size: 0.875rem;
  color: var(--bn-text-muted);
  text-align: center;
}

/* Article Body – Enhanced Typography */
.bn-article-body {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--bn-text);
  animation: slideInUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s backwards;
}

.bn-article-body h2 {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--bn-heading);
  margin-top: var(--bn-space-xl);
  margin-bottom: var(--bn-space-md);
  letter-spacing: -0.015em;
  position: relative;
  padding-left: var(--bn-space-md);
}

.bn-article-body h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--bn-orange) 0%, var(--bn-orange-dark) 100%);
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(255, 122, 24, 0.4);
}

.bn-article-body h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bn-heading);
  margin-top: var(--bn-space-lg);
  margin-bottom: var(--bn-space-sm);
  letter-spacing: -0.01em;
  display: inline-block;
  position: relative;
}

.bn-article-body h3::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, var(--bn-orange) 0%, transparent 100%);
  border-radius: 1px;
}

.bn-article-body p {
  margin-bottom: var(--bn-space-md);
}

.bn-article-body ul,
.bn-article-body ol {
  margin-bottom: var(--bn-space-md);
  padding-left: 1.75rem;
}

.bn-article-body li {
  margin-bottom: 0.625rem;
  position: relative;
}

.bn-article-body ul li::marker {
  color: var(--bn-orange);
}

.bn-article-body a {
  color: var(--bn-orange);
  text-decoration: none;
  background: linear-gradient(135deg, var(--bn-orange) 0%, var(--bn-orange-dark) 100%);
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: left bottom;
  padding-bottom: 2px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-weight: 600;
}

.bn-article-body a:hover {
  background-size: 100% 2px;
  color: var(--bn-orange-dark);
}

/* Related Section */
.bn-related {
  margin-top: var(--bn-space-xl);
  padding-top: var(--bn-space-md);
  border-top: 1px solid rgba(229,231,235,0.6);
}

.bn-related-heading {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--bn-heading);
  margin-bottom: var(--bn-space-md);
}

.bn-related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--bn-space-md);
}

.bn-related-card {
  background: var(--bn-card-bg);
  border: 1px solid var(--bn-border);
  border-radius: var(--bn-radius);
  box-shadow: var(--bn-shadow-sm);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.bn-related-card:hover { transform: translateY(-2px); box-shadow: var(--bn-shadow); }

.bn-related-image { display: block; position: relative; }
.bn-related-image img { width: 100%; height: auto; display: block; }
.bn-related-pill {
  position: absolute; left: .75rem; top: .75rem;
  background: var(--bn-orange-light);
  color: var(--bn-orange-dark);
  border: 1px solid rgba(255,122,24,0.25);
  border-radius: var(--bn-radius-full);
  padding: .25rem .5rem; font-size: .75rem; font-weight: 800;
}

.bn-related-title { font-size: 1rem; padding: .75rem .875rem .25rem; margin: 0; }
.bn-related-title a { text-decoration: none; color: var(--bn-heading); background: none; font-weight: 800; }
.bn-related-title a:hover { color: var(--bn-orange); }
.bn-related-meta { padding: 0 0.875rem 0.875rem; font-size: .8125rem; color: var(--bn-text-muted); }

@media (max-width: 720px){
  .bn-related-grid { grid-template-columns: 1fr; }
}

/* Fact Box – Glassmorphism & Gradient */
.bn-fact-box {
  background: linear-gradient(135deg, 
    rgba(255, 247, 237, 0.9) 0%, 
    rgba(255, 255, 255, 0.8) 100%);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 122, 24, 0.2);
  border-left: 5px solid var(--bn-orange);
  border-radius: var(--bn-radius-lg);
  padding: var(--bn-space-lg);
  margin: var(--bn-space-xl) 0;
  box-shadow: 0 8px 32px rgba(255, 122, 24, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.9);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bn-fact-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 122, 24, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}

.bn-fact-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(255, 122, 24, 0.25),
              inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-left-width: 6px;
}

.bn-fact-box h3 {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--bn-orange-dark);
  margin: 0 0 var(--bn-space-md);
  letter-spacing: -0.01em;
}

.bn-fact-box h3 i {
  font-size: 1.125rem;
  animation: pulse-icon 2.5s ease-in-out infinite;
}

@keyframes pulse-icon {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.8; }
}

.bn-fact-box ul {
  margin: 0;
  padding-left: 1.5rem;
}

.bn-fact-box li {
  color: var(--bn-text);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.bn-fact-box li::marker {
  color: var(--bn-orange);
  font-weight: 700;
}

/* Quote Box – Modern Card Style */
.bn-quote-box {
  background: linear-gradient(135deg, 
    rgba(250, 250, 250, 0.95) 0%, 
    rgba(255, 255, 255, 0.9) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(229, 231, 235, 0.6);
  border-left: 5px solid var(--bn-orange);
  border-radius: var(--bn-radius-lg);
  padding: var(--bn-space-xl);
  margin: var(--bn-space-xl) 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  position: relative;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bn-quote-box::before {
  content: '"';
  position: absolute;
  top: var(--bn-space-md);
  left: var(--bn-space-md);
  font-size: 5rem;
  font-weight: 900;
  color: rgba(255, 122, 24, 0.1);
  line-height: 1;
  font-family: Georgia, serif;
  pointer-events: none;
}

.bn-quote-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(255, 122, 24, 0.15);
  border-left-width: 6px;
}

.bn-quote-box blockquote {
  margin: 0;
  position: relative;
  z-index: 1;
}

.bn-quote-box p {
  font-size: 1.1875rem;
  font-style: italic;
  color: var(--bn-text);
  margin: 0;
  line-height: 1.7;
  font-weight: 500;
}

.bn-quote-box footer {
  margin-top: var(--bn-space-md);
  font-size: 1rem;
  color: var(--bn-text-muted);
  font-style: normal;
  font-weight: 600;
  padding-left: var(--bn-space-sm);
  border-left: 2px solid var(--bn-orange);
}

/* Author Opinion Box */
.bn-author-opinion {
  display: flex;
  align-items: center;
  gap: var(--bn-space-md);
  margin-bottom: var(--bn-space-md);
  padding-bottom: var(--bn-space-md);
  border-bottom: 1px solid rgba(229, 231, 235, 0.6);
}

.bn-author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bn-orange);
  box-shadow: 0 4px 12px rgba(255, 122, 24, 0.2);
  flex-shrink: 0;
}

.bn-author-opinion > div {
  flex: 1;
}

.bn-author-opinion h3 {
  margin: 0 0 0.25rem;
}

.bn-author-opinion p {
  margin: 0;
  font-size: 0.875rem;
  font-style: normal;
  opacity: 0.8;
}

/* Sources Section – Clean Card */
.bn-sources {
  background: linear-gradient(135deg, 
    rgba(250, 250, 250, 0.95) 0%, 
    rgba(255, 255, 255, 0.9) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(229, 231, 235, 0.6);
  border-radius: var(--bn-radius-lg);
  padding: var(--bn-space-lg);
  margin-top: var(--bn-space-xl);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.bn-sources h3 {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--bn-heading);
  margin: 0 0 var(--bn-space-md);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bn-sources h3 i {
  color: var(--bn-orange);
  font-size: 1rem;
}

.bn-sources ul {
  margin: 0;
  padding-left: 1.5rem;
}

.bn-sources li {
  margin-bottom: 0.625rem;
  font-size: 0.9375rem;
}

.bn-sources li::marker {
  color: var(--bn-orange);
}

.bn-sources a {
  color: var(--bn-orange);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.bn-sources a:hover {
  color: var(--bn-orange-dark);
  text-decoration: underline;
}

/* Article Footer – Enhanced */
.bn-article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--bn-space-md);
  margin-top: var(--bn-space-2xl);
  padding-top: var(--bn-space-xl);
  border-top: 1px solid rgba(229, 231, 235, 0.6);
}

.bn-article-tags {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.bn-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--bn-bg);
  color: var(--bn-text-muted);
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: var(--bn-radius-full);
  border: 1px solid var(--bn-border);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bn-tag:hover {
  background: linear-gradient(135deg, var(--bn-orange-light) 0%, #fff 100%);
  color: var(--bn-orange-dark);
  border-color: var(--bn-orange);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 122, 24, 0.2);
}

.bn-article-share {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-size: 0.875rem;
  color: var(--bn-text-muted);
  font-weight: 600;
}

.bn-article-share a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bn-bg);
  border: 1px solid var(--bn-border);
  border-radius: 50%;
  color: var(--bn-text-muted);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bn-article-share a:hover {
  background: linear-gradient(135deg, var(--bn-orange) 0%, var(--bn-orange-dark) 100%);
  color: var(--bn-white);
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 24px rgba(255, 122, 24, 0.4);
  border-color: transparent;
}

/* Comment Engine Integration */
.bn-article-comments {
  margin-top: var(--bn-space-2xl);
  padding-top: var(--bn-space-2xl);
  border-top: 1px solid rgba(229, 231, 235, 0.6);
  display: flex;
  flex-direction: column;
  gap: var(--bn-space-xl);
}

.bn-article-comments__head {
  display: flex;
  flex-direction: column;
  gap: var(--bn-space-sm);
}

.bn-article-comments__head h2 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--bn-heading);
  letter-spacing: -0.01em;
}

.bn-article-comments__head p {
  margin: 0;
  font-size: 1rem;
  color: var(--bn-text-muted);
  max-width: 32ch;
}

/* Tables – Modern Gradient Design */
.bn-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: var(--bn-space-xl) 0;
  font-size: 0.9375rem;
  background: var(--bn-white);
  border: 1px solid var(--bn-border);
  border-radius: var(--bn-radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.bn-table thead {
  background: linear-gradient(135deg, 
    var(--bn-orange-light) 0%, 
    rgba(255, 247, 237, 0.6) 100%);
  position: relative;
}

.bn-table thead::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, 
    var(--bn-orange) 0%, 
    var(--bn-orange-dark) 50%, 
    var(--bn-orange) 100%);
}

.bn-table th {
  padding: var(--bn-space-md) var(--bn-space-lg);
  text-align: left;
  font-weight: 800;
  color: var(--bn-orange-dark);
  border-bottom: none;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.8125rem;
}

.bn-table td {
  padding: var(--bn-space-md) var(--bn-space-lg);
  border-bottom: 1px solid rgba(229, 231, 235, 0.6);
  color: var(--bn-text);
  vertical-align: top;
  transition: all 0.3s ease;
}

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

.bn-table tbody tr {
  transition: all 0.3s ease;
}

.bn-table tbody tr:hover {
  background: linear-gradient(135deg, 
    rgba(255, 247, 237, 0.3) 0%, 
    rgba(255, 255, 255, 0.5) 100%);
  transform: scale(1.005);
}

.bn-table tbody tr:hover td {
  color: var(--bn-heading);
  font-weight: 500;
}

@media (max-width: 768px) {
  .bn-article-shell {
    padding: var(--bn-space-lg);
  }
  
  .bn-article-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .bn-table {
    font-size: 0.875rem;
  }
  
  .bn-table th,
  .bn-table td {
    padding: var(--bn-space-xs) var(--bn-space-sm);
  }
  
  .bn-article-body h2 {
    font-size: 1.5rem;
  }
  
  .bn-article-body h3 {
    font-size: 1.25rem;
  }
}

/* Reading Progress Bar – Smooth Orange Indicator */
.bn-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(229, 231, 235, 0.3);
  z-index: 9999;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.bn-reading-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, 
    var(--bn-orange) 0%, 
    var(--bn-orange-dark) 100%);
  width: 0%;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 20px rgba(255, 122, 24, 0.6);
  position: relative;
}

.bn-reading-progress-bar::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 20px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.6) 100%);
  animation: shimmer-progress 2s linear infinite;
}

@keyframes shimmer-progress {
  0% { opacity: 0; }
  50% { opacity: 1; }
  100% { opacity: 0; }
}

/* Back to Top Button – Floating with Gradient */
.bn-back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--bn-orange) 0%, var(--bn-orange-dark) 100%);
  color: var(--bn-white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 32px rgba(255, 122, 24, 0.4);
  z-index: 1000;
}

.bn-back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.bn-back-to-top:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 12px 48px rgba(255, 122, 24, 0.6);
}

.bn-back-to-top:active {
  transform: translateY(-2px) scale(1.05);
}

.bn-back-to-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.4s ease;
}

.bn-back-to-top:hover::before {
  transform: scale(1);
  animation: ripple 0.6s ease-out;
}

@keyframes ripple {
  0% { transform: scale(0); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Link Previews – Fancy Hover Cards */
.bn-article-body a[href^="http"]::after {
  content: '↗';
  font-size: 0.75em;
  margin-left: 0.25em;
  opacity: 0.6;
}

/* Smooth Scroll Behavior */
html {
  scroll-behavior: smooth;
}

/* Selection Color – Brand Orange */
::selection {
  background: var(--bn-orange);
  color: var(--bn-white);
}

::-moz-selection {
  background: var(--bn-orange);
  color: var(--bn-white);
}

/* ==========================================
   AUTHOR PAGE STYLES
   ========================================== */

/* Author Header Hero */
.bn-author-header {
  margin-bottom: var(--bn-space-xl);
}

.bn-author-hero {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: var(--bn-space-xl);
  align-items: start;
  padding: var(--bn-space-xl);
  background: linear-gradient(135deg, 
    rgba(255, 247, 237, 0.95) 0%, 
    rgba(255, 255, 255, 0.9) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(229, 231, 235, 0.6);
  border-radius: var(--bn-radius-xl);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.bn-author-hero-image {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bn-orange);
  box-shadow: 0 8px 24px rgba(255, 122, 24, 0.3);
}

.bn-author-hero-content {
  flex: 1;
}

.bn-author-name {
  font-size: 2.5rem;
  font-weight: 900;
  margin: 0.5rem 0 0.25rem;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--bn-orange) 0%, var(--bn-orange-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bn-author-role {
  font-size: 1.25rem;
  color: var(--bn-text-muted);
  font-weight: 600;
  margin: 0 0 1rem;
}

.bn-author-bio {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--bn-text);
  margin: 0 0 1.5rem;
}

/* Author Stats */
.bn-author-stats {
  display: flex;
  gap: var(--bn-space-lg);
  flex-wrap: wrap;
}

.bn-author-stat {
  display: flex;
  align-items: center;
  gap: var(--bn-space-sm);
  padding: var(--bn-space-md) var(--bn-space-lg);
  background: var(--bn-white);
  border: 1px solid rgba(229, 231, 235, 0.8);
  border-radius: var(--bn-radius-lg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bn-author-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 122, 24, 0.15);
  border-color: var(--bn-orange);
}

.bn-author-stat i {
  font-size: 1.5rem;
  color: var(--bn-orange);
}

.bn-author-stat strong {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--bn-text);
}

.bn-author-stat span {
  display: block;
  font-size: 0.875rem;
  color: var(--bn-text-muted);
  margin-top: 0.125rem;
}

/* Author Articles Grid */
.bn-author-articles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--bn-space-lg);
  margin: var(--bn-space-xl) 0;
}

.bn-author-article-card {
  display: block;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.95) 0%, 
    rgba(250, 250, 250, 0.9) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(229, 231, 235, 0.6);
  border-radius: var(--bn-radius-xl);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
  color: inherit;
}

.bn-author-article-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(255, 122, 24, 0.2);
  border-color: var(--bn-orange);
}

.bn-author-article-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.bn-author-article-card:hover img {
  transform: scale(1.1);
}

.bn-author-article-content {
  padding: var(--bn-space-lg);
}

.bn-author-article-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bn-orange);
  background: var(--bn-orange-light);
  padding: 0.375rem 0.75rem;
  border-radius: var(--bn-radius-full);
  margin-bottom: var(--bn-space-sm);
}

.bn-author-article-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 var(--bn-space-sm);
  color: var(--bn-text);
}

.bn-author-article-content p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--bn-text-muted);
  margin: 0 0 var(--bn-space-md);
}

.bn-author-article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--bn-text-muted);
  padding-top: var(--bn-space-sm);
  border-top: 1px solid rgba(229, 231, 235, 0.6);
}

.bn-author-article-meta span {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.bn-author-article-meta i {
  opacity: 0.7;
}

/* Responsive Author Page */
@media (max-width: 768px) {
  .bn-author-hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--bn-space-lg);
  }
  
  .bn-author-hero-image {
    width: 120px;
    height: 120px;
    margin: 0 auto;
  }
  
  .bn-author-name {
    font-size: 2rem;
  }
  
  .bn-author-stats {
    justify-content: center;
  }
  
  .bn-author-articles {
    grid-template-columns: 1fr;
  }
}


