/*
Theme Name: Taskleep
Theme URI: https://taskleep.com
Author: Taskleep Team
Author URI: https://taskleep.com
Description: AI-powered task planning theme. Minimal, modern dark SaaS UI with blue-purple gradient aesthetic. Elementor compatible.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: taskleep
Tags: dark, modern, saas, one-column, custom-menu, custom-logo, featured-images, theme-options, translation-ready
*/

/* ========================================
   CSS Variables / Design Tokens
======================================== */
:root {
  --ts-bg: hsl(228, 33%, 8%);
  --ts-fg: hsl(220, 20%, 92%);
  --ts-card: hsl(228, 28%, 12%);
  --ts-card-fg: hsl(220, 20%, 92%);
  --ts-primary: hsl(262, 80%, 60%);
  --ts-primary-fg: hsl(0, 0%, 100%);
  --ts-secondary: hsl(228, 25%, 18%);
  --ts-secondary-fg: hsl(220, 20%, 88%);
  --ts-muted: hsl(228, 20%, 16%);
  --ts-muted-fg: hsl(220, 15%, 55%);
  --ts-accent: hsl(262, 60%, 50%);
  --ts-accent-fg: hsl(0, 0%, 100%);
  --ts-border: hsl(228, 20%, 20%);
  --ts-destructive: hsl(0, 72%, 51%);
  --ts-ring: hsl(262, 80%, 60%);
  --ts-radius: 0.75rem;

  --gradient-primary: linear-gradient(135deg, hsl(228, 33%, 12%) 0%, hsl(262, 40%, 18%) 100%);
  --gradient-accent: linear-gradient(135deg, hsl(262, 80%, 60%) 0%, hsl(230, 80%, 55%) 100%);
  --gradient-hero: linear-gradient(160deg, hsl(228, 33%, 6%) 0%, hsl(262, 35%, 14%) 50%, hsl(228, 33%, 8%) 100%);
  --gradient-card: linear-gradient(145deg, hsl(228, 28%, 14%) 0%, hsl(262, 20%, 14%) 100%);
  --shadow-glow: 0 0 60px -12px hsla(262, 80%, 60%, 0.25);
  --shadow-card: 0 8px 32px -8px hsla(228, 33%, 4%, 0.5);
}

/* ========================================
   Reset & Base
======================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--ts-bg);
  color: var(--ts-fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* ========================================
   Container
======================================== */
.ts-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ========================================
   Utilities
======================================== */
.gradient-text {
  background: linear-gradient(135deg, hsl(262, 80%, 68%) 0%, hsl(230, 80%, 65%) 50%, hsl(262, 60%, 75%) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-bg-accent {
  background: var(--gradient-accent);
}

.gradient-bg-hero {
  background: var(--gradient-hero);
}

.gradient-bg-card {
  background: var(--gradient-card);
}

.shadow-glow {
  box-shadow: var(--shadow-glow);
}

.shadow-card {
  box-shadow: var(--shadow-card);
}

.glass {
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: hsla(228, 28%, 12%, 0.6);
  border: 1px solid var(--ts-border);
}

/* ========================================
   Navbar
======================================== */
.ts-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: hsla(228, 28%, 12%, 0.6);
  border-bottom: 1px solid hsla(228, 20%, 20%, 0.5);
}

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

.ts-logo {
  font-size: 1.25rem;
  font-weight: 700;
}

.ts-nav-links {
  display: none;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.ts-nav-links a {
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ts-muted-fg);
  transition: all 0.2s;
}

.ts-nav-links a:hover,
.ts-nav-links .current-menu-item a,
.ts-nav-links .current_page_item a {
  color: var(--ts-fg);
  background: var(--ts-secondary);
}

.ts-nav-auth {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.ts-mobile-toggle {
  display: block;
  background: none;
  border: none;
  color: var(--ts-fg);
  cursor: pointer;
  padding: 0.5rem;
}

.ts-mobile-toggle svg {
  width: 24px;
  height: 24px;
}

.ts-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0.5rem 2rem 1rem;
  border-top: 1px solid hsla(228, 20%, 20%, 0.5);
}

.ts-mobile-menu.active {
  display: flex;
}

.ts-mobile-menu a {
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ts-muted-fg);
  transition: all 0.2s;
}

.ts-mobile-menu a:hover {
  color: var(--ts-fg);
}

@media (min-width: 768px) {
  .ts-nav-links {
    display: flex;
  }
  .ts-nav-auth {
    display: flex;
  }
  .ts-mobile-toggle {
    display: none;
  }
}

/* ========================================
   Buttons
======================================== */
.ts-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.ts-btn:focus-visible {
  outline: 2px solid var(--ts-ring);
  outline-offset: 2px;
}

.ts-btn-sm {
  height: 36px;
  padding: 0 12px;
  font-size: 0.875rem;
}

.ts-btn-default {
  height: 40px;
  padding: 0 16px;
}

.ts-btn-lg {
  height: 48px;
  padding: 0 32px;
  font-size: 1rem;
}

.ts-btn-xl {
  height: 56px;
  padding: 0 40px;
  font-size: 1.125rem;
  border-radius: 0.75rem;
}

.ts-btn-hero {
  background: var(--gradient-accent);
  color: var(--ts-primary-fg);
  box-shadow: var(--shadow-glow);
}

.ts-btn-hero:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.ts-btn-hero-outline {
  background: transparent;
  border: 1px solid hsla(262, 80%, 60%, 0.4);
  color: var(--ts-fg);
}

.ts-btn-hero-outline:hover {
  background: hsla(262, 80%, 60%, 0.1);
  border-color: hsla(262, 80%, 60%, 0.6);
}

.ts-btn-ghost {
  background: transparent;
  color: var(--ts-fg);
}

.ts-btn-ghost:hover {
  background: var(--ts-secondary);
}

.ts-btn-outline {
  background: transparent;
  border: 1px solid var(--ts-border);
  color: var(--ts-fg);
}

.ts-btn-outline:hover {
  background: var(--ts-secondary);
}

/* ========================================
   Main Content (offset for fixed nav)
======================================== */
.ts-main {
  flex: 1;
  padding-top: 64px;
}

.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ========================================
   Hero Section
======================================== */
.ts-hero {
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.ts-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
}

.ts-hero-orb-1 {
  top: 25%;
  left: 25%;
  width: 384px;
  height: 384px;
  background: hsla(262, 80%, 60%, 0.05);
}

.ts-hero-orb-2 {
  bottom: 25%;
  right: 25%;
  width: 320px;
  height: 320px;
  background: hsla(262, 60%, 50%, 0.05);
}

.ts-hero-content {
  position: relative;
  text-align: center;
  max-width: 768px;
  margin: 0 auto;
  padding: 96px 16px;
}

@media (min-width: 768px) {
  .ts-hero-content {
    padding: 144px 16px;
  }
}

.ts-hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .ts-hero h1 {
    font-size: 3.75rem;
  }
}

@media (min-width: 1024px) {
  .ts-hero h1 {
    font-size: 4.5rem;
  }
}

.ts-hero p {
  font-size: 1.125rem;
  color: var(--ts-muted-fg);
  margin-bottom: 2.5rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .ts-hero p {
    font-size: 1.25rem;
  }
}

.ts-hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .ts-hero-buttons {
    flex-direction: row;
  }
}

/* ========================================
   Sections
======================================== */
.ts-section {
  padding: 80px 0;
}

@media (min-width: 768px) {
  .ts-section {
    padding: 112px 0;
  }
}

.ts-section-header {
  text-align: center;
  margin-bottom: 64px;
}

.ts-section-header h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .ts-section-header h2 {
    font-size: 2.25rem;
  }
}

.ts-section-header p {
  color: var(--ts-muted-fg);
  max-width: 512px;
  margin: 0 auto;
}

.ts-section-alt {
  background: hsla(228, 28%, 12%, 0.3);
}

/* ========================================
   Cards Grid
======================================== */
.ts-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1024px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .ts-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ts-grid-2-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .ts-grid-2-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .ts-grid-2-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========================================
   Step Card
======================================== */
.ts-step-card {
  background: var(--gradient-card);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid hsla(228, 20%, 20%, 0.5);
  box-shadow: var(--shadow-card);
}

.ts-step-num {
  font-size: 3rem;
  font-weight: 800;
}

.ts-step-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.ts-step-card p {
  font-size: 0.875rem;
  color: var(--ts-muted-fg);
  line-height: 1.7;
}

/* ========================================
   Feature Card
======================================== */
.ts-feature-card {
  background: var(--gradient-card);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid hsla(228, 20%, 20%, 0.5);
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s;
}

.ts-feature-card:hover {
  border-color: hsla(262, 80%, 60%, 0.3);
}

.ts-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 0.75rem;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--ts-primary-fg);
}

.ts-feature-card h3 {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.ts-feature-card p {
  font-size: 0.875rem;
  color: var(--ts-muted-fg);
  line-height: 1.7;
}

/* ========================================
   Testimonial Card
======================================== */
.ts-testimonial-card {
  background: var(--gradient-card);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid hsla(228, 20%, 20%, 0.5);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ts-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 1rem;
  color: var(--ts-primary);
}

.ts-stars svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.ts-testimonial-card blockquote {
  font-size: 0.875rem;
  color: var(--ts-muted-fg);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1rem;
  font-style: normal;
}

.ts-testimonial-name {
  font-weight: 600;
  font-size: 0.875rem;
}

.ts-testimonial-role {
  font-size: 0.75rem;
  color: var(--ts-muted-fg);
}

/* ========================================
   CTA Section
======================================== */
.ts-cta-box {
  background: var(--gradient-accent);
  border-radius: 1.5rem;
  padding: 2.5rem;
  text-align: center;
  max-width: 768px;
  margin: 0 auto;
  box-shadow: var(--shadow-glow);
}

@media (min-width: 768px) {
  .ts-cta-box {
    padding: 4rem;
  }
}

.ts-cta-box h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--ts-primary-fg);
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .ts-cta-box h2 {
    font-size: 2.25rem;
  }
}

.ts-cta-box p {
  color: hsla(0, 0%, 100%, 0.8);
  margin-bottom: 2rem;
  max-width: 512px;
  margin-left: auto;
  margin-right: auto;
}

.ts-cta-box .ts-btn-hero-outline {
  border-color: hsla(0, 0%, 100%, 0.3);
  color: var(--ts-primary-fg);
}

.ts-cta-box .ts-btn-hero-outline:hover {
  background: hsla(0, 0%, 100%, 0.1);
}

/* ========================================
   Footer
======================================== */
.ts-footer {
  border-top: 1px solid hsla(228, 20%, 20%, 0.5);
  background: hsla(228, 28%, 12%, 0.5);
  margin-top: 80px;
}

.ts-footer-inner {
  padding: 3rem 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .ts-footer-inner {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.ts-footer h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.ts-footer h4 {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.ts-footer p {
  color: var(--ts-muted-fg);
  font-size: 0.875rem;
  line-height: 1.7;
}

.ts-footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
}

.ts-footer-links a {
  font-size: 0.875rem;
  color: var(--ts-muted-fg);
  transition: color 0.2s;
}

.ts-footer-links a:hover {
  color: var(--ts-fg);
}

.ts-footer-social {
  display: flex;
  gap: 0.75rem;
  list-style: none;
}

.ts-footer-social a {
  font-size: 0.875rem;
  color: var(--ts-muted-fg);
  transition: color 0.2s;
}

.ts-footer-social a:hover {
  color: var(--ts-fg);
}

.ts-footer-bottom {
  border-top: 1px solid hsla(228, 20%, 20%, 0.5);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--ts-muted-fg);
}

/* ========================================
   Pricing
======================================== */
.ts-pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.ts-pricing-toggle span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ts-muted-fg);
}

.ts-pricing-toggle span.active {
  color: var(--ts-fg);
}

.ts-toggle-switch {
  width: 48px;
  height: 24px;
  border-radius: 12px;
  background: var(--ts-secondary);
  position: relative;
  cursor: pointer;
  border: none;
}

.ts-toggle-switch::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ts-primary);
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
}

.ts-toggle-switch.yearly::after {
  transform: translateX(24px);
}

.ts-pricing-card {
  background: var(--gradient-card);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid hsla(228, 20%, 20%, 0.5);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.ts-pricing-card.featured {
  border-color: var(--ts-primary);
  box-shadow: var(--shadow-glow);
  position: relative;
}

.ts-pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-accent);
  color: var(--ts-primary-fg);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 999px;
}

.ts-pricing-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.ts-price {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 1rem 0;
}

.ts-price span {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--ts-muted-fg);
}

.ts-pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
  flex: 1;
}

.ts-pricing-features li {
  font-size: 0.875rem;
  color: var(--ts-muted-fg);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ts-pricing-features li svg {
  width: 16px;
  height: 16px;
  color: var(--ts-primary);
  flex-shrink: 0;
}

/* ========================================
   Forms
======================================== */
.ts-form-group {
  margin-bottom: 1.25rem;
}

.ts-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.ts-input,
.ts-textarea,
.ts-select {
  width: 100%;
  padding: 0.625rem 0.75rem;
  background: var(--ts-secondary);
  border: 1px solid var(--ts-border);
  border-radius: var(--ts-radius);
  color: var(--ts-fg);
  font-size: 0.875rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.ts-input:focus,
.ts-textarea:focus,
.ts-select:focus {
  outline: none;
  border-color: var(--ts-primary);
  box-shadow: 0 0 0 3px hsla(262, 80%, 60%, 0.15);
}

.ts-textarea {
  min-height: 120px;
  resize: vertical;
}

/* ========================================
   Blog / Archive
======================================== */
.ts-blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1024px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .ts-blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .ts-blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ts-blog-card {
  background: var(--gradient-card);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid hsla(228, 20%, 20%, 0.5);
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s;
}

.ts-blog-card:hover {
  border-color: hsla(262, 80%, 60%, 0.3);
}

.ts-blog-card-img {
  height: 200px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ts-muted-fg);
  font-size: 0.875rem;
}

.ts-blog-card-body {
  padding: 1.5rem;
}

.ts-blog-card-meta {
  font-size: 0.75rem;
  color: var(--ts-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.ts-blog-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.ts-blog-card p {
  font-size: 0.875rem;
  color: var(--ts-muted-fg);
  line-height: 1.6;
}

.ts-blog-card .ts-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ts-primary);
  transition: gap 0.2s;
}

.ts-blog-card .ts-read-more:hover {
  gap: 0.5rem;
}

/* Single Post */
.ts-single-content {
  max-width: 768px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.ts-single-content h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .ts-single-content h1 {
    font-size: 2.5rem;
  }
}

.ts-single-content .entry-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
}

.ts-single-content .entry-content p {
  color: var(--ts-muted-fg);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.ts-single-content .entry-content ul,
.ts-single-content .entry-content ol {
  color: var(--ts-muted-fg);
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.ts-single-content .entry-content li {
  margin-bottom: 0.5rem;
}

.ts-single-content .entry-meta {
  font-size: 0.875rem;
  color: var(--ts-muted-fg);
  margin-bottom: 2rem;
}

/* ========================================
   Page Content
======================================== */
.ts-page-header {
  text-align: center;
  padding: 4rem 1rem;
  background: var(--gradient-hero);
}

.ts-page-header h1 {
  font-size: 2.25rem;
  font-weight: 800;
}

@media (min-width: 768px) {
  .ts-page-header h1 {
    font-size: 3rem;
  }
}

.ts-page-header p {
  color: var(--ts-muted-fg);
  margin-top: 1rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.ts-page-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

/* ========================================
   404
======================================== */
.ts-404 {
  text-align: center;
  padding: 6rem 1rem;
}

.ts-404 h1 {
  font-size: 6rem;
  font-weight: 800;
}

.ts-404 p {
  color: var(--ts-muted-fg);
  margin: 1rem 0 2rem;
}

/* ========================================
   Sidebar & Widgets
======================================== */
.ts-with-sidebar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

@media (min-width: 768px) {
  .ts-with-sidebar {
    grid-template-columns: 1fr 300px;
  }
}

.ts-sidebar .widget {
  background: var(--gradient-card);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid hsla(228, 20%, 20%, 0.5);
  margin-bottom: 1.5rem;
}

.ts-sidebar .widget h3,
.ts-sidebar .widget-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.ts-sidebar .widget ul {
  list-style: none;
}

.ts-sidebar .widget ul li {
  padding: 0.375rem 0;
}

.ts-sidebar .widget ul li a {
  font-size: 0.875rem;
  color: var(--ts-muted-fg);
  transition: color 0.2s;
}

.ts-sidebar .widget ul li a:hover {
  color: var(--ts-fg);
}

/* ========================================
   Comments
======================================== */
.ts-comments {
  max-width: 768px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.ts-comments h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.comment-list {
  list-style: none;
}

.comment-body {
  background: var(--gradient-card);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid hsla(228, 20%, 20%, 0.5);
  margin-bottom: 1rem;
}

.comment-author {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.comment-meta {
  font-size: 0.75rem;
  color: var(--ts-muted-fg);
  margin-bottom: 0.75rem;
}

.comment-content p {
  font-size: 0.875rem;
  color: var(--ts-muted-fg);
  line-height: 1.6;
}

.comment-respond .comment-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
}

.comment-respond .comment-form input[type="text"],
.comment-respond .comment-form input[type="email"],
.comment-respond .comment-form input[type="url"],
.comment-respond .comment-form textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  background: var(--ts-secondary);
  border: 1px solid var(--ts-border);
  border-radius: var(--ts-radius);
  color: var(--ts-fg);
  font-size: 0.875rem;
  font-family: inherit;
  margin-bottom: 1rem;
}

.comment-respond .comment-form input:focus,
.comment-respond .comment-form textarea:focus {
  outline: none;
  border-color: var(--ts-primary);
}

.comment-respond .form-submit input[type="submit"] {
  background: var(--gradient-accent);
  color: var(--ts-primary-fg);
  border: none;
  padding: 0.625rem 1.5rem;
  border-radius: var(--ts-radius);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.875rem;
}

/* ========================================
   Search
======================================== */
.ts-search-form {
  max-width: 512px;
  margin: 0 auto 3rem;
  display: flex;
  gap: 0.5rem;
}

.ts-search-form input {
  flex: 1;
  padding: 0.625rem 0.75rem;
  background: var(--ts-secondary);
  border: 1px solid var(--ts-border);
  border-radius: var(--ts-radius);
  color: var(--ts-fg);
  font-size: 0.875rem;
  font-family: inherit;
}

.ts-search-form input:focus {
  outline: none;
  border-color: var(--ts-primary);
}

/* ========================================
   Animations
======================================== */
.ts-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.ts-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Elementor Compatibility
======================================== */
.elementor-page .ts-main {
  padding-top: 64px;
}

.elementor-editor-active .ts-navbar {
  z-index: 10;
}

/* WordPress Block Editor */
.wp-block-group {
  padding: 1rem;
}

.entry-content .wp-block-image img {
  border-radius: var(--ts-radius);
}

/* ========================================
   WordPress Defaults
======================================== */
.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.aligncenter {
  display: block;
  margin: 0 auto;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 0.75rem;
  color: var(--ts-muted-fg);
  text-align: center;
  padding: 0.5rem 0;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.gallery-item img {
  border-radius: var(--ts-radius);
}
