/*
Theme Name: LeadCoach
Theme URI: https://leadcoach.ae
Author: SmallERP Team
Author URI: https://smallerp.net
Description: Clean, professional blog theme matching SmallERP design system with shadcn/ui aesthetics
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
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: leadcoach
Tags: blog, clean, minimal, custom-colors, editor-style, featured-images, responsive-layout, seo-ready
*/

/* ============================================
   Design System - SmallERP Color Palette
   Based on OKLCH color space
   ============================================ */

:root {
  /* Light mode - matching SmallERP exactly */
  --background: #FAFAFA;
  --foreground: #252525;
  --card: #FFFFFF;
  --card-foreground: #252525;

  --primary: #4F6FFF;        /* Blue */
  --primary-foreground: #FFFFFF;

  --secondary: #F5F3FF;      /* Light blue tint */
  --secondary-foreground: #252525;

  --success: #22C55E;        /* Green for CTAs */
  --success-foreground: #FFFFFF;

  --muted: #FAFAFA;
  --muted-foreground: #737373;

  --border: #EBEBEB;
  --input: #EBEBEB;
  --ring: #4F6FFF;

  /* Radius */
  --radius: 0.5rem;          /* 8px */
  --radius-lg: 0.75rem;      /* 12px */

  /* Typography */
  --font-sans: 'Inter', -apple-system, system-ui, sans-serif;
  --font-heading: 'Poppins', -apple-system, system-ui, sans-serif;
}

/* Dark mode */
.dark,
[data-theme="dark"] {
  --background: #000000;     /* Pure black */
  --foreground: #EBEBF0;
  --card: #353551;           /* Dark blue-gray cards */
  --card-foreground: #EBEBF0;

  --primary: #6080FF;        /* Lighter blue */
  --success: #22C55E;        /* Same green */

  --border: #474D63;
  --muted-foreground: #B0B0B5;
}

/* ============================================
   Base Styles
   ============================================ */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  line-height: 1.6;
  font-size: 1rem;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--foreground);
}

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; }

p {
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.8;
}

strong, b {
  font-weight: 600;
}

code {
  font-family: var(--font-mono);
  background-color: var(--muted);
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

pre {
  background-color: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

pre code {
  background: none;
  padding: 0;
}

/* ============================================
   Layout Container
   ============================================ */

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

.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

/* ============================================
   Header
   ============================================ */

.site-header {
  background-color: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header .header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.site-title a {
  color: var(--foreground);
}

.site-description {
  display: none;
}

/* ============================================
   Navigation
   ============================================ */

.main-navigation {
  display: flex;
  gap: 2rem;
}

.main-navigation ul,
.main-navigation #primary-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
  align-items: center;
}

.main-navigation li {
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
}

/* Increase hover area for top-level menu items */
.main-navigation > ul > li > a {
  padding: 0.75rem 0.5rem;
}

.main-navigation a {
  color: var(--muted-foreground);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color 0.2s ease;
  text-decoration: none;
  display: block;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
  color: var(--foreground);
}

/* Dropdown Menu Styles */
.main-navigation ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 220px;
  padding: 0.75rem 0; /* Increased padding for better spacing */
  z-index: 1000;
  margin-top: 0; /* Remove gap to prevent dropdown closing */
  padding-top: 0.75rem; /* Visual spacing without hover gap */
}

/* Create invisible bridge between parent and dropdown */
.main-navigation ul li:hover > ul::before,
.main-navigation ul li:focus-within > ul::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
  background: transparent;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li:focus-within > ul {
  display: block;
}

.main-navigation ul ul li {
  width: 100%;
}

.main-navigation ul ul a {
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  color: var(--foreground);
  transition: all 0.2s ease;
}

.main-navigation ul ul a:hover {
  background: var(--muted);
  color: var(--primary);
}

/* Hide submenu toggle buttons on desktop */
.main-navigation .submenu-toggle {
  display: none;
}

/* Dropdown arrow indicator */
.main-navigation .menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 0.5rem;
  vertical-align: middle;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform 0.2s ease;
}

.main-navigation .menu-item-has-children:hover > a::after {
  transform: rotate(180deg);
}

/* Third level dropdown */
.main-navigation ul ul ul {
  left: 100%;
  top: 0;
  margin-top: 0;
  margin-left: 0.25rem;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

@media (max-width: 1024px) {
  .menu-toggle {
    display: block;
  }

  .main-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    z-index: 99;
  }

  .main-navigation.is-active {
    display: flex;
  }

  .main-navigation ul,
  .main-navigation #primary-menu {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .main-navigation li {
    width: 100%;
  }

  .main-navigation a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }

  /* Mobile dropdown styles */
  .main-navigation ul ul {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--primary);
    margin: 0;
    padding-left: 1rem;
    background: transparent;
  }

  .main-navigation .menu-item-has-children > a::after {
    float: right;
    margin-right: 0.5rem;
    margin-left: 0;
  }

  .main-navigation ul ul a {
    padding: 0.5rem 0;
    font-size: 0.875rem;
  }

  /* Mobile submenu toggle button */
  .main-navigation .submenu-toggle {
    display: flex; /* Show on mobile */
    position: absolute;
    right: 0;
    top: 0;
    width: 48px;
    height: 48px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
  }

  .submenu-toggle::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid var(--foreground);
    transition: transform 0.2s ease;
  }

  .submenu-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
  }

  .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
  }

  .header-actions {
    display: none;
  }
}

@media (min-width: 1025px) {
  .menu-toggle {
    display: none;
  }

  .main-navigation {
    flex: 1;
    justify-content: center;
  }
}

/* ============================================
   Main Content
   ============================================ */

.site-main {
  padding: 3rem 0;
  min-height: 60vh;
}

/* ============================================
   Blog Posts List
   ============================================ */

.blog-posts {
  display: grid;
  gap: 2rem;
}

article.post {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
}

article.post:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px 0 rgba(91, 143, 214, 0.2);
  transform: translateY(-2px);
}

.post-thumbnail {
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.post-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

.entry-header {
  margin-bottom: 1rem;
}

.entry-title {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

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

.entry-meta {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.entry-content {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: all 0.2s ease;
}

.read-more:hover {
  color: var(--primary);
  opacity: 0.8;
  transform: translateX(2px);
}

.read-more svg {
  transition: transform 0.2s ease;
}

.read-more:hover svg {
  transform: translateX(4px);
}

/* ============================================
   Single Post
   ============================================ */

.single-post .entry-header {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.single-post .entry-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.single-post .post-thumbnail {
  margin-bottom: 2rem;
  border-radius: var(--radius);
}

.single-post .entry-content {
  color: var(--foreground);
  font-size: 1.0625rem;
  line-height: 1.8;
}

.single-post .entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 2rem 0;
}

.single-post .entry-content h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
  font-size: 1.875rem;
}

.single-post .entry-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
}

/* ============================================
   Pagination
   ============================================ */

.pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.pagination a,
.pagination span {
  padding: 0.5rem 1rem;
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.pagination a:hover {
  background-color: var(--muted);
  opacity: 1;
}

.pagination .current {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

/* ============================================
   Sidebar
   ============================================ */

.sidebar {
  padding: 2rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
}

.widget {
  margin-bottom: 2rem;
}

.widget:last-child {
  margin-bottom: 0;
}

.widget-title {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.widget ul {
  list-style: none;
}

.widget ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.widget ul li:last-child {
  border-bottom: none;
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
  background-color: var(--card);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-info {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* ============================================
   Forms
   ============================================ */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  background-color: var(--background);
  border: 1px solid var(--input);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  transition: border-color 0.2s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--ring);
}

/* Primary button (blue) */
button,
.button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.5rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  border: 1px solid var(--primary);
  border-radius: 0.375rem;  /* 6px */
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

button:hover,
.button:hover,
input[type="submit"]:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Success button (green, pill shape) */
.button-success {
  background-color: var(--success);
  color: var(--success-foreground);
  border-color: var(--success);
  border-radius: 9999px;  /* Full rounded */
  padding: 0.75rem 1.5rem;
}

.button-success:hover {
  background-color: #1ea74f;
}

/* Secondary button (bordered) */
.button-secondary {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 9999px;
}

.button-secondary:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

/* Button link style */
.button-link {
  color: var(--muted-foreground);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.button-link:hover {
  color: var(--foreground);
  opacity: 1;
}

/* ============================================
   Utility Classes
   ============================================ */

.text-muted {
  color: var(--muted-foreground);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }

  .site-main {
    padding: 2rem 0;
  }

  article.post {
    padding: 1.5rem;
  }

  .single-post .entry-title {
    font-size: 2rem;
  }
}

/* ============================================
   Promo Banner
   ============================================ */

.promo-banner {
  background: #3b82f6; /* Blue */
  color: white;
  text-align: center;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}

.promo-banner a {
  color: white;
  text-decoration: underline;
  font-weight: 600;
  margin-left: 0.5rem;
}

.promo-banner a:hover {
  opacity: 0.9;
}

/* ============================================
   Header Layout (3-column)
   ============================================ */

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  gap: 1.5rem;
}

.site-header .site-container {
  max-width: 1400px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 240px;
  flex-shrink: 0;
}

.site-branding img {
  max-height: 32px;
  width: auto;
}

.site-branding a {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-title {
  font-size: 1.125rem !important;
  font-weight: 700;
  margin: 0 !important;
  line-height: 1.2;
  white-space: nowrap;
}

.main-navigation {
  flex: 1;
  display: flex;
  justify-content: center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 240px;
  flex-shrink: 0;
  justify-content: flex-end;
}

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

@media (max-width: 1024px) {
  .main-navigation,
  .header-actions {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }
}

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
  padding: 80px 0;
  background: var(--background);
}

.hero-container {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 3rem; /* 48px */
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

@media (min-width: 1024px) {
  .hero-content h1 {
    font-size: 3.25rem; /* 52px */
  }
}

.hero-content p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.social-proof {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.headshots {
  display: flex;
  margin-left: -8px;
}

.headshot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--background);
  margin-left: -8px;
  object-fit: cover;
}

.hero-image {
  flex: 1;
  max-width: 600px;
}

@media (max-width: 1024px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-ctas {
    justify-content: center;
  }

  .social-proof {
    justify-content: center;
  }

  .hero-image {
    max-width: 100%;
  }
}

/* ============================================
   Browser Mockup Component
   ============================================ */

.browser-mockup {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.browser-chrome {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem;
  background: #1f2937;
  border-radius: var(--radius) var(--radius) 0 0;
}

.browser-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ef4444;
}

.browser-dot:nth-child(2) {
  background: #f59e0b;
}

.browser-dot:nth-child(3) {
  background: #22c55e;
}

.browser-content img {
  width: 100%;
  display: block;
  border-radius: 0 0 var(--radius) var(--radius);
}

/* ============================================
   Content Sections
   ============================================ */

.content-section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.section-header p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
}

/* ============================================
   Custom Post Types
   ============================================ */

/* Archive Grid */
.cpt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

/* CPT Card */
.cpt-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.cpt-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px 0 rgba(79, 111, 255, 0.15);
  transform: translateY(-2px);
}

.cpt-card .post-thumbnail img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.cpt-card .card-content {
  padding: 1.5rem;
}

.cpt-card .entry-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-heading);
}

.cpt-card .entry-title a {
  color: var(--foreground);
  text-decoration: none;
}

.cpt-card .entry-title a:hover {
  color: var(--primary);
}

.cpt-card .entry-excerpt {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

/* Course Meta */
.course-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin: 1rem 0;
}

.course-meta-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Difficulty Badges */
.difficulty-badge {
  display: inline-flex;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.difficulty-beginner {
  background: #22C55E;
  color: white;
}

.difficulty-intermediate {
  background: #F59E0B;
  color: white;
}

.difficulty-advanced {
  background: #EF4444;
  color: white;
}

/* Event Meta */
.event-meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin: 1rem 0;
}

.event-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.event-timezone {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.event-badge {
  display: inline-flex;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--primary);
  color: white;
}

.event-badge.recurring {
  background: #8B5CF6;
}

/* Event Details (Single Page) */
.event-details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.event-detail-item {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.event-detail-item:last-child {
  margin-bottom: 0;
}

.event-detail-item strong {
  color: var(--foreground);
  margin-right: 0.5rem;
}

/* Tool Meta */
.tool-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
}

.tool-pricing {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--success);
}

.tool-rating {
  display: flex;
  gap: 0.125rem;
  color: #F59E0B;
  font-size: 1rem;
}

.tool-badges {
  display: flex;
  gap: 0.5rem;
}

.tool-badge {
  display: inline-flex;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--secondary);
  color: var(--secondary-foreground);
}

.tool-badge.trial {
  background: #22C55E;
  color: white;
}

.tool-badge.free-tier {
  background: #3B82F6;
  color: white;
}

/* Tool Single Page Header */
.tool-header-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.tool-rating-large {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  color: #F59E0B;
}

.rating-number {
  font-size: 1rem;
  color: var(--muted-foreground);
  font-weight: 600;
}

.tool-pricing-large {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--success);
}

.tool-badges-large {
  display: flex;
  gap: 0.5rem;
}

.tool-best-for {
  margin: 1rem 0;
  padding: 1rem;
  background: var(--secondary);
  border-radius: var(--radius);
  font-size: 0.875rem;
}

.tool-best-for strong {
  color: var(--foreground);
}

/* Tool Pros/Cons */
.tool-pros-cons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.pros,
.cons {
  padding: 1.5rem;
  border-radius: var(--radius);
}

.pros {
  background: #F0FDF4;
  border: 1px solid #22C55E;
}

.cons {
  background: #FEF2F2;
  border: 1px solid #EF4444;
}

.pros h3,
.cons h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
}

.pros-content,
.cons-content {
  color: var(--foreground);
  line-height: 1.6;
}

/* Resource Meta */
.resource-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin: 1rem 0;
}

.resource-meta-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.access-badge {
  display: inline-flex;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.access-badge.access-free {
  background: #22C55E;
  color: white;
}

.access-badge.access-community-only {
  background: #3B82F6;
  color: white;
}

.access-badge.access-premium {
  background: #8B5CF6;
  color: white;
}

/* Affiliate CTA Box */
.affiliate-cta-box {
  background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
  border: 2px solid var(--success);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 3rem 0;
  text-align: center;
}

.affiliate-cta-box h3 {
  margin-bottom: 0.75rem;
  color: var(--foreground);
  font-family: var(--font-heading);
  font-size: 1.5rem;
}

.affiliate-cta-box p {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

.affiliate-disclosure {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 1rem;
  font-style: italic;
}

/* Community CTA */
.community-cta {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 3rem 0;
  text-align: center;
}

.community-cta h3 {
  margin-bottom: 0.75rem;
  color: var(--foreground);
  font-family: var(--font-heading);
  font-size: 1.5rem;
}

.community-cta p {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

/* Resource Download Box */
.resource-download-box {
  background: var(--card);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 3rem 0;
  text-align: center;
}

.resource-download-box h3 {
  margin-bottom: 1.5rem;
  color: var(--foreground);
  font-family: var(--font-heading);
}

/* Event Registration/Recording Boxes */
.event-registration-box,
.event-recording-box {
  background: var(--card);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 3rem 0;
  text-align: center;
}

.event-recording-box {
  border-color: var(--success);
}

.event-registration-box h3,
.event-recording-box h3 {
  margin-bottom: 1rem;
  color: var(--foreground);
  font-family: var(--font-heading);
}

.event-recording-box p {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

/* Tool Website Box */
.tool-website-box {
  text-align: center;
  margin: 3rem 0;
}

/* Archive Header */
.archive-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.archive-header h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.archive-header p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto;
}

/* No Results */
.no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--muted-foreground);
}

/* Button Variants */
.button-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* Entry Footer */
.entry-footer {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
  .cpt-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .archive-header h1 {
    font-size: 2rem;
  }

  .archive-header p {
    font-size: 1rem;
  }

  .tool-pros-cons {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .tool-header-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .affiliate-cta-box,
  .community-cta,
  .resource-download-box,
  .event-registration-box,
  .event-recording-box {
    padding: 1.5rem;
  }

  .affiliate-cta-box h3,
  .community-cta h3 {
    font-size: 1.25rem;
  }

  .affiliate-cta-box p,
  .community-cta p {
    font-size: 1rem;
  }
}
