/*
 * Modern Single Post Page CSS
 * Redesigned single blog post layout with enhanced UX
 */

/* ===== MODERN SINGLE POST LAYOUT ===== */
.single-post-modern {
  background: #f8fafc;
  min-height: 100vh;
}

/* ===== MODERN HERO SECTION ===== */
.single-hero-modern {
  position: relative;
  padding: 120px 0 80px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  overflow: hidden;
}

.hero-background-modern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.hero-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
}

.hero-pattern-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.1) 1px, transparent 0);
  background-size: 30px 30px;
  opacity: 0.6;
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1.5" fill="rgba(255,255,255,0.3)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.2)"/><circle cx="40" cy="80" r="1.2" fill="rgba(255,255,255,0.25)"/></svg>');
  animation: float 20s infinite linear;
}

@keyframes float {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-100px); }
}

.hero-content-modern {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* Enhanced Breadcrumb */
.breadcrumb-modern {
  margin-bottom: 24px;
}

.breadcrumb-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.breadcrumb-item:hover {
  color: white;
}

.breadcrumb-separator {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.breadcrumb-current {
  color: white;
  font-weight: 600;
}

/* Category Badge */
.category-badge-modern {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 25px;
  color: white;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 24px;
  overflow: hidden;
}

.category-badge-modern.medical-bg {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.category-badge-modern.online-bg {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.category-badge-modern.professional-bg {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.category-badge-modern.usa-bg {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.badge-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.badge-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Article Title */
.article-title-modern {
  font-size: 3.5rem;
  font-weight: 800;
  color: white;
  margin: 0 0 32px 0;
  line-height: 1.2;
  font-family: var(--font-secondary);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Article Meta */
.article-meta-modern {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 24px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.meta-primary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 20px;
}

.author-info-modern {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-avatar {
  position: relative;
}

.author-avatar img {
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.author-status {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background: #10b981;
  border-radius: 50%;
  border: 2px solid white;
}

.author-details {
  text-align: left;
}

.author-name {
  margin: 0 0 4px 0;
  font-size: 16px;
  font-weight: 700;
  color: white;
}

.author-name a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.author-name a:hover {
  color: #fbbf24;
}

.author-role {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}

.article-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 500;
}

.stat-item i {
  font-size: 12px;
  opacity: 0.8;
}

/* Social Preview */
.social-preview-modern {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.share-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 500;
}

.share-buttons-preview {
  display: flex;
  gap: 8px;
}

.share-btn-preview {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.3s ease;
}

.share-btn-preview:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Reading Progress */
.reading-progress-modern {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
}

.progress-bar-modern {
  height: 100%;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  width: 0%;
  transition: width 0.3s ease;
}

/* ===== CONTENT AREA ===== */
.content-area-modern {
  padding: 80px 0;
}

.content-layout-modern {
  display: grid;
  grid-template-columns: 0px 1fr 320px;
  gap: 40px;
  position: relative;
}

/* Table of Contents Sidebar */
.toc-sidebar-modern {
  position: sticky;
  top: 120px;
  height: fit-content;
}

.toc-container {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.toc-header {
  padding: 20px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.toc-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #1f2937;
}

.toc-toggle {
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.toc-toggle:hover {
  background: #f3f4f6;
  color: #374151;
}

.toc-content {
  padding: 16px 0;
  max-height: 400px;
  overflow-y: auto;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list li {
  margin-bottom: 4px;
}

.toc-list a {
  display: block;
  padding: 8px 20px;
  color: #6b7280;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.toc-list a:hover {
  background: #f8fafc;
  color: #3b82f6;
  border-left-color: #3b82f6;
}

.toc-list a.active {
  background: #eff6ff;
  color: #3b82f6;
  border-left-color: #3b82f6;
  font-weight: 600;
}

/* Main Article */
.article-main-modern {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
}

.article-content-modern {
  position: relative;
}

/* Featured Image */
.featured-image-modern {
  margin-bottom: 40px;
}

.image-container {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-container:hover .image-overlay {
  opacity: 1;
}

.image-container:hover img {
  transform: scale(1.05);
}

.image-zoom-btn {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  color: #1f2937;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.3s ease;
}

.image-zoom-btn:hover {
  background: white;
  transform: scale(1.1);
}

.image-caption {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  font-size: 14px;
  font-style: italic;
}

/* Article Body */
.article-body-modern {
  padding: 40px;
  font-size: 18px;
  line-height: 1.8;
  color: #374151;
}

.article-body-modern h2,
.article-body-modern h3,
.article-body-modern h4 {
  color: #1f2937;
  font-weight: 700;
  margin: 32px 0 16px 0;
  font-family: var(--font-secondary);
  scroll-margin-top: 120px;
}

.article-body-modern h2 {
  font-size: 32px;
  border-bottom: 3px solid #3b82f6;
  padding-bottom: 8px;
}

.article-body-modern h3 {
  font-size: 26px;
}

.article-body-modern h4 {
  font-size: 22px;
}

.article-body-modern p {
  margin-bottom: 24px;
}

.article-body-modern blockquote {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-left: 4px solid #3b82f6;
  padding: 24px 28px;
  margin: 32px 0;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  font-size: 20px;
  color: #1e40af;
  position: relative;
}

.article-body-modern blockquote::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-size: 60px;
  color: #3b82f6;
  opacity: 0.3;
}

.article-body-modern ul,
.article-body-modern ol {
  margin: 24px 0;
  padding-left: 28px;
}

.article-body-modern li {
  margin-bottom: 12px;
}

.article-body-modern code {
  background: #f1f5f9;
  padding: 4px 8px;
  border-radius: 6px;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 16px;
  color: #e11d48;
  border: 1px solid #e2e8f0;
}

.article-body-modern pre {
  background: #1f2937;
  color: #f9fafb;
  padding: 24px;
  border-radius: 12px;
  overflow-x: auto;
  margin: 32px 0;
  border: 1px solid #374151;
}

.article-body-modern pre code {
  background: none;
  color: inherit;
  padding: 0;
  border: none;
}

/* Page Links */
.page-links-modern {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.page-links-title {
  font-weight: 600;
  color: #374151;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #f3f4f6;
  color: #6b7280;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.page-link:hover {
  background: #3b82f6;
  color: white;
  transform: translateY(-2px);
}

/* Article Footer */
.article-footer-modern {
  padding: 40px;
  border-top: 1px solid #e5e7eb;
}

/* Tags Section */
.tags-section-modern {
  margin-bottom: 40px;
}

.tags-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.tags-header i {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
}

.tags-header h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-modern {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #f1f5f9;
  color: #475569;
  text-decoration: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.tag-modern:hover {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
  transform: translateY(-2px);
}

.tag-modern i {
  font-size: 12px;
}

/* Social Share */
.social-share-modern {
  margin-bottom: 40px;
  text-align: center;
}

.share-header {
  margin-bottom: 24px;
}

.share-header i {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  margin: 0 auto 16px;
}

.share-header h4 {
  margin: 0 0 8px 0;
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
}

.share-header p {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
}

.share-buttons-modern {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.share-buttons-modern .share-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  color: white;
}

.share-buttons-modern .share-btn.facebook {
  background: #1877f2;
}

.share-buttons-modern .share-btn.twitter {
  background: #1da1f2;
}

.share-buttons-modern .share-btn.linkedin {
  background: #0077b5;
}

.share-buttons-modern .share-btn.pinterest {
  background: #bd081c;
}

.share-buttons-modern .share-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Article Rating */
.article-rating-modern {
  text-align: center;
  padding: 32px;
  background: #f8fafc;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
}

.rating-header h4 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
}

.rating-header p {
  margin: 0 0 24px 0;
  color: #6b7280;
  font-size: 14px;
}

.rating-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.rating-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  background: white;
  color: #6b7280;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.rating-btn.positive:hover {
  background: #10b981;
  color: white;
  border-color: #10b981;
}

.rating-btn.negative:hover {
  background: #ef4444;
  color: white;
  border-color: #ef4444;
}

.rating-feedback {
  margin-top: 20px;
}

.rating-feedback textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  resize: vertical;
  margin-bottom: 12px;
}

.submit-feedback-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.submit-feedback-btn:hover {
  background: #2563eb;
}

/* Author Bio */
.author-bio-modern {
  margin: 60px 0;
}

.bio-container {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
}

.bio-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}

.author-avatar-large {
  position: relative;
}

.author-avatar-large img {
  border-radius: 50%;
  border: 3px solid #e5e7eb;
}

.author-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  background: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  border: 2px solid white;
}

.author-info-large {
  flex: 1;
}

.author-name-large {
  margin: 0 0 8px 0;
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
}

.author-name-large a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.author-name-large a:hover {
  color: #3b82f6;
}

.author-title-large {
  color: #6b7280;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 16px;
  display: block;
}

.author-stats {
  display: flex;
  gap: 24px;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.bio-content p {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 20px;
}

.author-social {
  display: flex;
  gap: 12px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #f8fafc;
  color: #6b7280;
  text-decoration: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

.social-link:hover {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
  transform: translateY(-2px);
}

.social-link.twitter:hover {
  background: #1da1f2;
  border-color: #1da1f2;
}

.social-link.linkedin:hover {
  background: #0077b5;
  border-color: #0077b5;
}

/* Related Posts */
.related-posts-modern {
  margin: 60px 0;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.section-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  flex-shrink: 0;
}

.section-title h2 {
  margin: 0 0 8px 0;
  font-size: 28px;
  font-weight: 700;
  color: #1f2937;
}

.section-title p {
  margin: 0;
  color: #6b7280;
  font-size: 16px;
}

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

.related-post-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.related-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.related-post-image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.related-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-post-card:hover .related-post-image img {
  transform: scale(1.05);
}

.related-post-image .image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: white;
  font-size: 20px;
}

.related-post-card:hover .related-post-image .image-overlay {
  opacity: 1;
}

.post-category {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  color: white;
}

.post-category.medical-bg {
  background: #ef4444;
}

.post-category.online-bg {
  background: #10b981;
}

.post-category.professional-bg {
  background: #8b5cf6;
}

.post-category.usa-bg {
  background: #3b82f6;
}

.related-post-content {
  padding: 20px;
}

.related-post-title {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.related-post-title a {
  color: #1f2937;
  text-decoration: none;
  transition: color 0.3s ease;
}

.related-post-title a:hover {
  color: #3b82f6;
}

.related-post-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 12px;
  color: #6b7280;
}

.post-date,
.reading-time {
  display: flex;
  align-items: center;
  gap: 4px;
}

.related-post-excerpt {
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 16px;
  font-size: 14px;
}

.related-post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-author img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.post-author span {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
}

.read-more-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: #3b82f6;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.read-more-btn:hover {
  background: #2563eb;
  transform: translateX(2px);
}

/* Content Sidebar */
.content-sidebar-modern {
  position: sticky;
  top: 120px;
  height: fit-content;
}

.sidebar-sticky {
  position: sticky;
  top: 120px;
}

/* Comments Section */
.comments-section-modern {
  margin-top: 60px;
  padding: 40px;
  background: #f8fafc;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
}

/* Floating Actions */
.floating-actions-modern {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
}

.floating-btn {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
}

.floating-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.floating-btn.share-floating {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.floating-btn.share-floating:hover {
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.floating-btn.bookmark-floating {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.floating-btn.bookmark-floating:hover {
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.floating-btn.print-floating {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  box-shadow: 0 4px 20px rgba(107, 114, 128, 0.3);
}

.floating-btn.print-floating:hover {
  box-shadow: 0 8px 25px rgba(107, 114, 128, 0.4);
}

.floating-btn.scroll-top {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.floating-btn.scroll-top:hover {
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

/* Image Zoom Modal */
.image-zoom-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.zoom-overlay {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.zoom-container {
  position: relative;
}

#zoom-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.zoom-close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s ease;
}

.zoom-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
  .content-layout-modern {
    grid-template-columns: 1fr 300px;
    gap: 30px;
  }
  
  .toc-sidebar-modern {
    display: none;
  }
}

@media (max-width: 1024px) {
  .content-layout-modern {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .meta-primary {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .article-stats {
    justify-content: center;
  }
  
  .social-preview-modern {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .article-title-modern {
    font-size: 2.5rem;
  }
  
  .article-body-modern {
    padding: 24px;
    font-size: 16px;
  }
  
  .article-footer-modern {
    padding: 24px;
  }
  
  .bio-header {
    flex-direction: column;
    text-align: center;
  }
  
  .author-stats {
    justify-content: center;
  }
  
  .section-header {
    flex-direction: column;
    text-align: center;
  }
  
  .related-posts-grid {
    grid-template-columns: 1fr;
  }
  
  .floating-actions-modern {
    bottom: 20px;
    right: 20px;
  }
  
  .floating-btn {
    width: 48px;
    height: 48px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .article-title-modern {
    font-size: 2rem;
  }
  
  .single-hero-modern {
    padding: 80px 0 60px;
  }
  
  .content-area-modern {
    padding: 60px 0;
  }
  
  .breadcrumb-items {
    justify-content: flex-start;
  }
  
  .tags-list {
    justify-content: center;
  }
  
  .author-social {
    flex-direction: column;
    align-items: center;
  }
  
  .rating-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
  .hero-particles,
  .badge-shine {
    animation: none;
  }
  
  .floating-btn,
  .tag-modern,
  .social-link {
    transition: none;
  }
  
  .floating-btn:hover,
  .related-post-card:hover {
    transform: none;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
  .article-main-modern,
  .bio-container,
  .related-post-card {
    border: 2px solid #000;
  }
  
  .floating-btn {
    background: #000;
    border: 2px solid #000;
  }
  
  .tag-modern,
  .social-link {
    border: 2px solid #000;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .single-hero-modern,
  .floating-actions-modern,
  .toc-sidebar-modern,
  .social-share-modern,
  .comments-section-modern {
    display: none;
  }
  
  .content-layout-modern {
    grid-template-columns: 1fr;
  }
  
  .article-main-modern {
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  .article-body-modern {
    font-size: 12pt;
    line-height: 1.5;
  }
  
  .related-post-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
}