/* src/components/Demo.css */

.wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  font-family: Arial, sans-serif;
  color: var(--foreground);
}

header {
  text-align: center;
  margin-bottom: 40px;
}

/* Desktop Layout with Side Ads */
.desktop-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.main-content {
  flex: 1;
  min-width: 0;
  max-width: 100%;
}

.left-ad,
.right-ad {
  width: 160px;
  flex-shrink: 0;
  position: sticky;
  top: 20px;
}

/* Hide ads on mobile and tablet */
.desktop-only {
  display: none;
}

@media (min-width: 768px) {
  .desktop-only {
    display: block;
  }
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .desktop-layout {
    flex-direction: column;
  }
  
  .wrapper {
    max-width: 1200px;
  }
}

/* Center Ad Containers */
.center-ad-container {
  width: 100%;
  margin: 40px auto;
  display: flex;
  justify-content: center;
  text-align: center;
  &.mobile-only {
    &:first-child {
      margin-top: 0;
    }
    @media (min-width: 768px) {
      display: none;
    }
  }
}

/* SEO Content Section */
.seo-content {
  margin: 60px 0 40px 0;
  padding: 40px 0;
  background-color: var(--background-elevated);
  border-top: 1px solid var(--border);
}

.seo-container {
  margin: 0 auto;
  padding: 0 20px;
}

.seo-content h2 {
  text-align: center;
  margin-bottom: 40px;
}

.seo-section {
  margin-bottom: 40px;
  padding: 30px;
  background-color: var(--background);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border);
}

@media (prefers-color-scheme: dark) {
  .seo-section {
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
  }
}

.seo-section h3 {
  margin-bottom: 20px;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 10px;
}

.seo-section p {
  color: var(--foreground);
  line-height: 1.7;
  font-size: 16px;
  margin-bottom: 16px;
  text-align: justify;
}

.seo-section p:last-child {
  margin-bottom: 0;
}

/* Code blocks in SEO section */
.seo-section .code-block {
  margin: 24px 0;
}

.seo-section .code-block h4 {
  margin-bottom: 12px;
}

.seo-section .code-ui,
.seo-section .code-block > div {
  max-height: none !important;
  border-radius: 6px;
  font-size: 14px;
}

/* Responsive SEO content */
@media (max-width: 768px) {
  .seo-content h2 {
    font-size: 2rem;
  }
  
  .seo-section h3 {
    font-size: 1.5rem;
  }
  
  .seo-section {
    padding: 20px;
  }
  
  .seo-section p {
    font-size: 15px;
    text-align: left;
  }
}

footer {
  text-align: center;
  margin-top: 40px;
  color: var(--text-muted);
  font-size: 14px;
}

footer a {
  color: var(--primary);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Base Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--foreground);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.5em;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

/* Responsive typography */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.5rem;
  }
  
  h4 {
    font-size: 1.25rem;
  }
  
  h5, h6 {
    font-size: 1rem;
  }
}