/* iFeeltech Guides - Minimal Styling */

/* Brand Colors:
   - Orange: #ff7441 (links, CTAs)
   - Light gray: #f9f9f9 (content boxes)
   - Text: #2c3e50
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1f2937;
  background: #ffffff;
  line-height: 1.75;
  padding: 0;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header & Navbar */
header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.logo:hover {
  transform: translateY(-1px);
}

.logo-icon {
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  letter-spacing: -0.02em;
}

.logo-guides {
  color: #ff7441;
  font-weight: 600;
}

/* Desktop Navigation */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: #6b7280;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.625rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.nav-link:hover {
  background: #f9fafb;
  color: #ff7441;
  text-decoration: none;
}

/* CTA Button */
.nav-cta {
  display: inline-flex;
  align-items: center;
  color: white;
  background: linear-gradient(135deg, #ff7441 0%, #ff8c5a 100%);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(255, 116, 65, 0.2);
  margin-left: 0.5rem;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 116, 65, 0.3);
  text-decoration: none;
  color: white;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.dropdown-toggle svg {
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-toggle svg,
.dropdown-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 200px;
  background: white;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
}

.nav-dropdown:hover .dropdown-menu,
.dropdown-toggle[aria-expanded="true"] + .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.75rem 1rem;
  color: #6b7280;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.dropdown-item:hover {
  background: #fef3f0;
  color: #ff7441;
  text-decoration: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-right: -0.5rem;
}

.hamburger-line {
  width: 24px;
  height: 2px;
  background: #6b7280;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

main.content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  position: relative;
}

main.home-content {
  max-width: 1200px;
  padding: 0;
}

main.home-content > h1:first-child {
  display: none;
}

h1 {
  font-size: 2.75rem;
  margin-bottom: 1.25rem;
  color: #111827;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.025em;
}

h2 {
  font-size: 1.875rem;
  margin-top: 3.5rem;
  margin-bottom: 1.25rem;
  color: #111827;
  font-weight: 700;
  letter-spacing: -0.015em;
  scroll-margin-top: 100px;
}

h3 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #1f2937;
  font-weight: 700;
  scroll-margin-top: 100px;
}

p {
  margin-bottom: 1.75rem;
  line-height: 1.8;
  color: #374151;
  max-width: 70ch;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  color: #6b7280;
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #f3f4f6;
}

.date, .reading-time {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  color: #6b7280;
}

.date::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  background: #d1d5db;
  border-radius: 50%;
  margin-right: 0.5rem;
}

.reading-time::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  background: #d1d5db;
  border-radius: 50%;
  margin-right: 0.5rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-left: 0;
}

.tag {
  display: inline-block;
  background: #fef3f0;
  color: #ff7441;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.tag:hover {
  background: #ff7441;
  color: white;
}

a {
  color: #ff7441;
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  text-decoration: underline;
  color: #e66335;
}

ul, ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 0.5rem;
}

blockquote, .box {
  background: linear-gradient(135deg, #fef3f0 0%, #fef7f5 100%);
  padding: 1.5rem 1.75rem;
  border-left: 4px solid #ff7441;
  border-radius: 8px;
  margin: 2rem 0;
  box-shadow: 0 2px 8px rgba(255, 116, 65, 0.08);
  font-style: italic;
  color: #1f2937;
}

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

code {
  background: #f3f4f6;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: "SF Mono", "Monaco", "Courier New", monospace;
  font-size: 0.875em;
  color: #e63946;
  font-weight: 500;
}

pre {
  background: #1f2937;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 2rem 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
}

pre code {
  background: none;
  padding: 0;
  color: #e5e7eb;
  font-weight: 400;
}

footer {
  background: #fafafa;
  border-top: 1px solid #e5e7eb;
  margin-top: 0;
  font-size: 0.9rem;
  color: #6b7280;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  text-align: center;
}

footer p {
  margin-bottom: 0.5rem;
  max-width: none;
}

footer a {
  color: #ff7441;
  font-weight: 500;
}

.footer-links {
  margin: 0.75rem 0;
  font-size: 0.875rem;
}

.footer-links a {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #ff7441;
}

.footer-tagline {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #9ca3af;
}

/* Featured Image */
.featured-image {
  margin: -2rem -1.5rem 3rem;
  border-radius: 0;
  overflow: hidden;
  position: relative;
}

.featured-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 116, 65, 0.15) 0%,
    rgba(255, 140, 90, 0.08) 50%,
    rgba(31, 41, 55, 0.12) 100%
  );
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.featured-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 0.4) 0%,
    transparent 100%
  );
  z-index: 2;
  pointer-events: none;
}

.featured-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  filter: contrast(1.05) saturate(1.1);
}

.image-credit {
  font-size: 0.75rem;
  color: #9ca3af;
  text-align: right;
  padding: 0.5rem 1rem;
  background: #f9fafb;
  margin: 0;
}

/* Article Content */
.article-content {
  font-size: 1.05rem;
}

.article-content > p:first-of-type {
  font-size: 1.15rem;
  color: #374151;
  line-height: 1.8;
}

/* Tables */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2.5rem 0;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

thead {
  background: linear-gradient(135deg, #ff7441 0%, #ff8c5a 100%);
  color: white;
}

th {
  padding: 1.125rem 1.25rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

td {
  padding: 1.125rem 1.25rem;
  border-bottom: 1px solid #f3f4f6;
  background: white;
}

tbody tr:hover td {
  background: #fef3f0;
  transition: background 0.2s ease;
}

tbody tr:nth-child(even) td {
  background: #fafafa;
}

tbody tr:nth-child(even):hover td {
  background: #fef3f0;
}

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

/* Lists */
ul, ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

li {
  margin-bottom: 0.875rem;
  line-height: 1.75;
  color: #374151;
}

li strong {
  color: #111827;
  font-weight: 700;
}

ul li {
  list-style-type: none;
  position: relative;
  padding-left: 1.5rem;
}

ul li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  background: linear-gradient(135deg, #ff7441 0%, #ff8c5a 100%);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(255, 116, 65, 0.3);
}

/* CTA Box */
.related-cta {
  background: linear-gradient(135deg, #ff7441 0%, #ff8c5a 100%);
  color: white;
  padding: 3rem 2.5rem;
  border-radius: 16px;
  margin: 5rem 0 5rem;
  text-align: center;
  box-shadow: 0 12px 32px rgba(255, 116, 65, 0.25);
}

.related-cta h3 {
  color: white;
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

.related-cta p {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.cta-button {
  display: inline-block;
  background: white;
  color: #ff7441;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  background: #fff;
}

/* Homepage Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin: 0 auto;
  padding: 0 2rem 5rem;
  max-width: 1200px;
}

.article-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #f3f4f6;
  position: relative;
}

.article-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 220px;
  background: linear-gradient(
    135deg,
    rgba(255, 116, 65, 0.12) 0%,
    rgba(255, 140, 90, 0.06) 50%,
    rgba(31, 41, 55, 0.08) 100%
  );
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: multiply;
  transition: opacity 0.4s ease;
}

.article-card:hover::before {
  opacity: 0.7;
}

.article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(255, 116, 65, 0.08);
  border-color: #ff7441;
}

.article-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
  filter: contrast(1.05) saturate(1.08);
}

.article-card:hover img {
  transform: scale(1.05);
  filter: contrast(1.08) saturate(1.12);
}

.article-card-content {
  padding: 1.75rem;
}

.article-card h2 {
  font-size: 1.35rem;
  margin: 0 0 0.875rem 0;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.article-card h2 a {
  color: #1a202c;
  text-decoration: none;
}

.article-card h2 a:hover {
  color: #ff7441;
}

.article-card p {
  color: #6b7280;
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
  line-height: 1.65;
}

.article-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: #9ca3af;
}

.hero-section {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
  border-bottom: 1px solid #e5e7eb;
  margin: 0 0 3rem 0;
}

.hero-section h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero-section p {
  font-size: 1.125rem;
  color: #6b7280;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.7;
}

.home-cta {
  text-align: center;
  margin: 5rem auto 5rem;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
  border-radius: 16px;
  border: 2px solid #e5e7eb;
  max-width: 800px;
}

.home-cta p {
  font-size: 1.125rem;
  color: #6b7280;
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

.home-cta .cta-button {
  background: linear-gradient(135deg, #ff7441 0%, #ff8c5a 100%);
  color: white;
  padding: 1rem 2.5rem;
  font-size: 1.0625rem;
  box-shadow: 0 4px 12px rgba(255, 116, 65, 0.25);
}

.home-cta .cta-button:hover {
  background: linear-gradient(135deg, #ff8c5a 0%, #ff7441 100%);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 116, 65, 0.35);
}

/* Reading Progress Bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #ff7441 0%, #ff8c5a 100%);
  z-index: 1000;
  transition: width 0.1s ease-out;
  box-shadow: 0 2px 4px rgba(255, 116, 65, 0.3);
}

/* Compact TOC Toggle Button */
.toc-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #ff7441 0%, #ff8c5a 100%);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(255, 116, 65, 0.3);
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: none;
  color: white;
  font-size: 1.5rem;
}

.toc-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(255, 116, 65, 0.4);
}

.toc-toggle.active {
  background: #1f2937;
}

/* Compact TOC Panel */
.table-of-contents {
  position: fixed;
  bottom: 5.5rem;
  right: 2rem;
  width: 320px;
  max-height: 400px;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.table-of-contents.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.table-of-contents h4 {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  margin: 0 0 1rem 0;
}

.table-of-contents ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.table-of-contents li {
  margin-bottom: 0.5rem;
}

.table-of-contents li:before {
  display: none;
}

.table-of-contents a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: #6b7280;
  text-decoration: none;
  font-size: 0.875rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  border-left: 2px solid transparent;
}

.table-of-contents a:hover {
  background: #fafafa;
  color: #ff7441;
  border-left-color: #ff7441;
  padding-left: 1rem;
}

.table-of-contents a.active {
  background: #fef3f0;
  color: #ff7441;
  font-weight: 600;
  border-left-color: #ff7441;
}

/* Related Articles */
.related-articles {
  margin: 4rem 0 3rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
  border-radius: 16px;
  border: 1px solid #e5e7eb;
}

.related-articles h3 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: #111827;
}

.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.related-article-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  transition: all 0.3s ease;
}

.related-article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  border-color: #ff7441;
}

.related-article-card h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.125rem;
  line-height: 1.4;
}

.related-article-card h4 a {
  color: #1f2937;
  text-decoration: none;
}

.related-article-card h4 a:hover {
  color: #ff7441;
}

.related-article-card p {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.6;
}

/* Social Share Buttons */
.social-share {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 3rem 0;
  padding: 1.75rem 2rem;
  background: white;
  border-radius: 16px;
  border: 2px solid #f3f4f6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.social-share-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #374151;
  margin-right: 0.5rem;
  white-space: nowrap;
}

.social-share-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  color: #6b7280;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1.125rem;
  cursor: pointer;
}

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

.share-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  text-decoration: none;
}

.share-button.twitter {
  color: #1DA1F2;
  border-color: #1DA1F2;
  background: #e8f5fe;
}

.share-button.twitter:hover {
  background: #1DA1F2;
  color: white;
  border-color: #1DA1F2;
}

.share-button.linkedin {
  color: #0A66C2;
  border-color: #0A66C2;
  background: #e7f3ff;
}

.share-button.linkedin:hover {
  background: #0A66C2;
  color: white;
  border-color: #0A66C2;
}

.share-button.email {
  color: #ff7441;
  border-color: #ff7441;
  background: #fef3f0;
}

.share-button.email:hover {
  background: #ff7441;
  color: white;
  border-color: #ff7441;
}

.share-button.copy {
  color: #6b7280;
  border-color: #d1d5db;
  background: #f3f4f6;
}

.share-button.copy:hover {
  background: #374151;
  color: white;
  border-color: #374151;
}

.share-button.copy.copied {
  background: #10b981;
  color: white;
  border-color: #10b981;
  animation: pulse 0.5s ease;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Copy Code Button */
.code-block-wrapper {
  position: relative;
}

.copy-code-button {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  color: #e5e7eb;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.copy-code-button:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.copy-code-button.copied {
  background: #10b981;
  border-color: #10b981;
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }
  
  /* Mobile Header */
  .header-container {
    padding: 0 1rem;
  }
  
  .navbar {
    height: 64px;
  }
  
  .logo-text {
    font-size: 1.125rem;
  }
  
  .logo-icon {
    width: 28px;
    height: 28px;
  }
  
  /* Mobile Menu */
  .mobile-menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
  }
  
  .nav-menu.active {
    max-height: 400px;
    opacity: 1;
  }
  
  .nav-link,
  .nav-cta {
    width: 100%;
    justify-content: flex-start;
    margin: 0;
    padding: 0.875rem 1rem;
  }
  
  .nav-cta {
    margin-top: 0.5rem;
  }
  
  /* Mobile Dropdown */
  .nav-dropdown {
    width: 100%;
  }
  
  .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0;
    margin-top: 0.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  .dropdown-toggle[aria-expanded="true"] + .dropdown-menu {
    max-height: 300px;
  }
  
  .dropdown-item {
    padding-left: 2rem;
  }
  
  main.content {
    padding: 1.5rem 1rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .featured-image {
    margin: -1.5rem -1rem 2rem;
  }
  
  .featured-image img {
    height: 250px;
  }
  
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .related-cta {
    padding: 2rem 1.5rem;
  }
  
  .nav-link {
    font-size: 0.9rem;
    padding: 0.4rem 0.75rem;
  }
  
  table {
    font-size: 0.85rem;
  }
  
  th, td {
    padding: 0.75rem 0.5rem;
  }
  
  .table-of-contents {
    width: calc(100vw - 4rem);
    right: 2rem;
    left: 2rem;
    bottom: 5rem;
  }
  
  .toc-toggle {
    bottom: 1.5rem;
    right: 1.5rem;
  }
  
  .related-articles-grid {
    grid-template-columns: 1fr;
  }
  
  .social-share {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}
