/*!
Theme Name: OSA Theme
Theme URI: https://opensource-analytics.com
Author: Open Source Analytics
Description: Modern privacy-first analytics blog theme with Tailwind CSS, glassmorphism, dark mode, and dynamic animations.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: osa-theme
*/

/* Animation delay utilities */
.animation-delay-200 { animation-delay: 200ms; }
.animation-delay-400 { animation-delay: 400ms; }
.animation-delay-600 { animation-delay: 600ms; }
.animation-delay-800 { animation-delay: 800ms; }
.animation-delay-1000 { animation-delay: 1000ms; }
.animation-delay-2000 { animation-delay: 2000ms; }
.animation-delay-4000 { animation-delay: 4000ms; }

/* Elements with fade-in animations start invisible */
[class*="animate-fade-in"],
[class*="animate-slide-in"] {
  opacity: 0;
}

/* Smooth scrollbar */
html {
  scroll-behavior: smooth;
}

/* Line clamp utilities */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Article body styles */
.article-body h2 {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-top: 3rem;
  margin-bottom: 1rem;
}
.article-body h3 {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.article-body p {
  margin-bottom: 1.5rem;
}
.article-body blockquote {
  border-left: 4px solid #4F46E5;
  padding-left: 1.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  margin: 2rem 0;
  font-style: italic;
  border-radius: 0 0.5rem 0.5rem 0;
}
.article-body ul, .article-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}
.article-body li {
  margin-bottom: 0.5rem;
}
.article-body img {
  border-radius: 1rem;
  margin: 2rem 0;
}
.article-body a {
  color: #4F46E5;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-body a:hover {
  color: #3730A3;
}
.article-body pre {
  border-radius: 0.75rem;
  overflow: hidden;
  margin: 2rem 0;
}
.article-body code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
}
.article-body p code {
  background: #F1F5F9;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

/* Dark mode article body overrides */
.dark .article-body blockquote {
  background: rgba(30, 41, 59, 0.5);
  color: #94A3B8;
}
.dark .article-body p code {
  background: #1E293B;
  color: #CBD5E1;
}
.dark .article-body a {
  color: #818CF8;
}
.dark .article-body a:hover {
  color: #A5B4FC;
}

/* TOC active state */
.toc-link.active {
  color: #4F46E5;
  background: rgba(79, 70, 229, 0.05);
  font-weight: 500;
}
.dark .toc-link.active {
  color: #818CF8;
  background: rgba(129, 140, 248, 0.1);
}

/* Mobile menu animation */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}
.mobile-menu.open {
  transform: translateX(0);
}

/* WordPress alignment overrides */
.alignwide { max-width: 100%; }
.alignfull { max-width: 100vw; margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); }

/* Hide WordPress admin bar gap in dark mode */
html.dark { background: #020617; }
