/*
Theme Name: Small Business Theme Template
Theme URI: 
Author: Rothirsch Tech. GmbH
Author URI: https://www.rothirsch.tech
Description: A modern, cool small business WordPress theme with gradients, animations, and stunning design.
Requires at least: 
Tested up to: 
Requires PHP: 8.1
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rtsb-theme
Tags: modern, business, gradient, animated, cool
*/

/* CSS Custom Properties for WCAG-Compliant Theme */
:root {
  --border-radius: 8px;
  --transition: all 0.2s ease-in-out;
}

/* Default (Blue) - Light Mode */
:root {
  --primary-color: #1e3a8a;
  --secondary-color: #1e40af;
  --accent-color: #3b82f6;
  --success-color: #059669;
  --warning-color: #d97706;
  --error-color: #dc2626;
  --text-primary: #1e3a8a;
  --text-secondary: #1e40af;
  --text-muted: #6b7280;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #e2e8f0;
  --gray-200: #cbd5e1;
  --gray-300: #94a3b8;
  --shadow-sm: 0 1px 3px rgba(30, 58, 138, 0.1);
  --shadow-md: 0 4px 6px rgba(30, 58, 138, 0.1);
  --shadow-lg: 0 10px 15px rgba(30, 58, 138, 0.1);
  --focus-ring: 0 0 0 3px rgba(59, 130, 246, 0.1);
  
  /* Text on colored backgrounds */
  --text-on-primary: #ffffff;
  --text-on-secondary: #ffffff;
  --text-on-accent: #ffffff;
}

/* Default (Blue) - Dark Mode */
@media (prefers-color-scheme: dark) {
  :root {
    --primary-color: #3b82f6;
    --secondary-color: #2563eb;
    --accent-color: #60a5fa;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --text-primary: #f1f5f9;
    --text-secondary: #e2e8f0;
    --text-muted: #94a3b8;
    --white: #334155;
    --gray-50: #0f172a;
    --gray-100: #1e293b;
    --gray-200: #334155;
    --gray-300: #475569;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
    --focus-ring: 0 0 0 3px rgba(96, 165, 250, 0.2);
    
    /* Text on colored backgrounds */
    --text-on-primary: #ffffff;
    --text-on-secondary: #ffffff;
    --text-on-accent: #ffffff;
  }
  
  body {
    background: #0f172a;
  }
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--gray-50);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 18px;
  min-height: 100vh;
}

/* Global heading styles */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 1rem 0;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Accessible Header Styling */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 1rem 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  margin-bottom: 2rem;
}

.site-branding h1 {
  margin: 0;
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--primary-color);
  letter-spacing: -0.01em;
}

.site-branding h1 a {
  color: var(--primary-color);
  text-decoration: none;
}

.site-branding h1 a:hover {
  color: var(--accent-color);
}

.site-branding p {
  margin: 0.25rem 0 0 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.5rem;
}

.site-nav li {
  margin: 0;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  border: 2px solid transparent;
  display: block;
}

.site-nav a:hover {
  background: var(--gray-100);
  color: var(--accent-color);
}

.site-nav a:focus {
  outline: none;
  box-shadow: var(--focus-ring);
  border-color: var(--accent-color);
}

/* Accessible Main Content Area */
.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Accessible Hero Section */
.hero-section {
  background: var(--primary-color);
  color: var(--text-on-primary);
  padding: 4rem 0;
  text-align: center;
  margin: 0 0 3rem 0;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin: 0 0 2rem 0;
  font-weight: 400;
  line-height: 1.5;
}

.hero-subtitle-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  text-decoration-thickness: 1px;
  transition: var(--transition);
}

.hero-subtitle-link:hover {
  text-decoration-thickness: 2px;
  text-underline-offset: 0.125em;
}

.hero-subtitle-link:focus {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 4px;
  border-radius: 4px;
}

.hero-phone {
  font-size: 1.125rem;
  margin: 1rem 0 0 0;
  font-weight: 500;
}

.hero-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: inherit;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--border-radius);
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.hero-phone-link:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.hero-phone-link:focus {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 4px;
  border-radius: var(--border-radius);
}

.hero-phone-icon {
  font-size: 1.25em;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .hero-phone {
    font-size: 1rem;
  }
  
  .hero-phone-link {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
  }
}

/* Accessible Content Cards */
.content-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  margin-bottom: 2rem;
  transition: var(--transition);
  border-left: 4px solid var(--accent-color);
}

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

.content-card:focus-within {
  box-shadow: var(--focus-ring), var(--shadow-md);
}

.content-card {
  color: var(--text-primary);
}

.content-card h1,
.content-card h2,
.content-card h3,
.content-card h4,
.content-card h5,
.content-card h6 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.content-card h1 { font-size: 2.5rem; }
.content-card h2 { font-size: 2rem; }
.content-card h3 { font-size: 1.5rem; }
.content-card h4 { font-size: 1.25rem; }
.content-card h5 { font-size: 1.125rem; }
.content-card h6 { font-size: 1rem; }

.content-card p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.content-card strong {
  color: var(--text-primary);
  font-weight: 700;
}

.content-card em {
  color: var(--text-secondary);
  font-style: italic;
}

.content-card ul,
.content-card ol {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.content-card li {
  margin-bottom: 0.5rem;
}

.entry-header h1, 
.entry-header h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 2rem;
  color: var(--text-primary);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.entry-content {
  color: var(--text-primary);
}

.entry-content p {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 1.5rem 0 1rem 0;
}

.entry-content h1:first-child,
.entry-content h2:first-child,
.entry-content h3:first-child,
.entry-content h4:first-child,
.entry-content h5:first-child,
.entry-content h6:first-child {
  margin-top: 0;
}

.entry-content strong {
  color: var(--text-primary);
  font-weight: 700;
}

.entry-content em {
  color: var(--text-secondary);
  font-style: italic;
}

.entry-content ul,
.entry-content ol {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

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

.entry-content blockquote {
  border-left: 4px solid var(--accent-color);
  margin-left: 0;
  padding-left: 1.5rem;
  color: var(--text-secondary);
  font-style: italic;
}

.entry-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-weight: 400;
}

/* Accessible Link Styling */
a {
  color: var(--accent-color);
  text-decoration: underline;
  text-underline-offset: 0.125em;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-color);
  text-decoration-thickness: 2px;
}

a:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Accessible Blog Post List */
.post-list > article {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  margin-bottom: 2rem;
  transition: var(--transition);
  border-left: 4px solid var(--success-color);
}

.post-list > article:hover {
  box-shadow: var(--shadow-md);
}

.post-list > article:focus-within {
  box-shadow: var(--focus-ring), var(--shadow-md);
}

/* Accessible Button Styles */
.btn, 
button[type="submit"], 
input[type="submit"] {
  background: var(--accent-color);
  color: var(--text-on-accent);
  border: 2px solid var(--accent-color);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
  min-height: 44px;
  min-width: 44px;
}

.btn:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--text-on-primary);
}

.btn:focus,
button[type="submit"]:focus,
input[type="submit"]:focus {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .site-header {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
  }
  
  .site-nav ul {
    gap: 0.25rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .site-nav a {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }
  
  .content-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-section {
    padding: 3rem 1rem;
  }
  
  .site-main {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }
  
  .entry-header h1, 
  .entry-header h2 {
    font-size: 1.5rem;
  }
  
  .content-card {
    padding: 1rem;
  }
}

/* Accessible Footer Styling */
.site-footer {
  background: var(--secondary-color);
  border-top: 1px solid var(--gray-300);
  text-align: center;
  padding: 3rem 0 2rem 0;
  color: var(--text-on-secondary);
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-content p {
  font-size: 1rem;
  margin-bottom: 2rem;
  font-weight: 400;
}

.footer-navigation {
  margin-bottom: 2rem;
}

.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-menu li {
  margin: 0;
}

.footer-menu a {
  color: var(--text-on-secondary);
  text-decoration: underline;
  text-underline-offset: 0.125em;
  font-size: 1rem;
  font-weight: 400;
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  display: inline-block;
  min-height: 44px;
  min-width: 44px;
}

.footer-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
  text-decoration-thickness: 2px;
}

.footer-menu a:focus {
  outline: 2px solid var(--text-on-secondary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Contact page styling */
.contact-page p {
  margin-bottom: 1em;
}
.contact-map {
  margin-top: 1.5em;
}
.contact-map iframe {
  width: 100%;
  max-width: 600px;
  height: 300px;
  border: none;
}

/* Address navigation link styling */
.address-navigation-link {
  display: inline-block;
  color: var(--accent-color);
  text-decoration: underline;
  text-underline-offset: 0.125em;
  transition: var(--transition);
  font-weight: 500;
  line-height: 1.6;
}

.address-navigation-link:hover {
  color: var(--primary-color);
  text-decoration-thickness: 2px;
}

.address-navigation-link:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Add navigation icon using CSS */
.address-navigation-link::after {
  content: "📍";
  font-size: 0.875em;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .address-navigation-link {
    font-size: 1rem;
    padding: 0.25rem 0;
  }
}

/* Impressum page styling */
.impressum-page p {
  margin-bottom: 1em;
}

.button, input[type="submit"], .wp-block-button__link {
  background-color: #0073aa;
  color: #fff;
  padding: 10px 20px;
  border: none;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border-radius: 3px;
}

.button:hover, input[type="submit"]:hover, .wp-block-button__link:hover {
  background-color: #005580;
}

/* ========== COLOR SCHEME VARIANTS ========== */

/* Purple/Violet Theme - Light Mode */
body.color-scheme-purple {
  --primary-color: #6b46c1;
  --secondary-color: #7c3aed;
  --accent-color: #8b5cf6;
  --success-color: #059669;
  --warning-color: #d97706;
  --error-color: #dc2626;
  --text-primary: #581c87;
  --text-secondary: #6b46c1;
  --text-muted: #6b7280;
  --white: #ffffff;
  --gray-50: #faf5ff;
  --gray-100: #f3e8ff;
  --gray-200: #e9d5ff;
  --gray-300: #c4b5fd;
  --shadow-sm: 0 1px 3px rgba(107, 70, 193, 0.1);
  --shadow-md: 0 4px 6px rgba(107, 70, 193, 0.1);
  --shadow-lg: 0 10px 15px rgba(107, 70, 193, 0.1);
  --focus-ring: 0 0 0 3px rgba(139, 92, 246, 0.1);
  
  /* Text on colored backgrounds */
  --text-on-primary: #ffffff;
  --text-on-secondary: #ffffff;
  --text-on-accent: #ffffff;
}

/* Purple/Violet Theme - Dark Mode */
@media (prefers-color-scheme: dark) {
  body.color-scheme-purple {
    --primary-color: #8b5cf6;
    --secondary-color: #7c3aed;
    --accent-color: #a78bfa;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --text-primary: #faf5ff;
    --text-secondary: #f3e8ff;
    --text-muted: #c4b5fd;
    --white: #3c1361;
    --gray-50: #1e1b4b;
    --gray-100: #312e81;
    --gray-200: #4c1d95;
    --gray-300: #5b21b6;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
    --focus-ring: 0 0 0 3px rgba(167, 139, 250, 0.2);
    
    /* Text on colored backgrounds */
    --text-on-primary: #ffffff;
    --text-on-secondary: #ffffff;
    --text-on-accent: #ffffff;
    
    background: #1e1b4b;
  }
}

/* Sunset/Orange Theme - Light Mode */
body.color-scheme-sunset {
  --primary-color: #c2410c;
  --secondary-color: #dc2626;
  --accent-color: #f97316;
  --success-color: #059669;
  --warning-color: #d97706;
  --error-color: #dc2626;
  --text-primary: #9a3412;
  --text-secondary: #c2410c;
  --text-muted: #6b7280;
  --white: #ffffff;
  --gray-50: #fff7ed;
  --gray-100: #ffedd5;
  --gray-200: #fed7aa;
  --gray-300: #fdba74;
  --shadow-sm: 0 1px 3px rgba(194, 65, 12, 0.1);
  --shadow-md: 0 4px 6px rgba(194, 65, 12, 0.1);
  --shadow-lg: 0 10px 15px rgba(194, 65, 12, 0.1);
  --focus-ring: 0 0 0 3px rgba(249, 115, 22, 0.1);
  
  /* Text on colored backgrounds */
  --text-on-primary: #ffffff;
  --text-on-secondary: #ffffff;
  --text-on-accent: #ffffff;
}

/* Sunset/Orange Theme - Dark Mode */
@media (prefers-color-scheme: dark) {
  body.color-scheme-sunset {
    --primary-color: #f97316;
    --secondary-color: #ea580c;
    --accent-color: #fb923c;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --text-primary: #fff7ed;
    --text-secondary: #ffedd5;
    --text-muted: #fdba74;
    --white: #431407;
    --gray-50: #1c0a04;
    --gray-100: #451a03;
    --gray-200: #7c2d12;
    --gray-300: #9a3412;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
    --focus-ring: 0 0 0 3px rgba(251, 146, 60, 0.2);
    
    /* Text on colored backgrounds */
    --text-on-primary: #ffffff;
    --text-on-secondary: #ffffff;
    --text-on-accent: #ffffff;
    
    background: #1c0a04;
  }
}

/* Ocean/Teal Theme - Light Mode */
body.color-scheme-ocean {
  --primary-color: #0f766e;
  --secondary-color: #0d9488;
  --accent-color: #14b8a6;
  --success-color: #059669;
  --warning-color: #d97706;
  --error-color: #dc2626;
  --text-primary: #134e4a;
  --text-secondary: #0f766e;
  --text-muted: #6b7280;
  --white: #ffffff;
  --gray-50: #f0fdfa;
  --gray-100: #ccfbf1;
  --gray-200: #99f6e4;
  --gray-300: #5eead4;
  --shadow-sm: 0 1px 3px rgba(15, 118, 110, 0.1);
  --shadow-md: 0 4px 6px rgba(15, 118, 110, 0.1);
  --shadow-lg: 0 10px 15px rgba(15, 118, 110, 0.1);
  --focus-ring: 0 0 0 3px rgba(20, 184, 166, 0.1);
  
  /* Text on colored backgrounds */
  --text-on-primary: #ffffff;
  --text-on-secondary: #ffffff;
  --text-on-accent: #ffffff;
}

/* Ocean/Teal Theme - Dark Mode */
@media (prefers-color-scheme: dark) {
  body.color-scheme-ocean {
    --primary-color: #14b8a6;
    --secondary-color: #0d9488;
    --accent-color: #2dd4bf;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --text-primary: #f0fdfa;
    --text-secondary: #ccfbf1;
    --text-muted: #5eead4;
    --white: #042f2e;
    --gray-50: #041e1e;
    --gray-100: #0f2929;
    --gray-200: #134e4a;
    --gray-300: #0f766e;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
    --focus-ring: 0 0 0 3px rgba(45, 212, 191, 0.2);
    
    /* Text on colored backgrounds */
    --text-on-primary: #ffffff;
    --text-on-secondary: #ffffff;
    --text-on-accent: #ffffff;
    
    background: #041e1e;
  }
}

/* Default Blue Theme - Light Mode (with body class) */
body.color-scheme-default {
  --primary-color: #1e3a8a;
  --secondary-color: #1e40af;
  --accent-color: #3b82f6;
  --success-color: #059669;
  --warning-color: #d97706;
  --error-color: #dc2626;
  --text-primary: #1e3a8a;
  --text-secondary: #1e40af;
  --text-muted: #6b7280;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #e2e8f0;
  --gray-200: #cbd5e1;
  --gray-300: #94a3b8;
  --shadow-sm: 0 1px 3px rgba(30, 58, 138, 0.1);
  --shadow-md: 0 4px 6px rgba(30, 58, 138, 0.1);
  --shadow-lg: 0 10px 15px rgba(30, 58, 138, 0.1);
  --focus-ring: 0 0 0 3px rgba(59, 130, 246, 0.1);
  
  /* Text on colored backgrounds */
  --text-on-primary: #ffffff;
  --text-on-secondary: #ffffff;
  --text-on-accent: #ffffff;
}

/* Default Blue Theme - Dark Mode (with body class) */
@media (prefers-color-scheme: dark) {
  body.color-scheme-default {
    --primary-color: #3b82f6;
    --secondary-color: #2563eb;
    --accent-color: #60a5fa;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --text-primary: #f1f5f9;
    --text-secondary: #e2e8f0;
    --text-muted: #94a3b8;
    --white: #334155;
    --gray-50: #0f172a;
    --gray-100: #1e293b;
    --gray-200: #334155;
    --gray-300: #475569;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
    --focus-ring: 0 0 0 3px rgba(96, 165, 250, 0.2);
    
    /* Text on colored backgrounds */
    --text-on-primary: #ffffff;
    --text-on-secondary: #ffffff;
    --text-on-accent: #ffffff;
    
    background: #0f172a;
  }
}

/* Nature Green Theme - Light Mode */
body.color-scheme-nature {
  --primary-color: #166534;
  --secondary-color: #15803d;
  --accent-color: #22c55e;
  --success-color: #16a34a;
  --warning-color: #ea580c;
  --error-color: #dc2626;
  --text-primary: #14532d;
  --text-secondary: #166534;
  --text-muted: #6b7280;
  --white: #ffffff;
  --gray-50: #f0fdf4;
  --gray-100: #dcfce7;
  --gray-200: #bbf7d0;
  --gray-300: #86efac;
  --shadow-sm: 0 1px 3px rgba(22, 101, 52, 0.1);
  --shadow-md: 0 4px 6px rgba(22, 101, 52, 0.1);
  --shadow-lg: 0 10px 15px rgba(22, 101, 52, 0.1);
  --focus-ring: 0 0 0 3px rgba(34, 197, 94, 0.1);
  
  /* Text on colored backgrounds */
  --text-on-primary: #ffffff;
  --text-on-secondary: #ffffff;
  --text-on-accent: #ffffff;
}

/* Nature Green Theme - Dark Mode */
@media (prefers-color-scheme: dark) {
  body.color-scheme-nature {
    --primary-color: #22c55e;
    --secondary-color: #16a34a;
    --accent-color: #4ade80;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --text-primary: #f0fdf4;
    --text-secondary: #dcfce7;
    --text-muted: #86efac;
    --white: #1a2e05;
    --gray-50: #0f1f0a;
    --gray-100: #14532d;
    --gray-200: #166534;
    --gray-300: #15803d;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
    --focus-ring: 0 0 0 3px rgba(74, 222, 128, 0.2);
    
    /* Text on colored backgrounds */
    --text-on-primary: #ffffff;
    --text-on-secondary: #ffffff;
    --text-on-accent: #ffffff;
    
    background: #0f1f0a;
  }
}

/* Professional Gray Theme - Light Mode */
body.color-scheme-professional {
  --primary-color: #374151;
  --secondary-color: #4b5563;
  --accent-color: #6b7280;
  --success-color: #059669;
  --warning-color: #d97706;
  --error-color: #dc2626;
  --text-primary: #1f2937;
  --text-secondary: #374151;
  --text-muted: #6b7280;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --shadow-sm: 0 1px 3px rgba(55, 65, 81, 0.1);
  --shadow-md: 0 4px 6px rgba(55, 65, 81, 0.1);
  --shadow-lg: 0 10px 15px rgba(55, 65, 81, 0.1);
  --focus-ring: 0 0 0 3px rgba(107, 114, 128, 0.1);
  
  /* Text on colored backgrounds */
  --text-on-primary: #ffffff;
  --text-on-secondary: #ffffff;
  --text-on-accent: #ffffff;
}

/* Professional Gray Theme - Dark Mode */
@media (prefers-color-scheme: dark) {
  body.color-scheme-professional {
    --primary-color: #6b7280;
    --secondary-color: #4b5563;
    --accent-color: #9ca3af;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --text-primary: #f9fafb;
    --text-secondary: #f3f4f6;
    --text-muted: #d1d5db;
    --white: #374151;
    --gray-50: #111827;
    --gray-100: #1f2937;
    --gray-200: #374151;
    --gray-300: #4b5563;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
    --focus-ring: 0 0 0 3px rgba(156, 163, 175, 0.2);
    
    /* Text on colored backgrounds */
    --text-on-primary: #ffffff;
    --text-on-secondary: #ffffff;
    --text-on-accent: #ffffff;
    
    background: #111827;
  }
}

/* ========== POST TEMPLATES ========== */

/* Single post content wrapper */
.post-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Post articles styling */
.post-list > article,
.post-content > article {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.post-list > article:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Entry title styling */
.entry-title {
  margin: 0 0 1rem 0;
  font-weight: 700;
  line-height: 1.2;
}

.entry-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
}

.entry-title a:hover {
  color: var(--accent-color);
}

/* Entry meta styling */
.entry-meta {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.entry-meta .author,
.entry-meta .categories {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.entry-meta a {
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--transition);
}

.entry-meta a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Entry content styling */
.entry-content {
  line-height: 1.7;
  font-size: 1.1rem;
}

.entry-content p {
  margin-bottom: 1.5rem;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
}

.entry-content h1 { font-size: 2.5rem; }
.entry-content h2 { font-size: 2rem; }
.entry-content h3 { font-size: 1.5rem; }
.entry-content h4 { font-size: 1.25rem; }
.entry-content h5 { font-size: 1.125rem; }
.entry-content h6 { font-size: 1rem; }

.entry-content ul,
.entry-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

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

.entry-content blockquote {
  border-left: 4px solid var(--accent-color);
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: var(--gray-50);
  color: var(--text-muted);
  font-style: italic;
}

.entry-content code {
  background: var(--gray-100);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
}

.entry-content pre {
  background: var(--gray-100);
  padding: 1rem;
  border-radius: var(--border-radius);
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.entry-content pre code {
  background: none;
  padding: 0;
}

/* Entry footer styling */
.entry-footer {
  border-top: 1px solid var(--gray-200);
  padding-top: 1.5rem;
  margin-top: 2rem;
}

.entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.entry-tags .tags-title {
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 0.5rem;
}

.entry-tags a {
  background: var(--gray-100);
  color: var(--text-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--transition);
}

.entry-tags a:hover {
  background: var(--accent-color);
  color: var(--text-on-accent);
}

/* Page links for paginated content */
.page-links {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.page-links a {
  background: var(--accent-color);
  color: var(--text-on-accent);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  transition: var(--transition);
}

.page-links a:hover {
  background: var(--primary-color);
}

/* Responsive design for posts */
@media (max-width: 768px) {
  .post-content {
    padding: 1rem;
  }
  
  .post-list > article,
  .post-content > article {
    padding: 1.5rem;
  }
  
  .entry-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .entry-content {
    font-size: 1rem;
  }
  
  .entry-content h1 { font-size: 2rem; }
  .entry-content h2 { font-size: 1.75rem; }
  .entry-content h3 { font-size: 1.5rem; }
}

/* Continue reading link styling */
.entry-content a[href*="continue-reading"] {
  display: inline-block;
  background: var(--accent-color);
  color: var(--text-on-accent);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  margin-top: 1rem;
  transition: var(--transition);
}

.entry-content a[href*="continue-reading"]:hover {
  background: var(--primary-color);
  transform: translateY(-1px);
}

/* ========== IMAGE GALLERY STYLING ========== */

/* Post image gallery */
.post-image-gallery {
  margin: 2rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  justify-items: center;
}

.post-image-item {
  margin: 0;
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.post-image-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.post-image-item a {
  display: block;
  text-decoration: none;
  border: none;
  outline: none;
}

.post-image-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: var(--transition);
}

.post-image-item:hover img {
  transform: scale(1.05);
}

.post-image-item figcaption {
  padding: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
  background: var(--gray-50);
}

/* Single image in gallery */
.post-image-gallery .post-image-item:only-child {
  max-width: 600px;
  width: 100%;
  grid-column: 1 / -1;
}

.post-image-gallery .post-image-item:only-child img {
  height: auto;
  max-height: 400px;
  object-fit: contain;
}

/* ========== GENERAL IMAGE STYLING ========== */

/* WordPress standard image classes */
.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  margin: 1rem 0;
}

/* WordPress image alignments */
.entry-content .aligncenter {
  display: block;
  margin: 1.5rem auto;
  text-align: center;
}

.entry-content .alignleft {
  float: left;
  margin: 0 1.5rem 1rem 0;
}

.entry-content .alignright {
  float: right;
  margin: 0 0 1rem 1.5rem;
}

.entry-content .alignnone {
  margin: 1rem 0;
}

/* WordPress captions */
.entry-content .wp-caption {
  max-width: 100%;
  margin: 1rem 0;
  text-align: center;
}

.entry-content .wp-caption img {
  margin: 0;
  display: block;
}

.entry-content .wp-caption-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0.5rem 0 0 0;
  padding: 0.5rem;
  background: var(--gray-50);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
}

/* WordPress galleries */
.entry-content .wp-block-gallery {
  margin: 2rem 0;
}

.entry-content .wp-block-gallery .wp-block-image {
  margin: 0;
}

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

/* Featured image */
.entry-content .post-thumbnail {
  margin: 0 0 2rem 0;
  text-align: center;
}

.entry-content .post-thumbnail img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

/* ========== RESPONSIVE IMAGE STYLING ========== */

@media (max-width: 768px) {
  .post-image-gallery {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .post-image-item img {
    height: 250px;
  }
  
  .post-image-gallery .post-image-item:only-child img {
    height: auto;
    max-height: 300px;
  }
  
  .entry-content .alignleft,
  .entry-content .alignright {
    float: none;
    margin: 1rem auto;
    display: block;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .post-image-gallery {
    margin: 1rem 0;
  }
  
  .post-image-item img {
    height: 200px;
  }
  
  .post-image-item figcaption {
    padding: 0.75rem;
  }
}

/* ========== LIGHTBOX STYLING ========== */

.rtsb-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rtsb-lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(2px);
}

.rtsb-lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10000;
}

.rtsb-lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  object-fit: contain;
}

.rtsb-lightbox-caption {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 1rem;
  border-radius: var(--border-radius);
  margin-top: 1rem;
  text-align: center;
  max-width: 100%;
  font-size: 0.9rem;
}

.rtsb-lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.rtsb-lightbox-close:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.1);
}

.rtsb-lightbox-prev,
.rtsb-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.rtsb-lightbox-prev {
  left: -60px;
}

.rtsb-lightbox-next {
  right: -60px;
}

.rtsb-lightbox-prev:hover,
.rtsb-lightbox-next:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: translateY(-50%) scale(1.1);
}

.rtsb-lightbox-open {
  overflow: hidden;
}

/* Responsive lightbox */
@media (max-width: 768px) {
  .rtsb-lightbox-content {
    max-width: 95%;
    max-height: 95%;
  }
  
  .rtsb-lightbox-image {
    max-height: 70vh;
  }
  
  .rtsb-lightbox-close {
    top: -35px;
    right: -5px;
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
  }
  
  .rtsb-lightbox-prev,
  .rtsb-lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .rtsb-lightbox-prev {
    left: -45px;
  }
  
  .rtsb-lightbox-next {
    right: -45px;
  }
}

@media (max-width: 480px) {
  .rtsb-lightbox-prev {
    left: 10px;
  }
  
  .rtsb-lightbox-next {
    right: 10px;
  }
  
  .rtsb-lightbox-close {
    top: 10px;
    right: 10px;
  }
}
