/**
 * Blog Post Article Styles
 * Styles specific to individual blog post pages
 */

/* Main Article Container */
body {
  word-break: break-word;
}

main {
  padding-top: 100px;
  min-height: calc(100vh - 400px);
  background-color: #f8f9fa;
  padding-bottom: 1rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

main>article {
  max-width: 1200px;
  width: 100%;
  padding: 3rem 2rem;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  margin-top: 2rem;
  margin-bottom: 2rem;
  flex-shrink: 1;
}

/* Breadcrumb Navigation */
.breadcrumb {
  padding: 0 0 1rem 0;
  margin-bottom: 1rem;
  border-bottom: 1px solid #e0e0e0;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: #667eea;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: #5568d3;
  text-decoration: underline;
}

.breadcrumb span {
  color: #999;
  margin: 0 0.5rem;
}

/* Two-column Layout for TOC and Content - REMOVED, TOC now outside article */

/* Table of Contents (Left Sidebar) - Now positioned to the left of article */
.toc-sidebar {
  position: sticky;
  top: 120px;
  /* Fixed header height + some padding */
  max-height: calc(100vh - 140px);
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #d0d7de;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  width: 240px;
  flex-shrink: 0;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Hide TOC when viewport is too narrow to accommodate both TOC and article */
/* TOC (240px) + gap (2rem) + minimum comfortable article width (~700px) + padding */
@media (max-width: 1024px) {
  .toc-sidebar {
    display: none;
  }

  main {
    justify-content: center;
  }
}

.toc-sidebar h3 {
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0;
  padding: 1.25rem 1.25rem 0.75rem 1.25rem;
  color: #1f2937;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 2px solid #e5e7eb;
  flex-shrink: 0;
  background-color: #ffffff;
}

.toc-sidebar nav {
  display: block;
  overflow-y: auto;
  padding: 0.75rem 1.25rem 1.25rem 1.25rem;
  flex: 1;
  min-height: 0;
}

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

.toc-sidebar li {
  margin-bottom: 0.35rem;
}

/* H2 headings in TOC - Make bolder and more prominent */
.toc-sidebar li.toc-h2 {
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
}

.toc-sidebar li.toc-h2:first-child {
  margin-top: 0;
}

.toc-sidebar li.toc-h2>a {
  font-weight: 600;
  font-size: 0.95rem;
  color: #374151;
}

/* H3 headings in TOC - Indented and lighter */
.toc-sidebar li.toc-h3 {
  padding-left: 1rem;
  margin-bottom: 0.25rem;
}

.toc-sidebar li.toc-h3>a {
  font-size: 0.875rem;
  color: #6b7280;
}

.toc-sidebar a {
  display: block;
  text-decoration: none;
  line-height: 1.4;
  padding: 0.35rem 0.6rem;
  border-radius: 5px;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.1s ease;
}

.toc-sidebar a:hover {
  color: #667eea;
  background-color: rgba(102, 126, 234, 0.08);
  transform: translateX(2px);
}

.toc-sidebar a.active {
  color: #667eea;
  font-weight: 700;
  background-color: rgba(102, 126, 234, 0.12);
  border-left: 3px solid #667eea;
  padding-left: calc(0.6rem - 3px);
}

/* Post Metadata */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e0e0e0;
  color: #666;
  font-size: 0.95rem;
}

/* Auto-translated Notice */
.auto-translated-notice {
  background-color: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 4px;
}

.auto-translated-notice span {
  color: #856404;
}

.auto-translated-notice .original-lang-text {
  font-size: 0.9rem;
  margin-top: 0.25rem;
  display: inline-block;
}

.auto-translated-notice .original-lang-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid #667eea;
  transition: all 0.3s ease;
}

.auto-translated-notice .original-lang-link:hover {
  color: #5568d3;
  border-bottom-color: #5568d3;
}

/* Post Tags */
.post-tags {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.post-tags .tag {
  display: inline-block;
  /* Color is set dynamically via inline style based on background luminance */
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

/* Tag link hover effects */
.post-tags .tag-link {
  display: inline-block;
  transition: none;
}

.post-tags .tag-link:hover .tag {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  filter: brightness(1.1);
}

.post-tags .tag-link:active .tag {
  transform: translateY(0) scale(1.02);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Back to Blog Link and Share Button Container */
.back-to-blog {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.back-to-blog a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.back-to-blog a svg {
  width: 20px;
  height: 20px;
}

.back-to-blog a:hover {
  color: #5568d3;
}

/* Share Button Styles */
.share-button-container {
  display: flex;
  align-items: center;
  position: relative;
}

.share-dropdown {
  position: relative;
  display: inline-block;
}

.share-button {
  background: none;
  color: #667eea;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-button:hover {
  color: #5568d3;
  transform: scale(1.1);
}

.share-button:active {
  transform: scale(1);
}

.share-button svg {
  width: 24px;
  height: 24px;
}

/* Responsive Design */
/* Carousel Styles */
.carousel {
  position: relative;

  margin: 2rem auto;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.carousel-container {
  display: flex;
  border-radius: 8px;
}

.carousel-slide {
  box-sizing: border-box;
  flex: 0 0 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f9f9f9;
  padding: 2rem;
}

.carousel-slide .carousel-image-container {
  width: 100%;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.carousel-slide .carousel-image-container img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
}

.carousel-slide .caption {
  margin-top: 1rem;
  text-align: center;
  color: #555;
  font-size: 0.95rem;
  min-height: 3em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 0.5rem;
  pointer-events: none;
}

.carousel-btn {
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 50%;
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  flex-shrink: 0;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.carousel-dots {
  text-align: center;
  padding: 1rem;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
}

.carousel-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
  margin: 0 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.carousel-dot.active {
  background: #333;
}

/* ===== POST CONTENT TYPOGRAPHY ===== */

/* Main Title */
article h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: #1a1a1a;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

/* Section Headings */
article h2 {
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1.3;
  color: #2d3748;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

article h3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
  color: #374151;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

article h4 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  color: #4b5563;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Paragraphs */
.post-content p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #374151;
  margin-bottom: 1.25rem;
  text-align: justify;
}

/* First paragraph after heading - slightly larger */
.post-content h2+p,
.post-content h3+p {
  font-size: 1.125rem;
  color: #1f2937;
}

/* Lists */
.post-content ul,
.post-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #374151;
}

/* Figures with captions */
.post-content figure {
  margin: 2rem 0;
  padding: 1.5rem;
  background-color: #f9fafb;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.post-content figure.figure--small {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.post-content figure.figure--medium {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.post-content figure.figure--large {
  max-width: 100%;
}

.post-content figure img {
  margin: 0;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  width: 100%;
  height: auto;
  display: block;
}

.post-content figcaption {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #6b7280;
  border-top: 1px solid #e5e7eb;
  padding-top: 1rem;
  text-align: center;
}

.post-content li {
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
}

.post-content li::marker {
  color: #667eea;
  font-weight: 600;
}

.post-content ul ul,
.post-content ol ol,
.post-content ul ol,
.post-content ol ul {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Nested lists */
.post-content li>ul,
.post-content li>ol {
  margin-top: 0.75rem;
}

/* Strong/Bold text */
.post-content strong {
  font-weight: 700;
  color: #1f2937;
}

/* Emphasis/Italic text */
.post-content em {
  font-style: italic;
  color: #4b5563;
}

/* Inline code */
.post-content code {
  background-color: #f3f4f6;
  color: #e53e3e;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Droid Sans Mono', 'Source Code Pro', monospace;
  border: 1px solid #e5e7eb;
}

/* Code blocks */
.post-content pre {
  background-color: #1f2937;
  color: #f9fafb;
  padding: 1.25rem;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1.5rem 0;
  line-height: 1.5;
  font-size: 0.9375rem;
}

.post-content pre code {
  background-color: transparent;
  color: inherit;
  padding: 0;
  border: none;
  font-size: inherit;
}

/* Links */
.post-content a {
  color: #667eea;
  text-decoration: none;
  border-bottom: 1px solid rgba(102, 126, 234, 0.3);
  transition: all 0.2s ease;
  font-weight: 500;
}

.post-content a:hover {
  color: #5568d3;
  border-bottom-color: #5568d3;
}

/* Blockquotes */
.post-content blockquote {
  border-left: 4px solid #667eea;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background-color: #f8f9ff;
  border-radius: 4px;
  font-style: italic;
  color: #4b5563;
}

.post-content blockquote p:last-child {
  margin-bottom: 0;
}

/* Section spacing */
.post-content section {
  margin-bottom: 2.5rem;
}

.post-content section:last-child {
  margin-bottom: 0;
}

/* Images */
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Demo videos in posts */
.post-content .demo-video-wrapper,
article .demo-video-wrapper {
  position: relative;
  width: min(100%, 920px);
  margin: 1.75rem auto;
}

.post-content .demo-video,
article .demo-video {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 100%);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16), 0 6px 14px rgba(15, 23, 42, 0.08);
}

.demo-video-play-toggle,
.demo-video-fullscreen-toggle {
  position: absolute;
  z-index: 2;
  border: 0;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}

.demo-video-play-toggle {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
}

.demo-video-fullscreen-toggle {
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
}

.demo-video-play-toggle:hover,
.demo-video-fullscreen-toggle:hover {
  background: rgba(17, 24, 39, 0.88);
}

.demo-video-play-toggle:active,
.demo-video-fullscreen-toggle:active {
  transform: translate(-50%, -50%) scale(0.96);
}

.demo-video-fullscreen-toggle:active {
  transform: scale(0.96);
}

.demo-video-play-toggle:focus-visible,
.demo-video-fullscreen-toggle:focus-visible {
  outline: 3px solid rgba(99, 102, 241, 0.65);
  outline-offset: 2px;
}

.demo-video-play-toggle svg,
.demo-video-fullscreen-toggle svg {
  width: 24px;
  height: 24px;
}

.demo-video-wrapper:hover .demo-video-play-toggle,
.demo-video-wrapper:focus-within .demo-video-play-toggle {
  opacity: 1;
  pointer-events: auto;
}

.demo-video-wrapper:hover .demo-video-fullscreen-toggle,
.demo-video-wrapper:focus-within .demo-video-fullscreen-toggle,
.demo-video-wrapper:hover .demo-video-progress,
.demo-video-wrapper:focus-within .demo-video-progress {
  opacity: 1;
  pointer-events: auto;
}

.demo-video-wrapper.controls-visible .demo-video-play-toggle,
.demo-video-wrapper.controls-visible .demo-video-fullscreen-toggle,
.demo-video-wrapper.controls-visible .demo-video-progress {
  opacity: 1;
  pointer-events: auto;
}

.demo-video-wrapper.controls-idle:hover .demo-video-play-toggle,
.demo-video-wrapper.controls-idle:hover .demo-video-fullscreen-toggle,
.demo-video-wrapper.controls-idle:hover .demo-video-progress,
.demo-video-wrapper.controls-idle:focus-within .demo-video-play-toggle,
.demo-video-wrapper.controls-idle:focus-within .demo-video-fullscreen-toggle,
.demo-video-wrapper.controls-idle:focus-within .demo-video-progress {
  opacity: 0;
  pointer-events: none;
}

.demo-video-progress {
  position: absolute;
  left: 12px;
  right: 62px;
  bottom: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.demo-video-progress-bar {
  appearance: none;
  width: 100%;
  height: 4px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.demo-video-progress-bar::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0;
  background: #ffffff;
}

.demo-video-progress-bar::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0;
  background: #ffffff;
}

.demo-video-time {
  color: #ffffff;
  font-size: 0.75rem;
  line-height: 1;
  min-width: 76px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.demo-video-wrapper.is-fullscreen {
  width: 100%;
  max-width: none;
}

.post-content .demo-video:focus-visible,
article .demo-video:focus-visible {
  outline: 3px solid rgba(102, 126, 234, 0.45);
  outline-offset: 2px;
}

/* Tables */
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 1rem;
}

.post-content th,
.post-content td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.post-content th {
  background-color: #f9fafb;
  font-weight: 600;
  color: #1f2937;
  border-bottom: 2px solid #d1d5db;
}

.post-content tr:hover {
  background-color: #f9fafb;
}

/* Horizontal Rule */
.post-content hr {
  border: none;
  border-top: 2px solid #e5e7eb;
  margin: 2.5rem 0;
}

/* Responsive Typography */
@media (max-width: 768px) {
  article h1 {
    font-size: 2rem;
  }

  article h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
  }

  article h3 {
    font-size: 1.25rem;
  }

  .post-content p,
  .post-content ul,
  .post-content ol {
    font-size: 1rem;
    text-align: left;
  }

  .post-content h2+p,
  .post-content h3+p {
    font-size: 1rem;
  }

  .post-content ul,
  .post-content ol {
    padding-left: 1.5rem;
  }

  .post-content pre {
    padding: 1rem;
    font-size: 0.875rem;
  }

  .post-content .demo-video-wrapper,
  article .demo-video-wrapper {
    margin: 1.25rem auto;
  }

  .post-content .demo-video,
  article .demo-video {
    border-radius: 10px;
  }

  .demo-video-play-toggle {
    width: 54px;
    height: 54px;
  }

  .demo-video-fullscreen-toggle {
    width: 38px;
    height: 38px;
    right: 10px;
    bottom: 10px;
  }

  .demo-video-progress {
    left: 10px;
    right: 54px;
    bottom: 10px;
    gap: 0.45rem;
    padding: 0.3rem 0.45rem;
  }

  .demo-video-time {
    min-width: 68px;
    font-size: 0.7rem;
  }

  .demo-video-play-toggle svg,
  .demo-video-fullscreen-toggle svg {
    width: 20px;
    height: 20px;
  }
}

.share-menu {
  position: absolute;
  bottom: 100%;
  right: 0;
  transform: translateY(-10px);
  margin-bottom: 0.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  max-width: calc(100vw - 2rem);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.share-menu.expand-down {
  bottom: auto;
  top: 100%;
  transform: translateY(10px);
  margin-bottom: 0;
  margin-top: 0.5rem;
}

.share-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.share-menu::before {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 12px;
  transform: rotate(45deg);
  width: 16px;
  height: 16px;
  background: white;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.05);
}

.share-menu.expand-down::before {
  bottom: auto;
  top: -8px;
  box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.05);
}

.share-menu-content {
  position: relative;
  z-index: 1;
  background: white;
  border-radius: 12px;
  overflow: hidden;
}

.share-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  text-decoration: none;
  color: #374151;
  transition: background-color 0.2s ease;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  background: white;
}

.share-link:hover {
  background-color: #f3f4f6;
}

.share-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.share-link.facebook {
  color: #1877f2;
}

.share-link.line {
  color: #00c300;
}

.share-link.copylink {
  color: #667eea;
}

.share-link.email {
  color: #ea580c;
}

.share-link+.share-link {
  border-top: 1px solid #e5e7eb;
}

/* Toast notification for copy success */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #10b981;
  color: white;
  padding: 0.875rem 1.25rem;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 101;
  font-weight: 500;
}

.toast-notification.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Article Feedback Widget */
.article-feedback {
  margin-top: 3rem;
  padding: 2rem;
}

.article-feedback .feedback-question h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #374151;
  margin: 0 0 1.5rem 0;
  text-align: center;
}

.article-feedback .feedback-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.article-feedback .feedback-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8em;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  width: 100px;
  transition: all 0.3s ease;
  background: white;
  color: #4b5563;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.article-feedback .feedback-btn svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.article-feedback .feedback-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.article-feedback .feedback-yes:hover {
  border-color: #10b981;
  color: #10b981;
  background: #f0fdf4;
}

.article-feedback .feedback-no:hover {
  border-color: #ef4444;
  color: #ef4444;
  background: #fef2f2;
}

.article-feedback .feedback-btn:active {
  transform: translateY(0);
}

.article-feedback .feedback-thankyou {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  animation: fadeIn 0.5s ease;
}

.article-feedback .feedback-thankyou svg {
  width: 48px;
  height: 48px;
  color: #10b981;
  stroke-width: 2;
}

.article-feedback .feedback-thankyou p {
  font-size: 1.125rem;
  font-weight: 600;
  color: #10b981;
  margin: 0;
  text-align: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .share-button {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .share-menu {
    min-width: 180px;
  }

  .toast-notification {
    font-size: 0.9rem;
  }

  .article-feedback {
    padding: 1.5rem 1rem;
  }

  .article-feedback .feedback-question h3 {
    font-size: 1.125rem;
  }

  .article-feedback .feedback-buttons {
    flex-direction: column;
  }

  .article-feedback .feedback-btn {
    width: 100%;
    justify-content: center;
    padding: 1rem;
  }
}

/* Responsive Design */
@media (max-width: 1200px) {
  article {
    padding: 1rem;
  }

  main {
    padding-top: 80px;
    padding-bottom: 0px;
  }
}

/* Remove old mobile media query - now handled by width-based calculation */
