/* =============================================
   GLOBAL — AcharyaML PDF Tools (Matching new_home.png)
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-main);
  background-color: var(--bg-page);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0px 20px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--text-heading);
  font-weight: 600;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--s-6);
}

/* Header */
#site-header {
  background-color: var(--bg-page);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-light);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-heading);
}

.brand-icon {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--accent-red);
  color: var(--accent-red);
  padding: 0.1rem 0.3rem;
  border-radius: 2px;
}

.serif-italic {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-red);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--s-6);
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
}

.privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0.4rem 0.8rem;
  border-radius: var(--r-full);
  background-color: var(--bg-green-light);
  color: var(--accent-green);
  font-size: 0.85rem;
  font-weight: 600;
}

.privacy-pill svg { width: 14px; height: 14px; fill: currentColor; }

/* Footer */
#site-footer {
  margin-top: auto;
  background-color: var(--bg-page);
  padding: var(--s-16) 0 var(--s-6);
  border-top: 1px solid var(--border-light);
}

.footer-grid {
  display: flex;
  justify-content: space-evenly;
  gap: var(--s-8);
  margin-bottom: var(--s-12);
}

@media (max-width: 768px) {
  .footer-grid {
    flex-direction: column;
    gap: var(--s-10);
  }
}

.footer-brand p {
  margin-top: var(--s-4);
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 320px;
}

.footer-legal-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.footer-legal-buttons a {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-legal-buttons a:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: var(--s-4);
  color: var(--text-heading);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent-red);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  padding-top: var(--s-6);
  border-top: 1px solid var(--border-light);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-trust {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--accent-green);
}

/* SEO Content Related Tools Cards */
.seo-related-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.2s ease;
  margin-bottom: 1rem;
}

.seo-related-card:hover {
  background: rgba(163, 53, 43, 0.04); /* Light stamp color background */
  border-color: var(--stamp);
  color: var(--stamp);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.seo-related-card:active {
  transform: translateY(0);
}
