/*
Theme Name: AI Tools Finder Pro
Description: Professional AI tools directory and comparison theme for WordPress. Perfect for creating comprehensive AI tools websites with advanced features, mobile responsiveness, and professional design.
Author: ThemeWars.com
Author URI: https://themewars.com
Version: 2.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ai-tool-finder
Tags: ai-tools, directory, comparison, responsive, modern, professional, business, tools, artificial-intelligence
*/

/* Tool page layout */
/* This layout took forever to get right - CSS Grid can be finicky */
/* Pro tip: always test on different screen sizes */
.tool-page{max-width:1200px}
.tool-layout{display:grid;grid-template-columns:1fr 340px;gap:20px}
.tool-main{display:grid;gap:16px}
.tool-sidebar{
  display: grid;
  gap: 4px; /* almost no gap between sidebar cards */
}
.tool-hero .logo{
  width: 120px !important;
  height: 120px !important;
  border-radius: 24px !important;
  border: none !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
  transition: all 0.3s ease !important;
  object-fit: cover !important;
  object-position: center !important;
  background: #f8fafc !important;
}

.tool-hero .logo:hover {
  transform: scale(1.05) !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2) !important;
}
.tool-hero-top{display:flex;justify-content:space-between;align-items:center;gap:16px}
.tool-hero-left{display:flex;align-items:center;gap:12px}
.tool-title{margin:0;font-weight:500}
.tool-badges{display:flex;gap:8px;margin-top:6px}
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:12px}
.stat{background:var(--bg);border:1px solid var(--border);border-radius:12px;padding:12px;text-align:center}
.stat .label{font-size:12px;color:var(--text-secondary)}
.stat .value{font-size:20px;font-weight:700}
.tool-tabs{display:flex;gap:14px;margin-top:12px;border-top:1px solid var(--border);padding-top:12px}
.tool-tabs a{color:var(--text-secondary);text-decoration:none;padding:6px 8px;border-radius:8px}
.tool-tabs a.active, .tool-tabs a:hover{color:var(--primary);background:#EEF2FF}
.tool-page .card{background:#fff;border:1px solid var(--border);border-radius:16px;padding:16px}
.highlights{margin:0;padding-left:18px;color:var(--text-secondary)}
.links{margin:0;padding-left:18px}
/* Beautiful Categories & Tags Section */
.tool-taxonomies {
  margin-top: 20px;
}

.tool-tags,
.tool-categories {
  margin-bottom: 16px;
}

.tool-tags ul,
.tool-categories ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-tags li,
.tool-categories li {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #0ea5e9;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #0369a1;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tool-tags li::before,
.tool-categories li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #0ea5e9, #06b6d4);
  border-radius: 20px 20px 0 0;
}

.tool-tags li:hover,
.tool-categories li:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
}

.tool-tags li:last-child,
.tool-categories li:last-child {
  margin-bottom: 0;
}

@media(max-width: 1024px){
  .tool-layout{grid-template-columns:1fr}
}

@media(max-width: 768px){
  .tool-layout{
    grid-template-columns: 1fr;
    grid-template-areas: 
      "main"
      "sidebar";
  }
  
  .tool-main{
    grid-area: main;
  }
  
  .tool-sidebar{
    grid-area: sidebar;
  }
}

:root{
  --primary:#2563EB; /* primary blue */
  --primary-dark:#1D4ED8; /* darker blue */
  --bg: #F8FAFC;
  --card:#ffffff;
  --muted:#6b7280;
  --border:#e5e7eb;
  --border-light:#f1f5f9;
  --text-primary:#0f172a;
  --text-secondary:#475569;
  --text-muted:#64748b;
  --shadow-sm:0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md:0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg:0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --radius: 8px;
  --radius-sm: 6px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  --transition: all 0.2s ease;
  --transition-fast: all 0.15s ease;
  --transition-slow: all 0.3s ease;
}

*{
  box-sizing: border-box;
}

body{
  margin: 0;
  font-family: Inter, system-ui, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.6;
}

/* Force light theme - override any dark mode */
html, body {
  background: #F8FAFC !important;
  color: #0f172a !important;
}

/* Remove focus outlines for clean UI */
*:focus,
*:focus-visible {
  outline: none !important;
}

/* Keep focus for accessibility on form elements */
input:focus,
textarea:focus,
select:focus,
button:focus {
  outline: 2px solid var(--primary) !important;
  outline-offset: 2px !important;
}

/* Ensure cards stay white */
.card {
  background: #ffffff !important;
  border-color: #e5e7eb !important;
  color: #0f172a !important;
}

/* Ensure buttons stay light */
.btn-outline {
  background: #ffffff !important;
  border-color: #e5e7eb !important;
  color: #0f172a !important;
}

/* Ensure form elements stay light */
input, select, textarea {
  background: #ffffff !important;
  border-color: #e5e7eb !important;
  color: #0f172a !important;
}

/* Responsive images */
/* This simple rule saves so many headaches */
/* Had a client complain about images breaking mobile layout */
img{max-width:100%;height:auto}

.container{
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6{
  margin: 0 0 16px 0;
  font-weight: 600;
  line-height: 1.2;
}

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

p{
  margin: 0 0 16px 0;
  font-weight: 400;
}

/* Buttons with improved touch targets */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-full);
  padding: 12px 18px;
  min-height: 44px; /* Minimum touch target size */
  min-width: 44px; /* Minimum touch target size */
  border: 1px solid var(--border);
  background: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn:focus{
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.btn:active{
  transform: translateY(0);
}

.btn-primary{
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.btn-primary:hover{
  background: var(--primary-dark);
}

.btn-outline{
  background: #fff;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

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

/* Mobile-optimized buttons */
@media (max-width: 768px) {
  .btn {
    padding: 14px 20px;
    min-height: 48px;
    min-width: 48px;
    font-size: 16px;
  }
  
  .btn .icon {
    width: 20px;
    height: 20px;
  }
}

/* Vote message styling */
.vote-message {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  z-index: 10000;
  max-width: 300px;
  box-shadow: var(--shadow-lg);
  animation: slideInRight 0.3s ease-out;
}

.vote-message-success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.vote-message-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.vote-message-warning {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fed7aa;
}

.vote-message-info {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Form Elements */
input, select{
  border: 1px solid var(--border);
  border-radius: 10px;
  height: 44px;
  padding: 0 12px;
  font-size: 15px;
  background: #fff;
  transition: border-color 0.2s ease;
}

input:focus, select:focus{
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Header styling - modern and beautiful design */
.site {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}

/* Brand/Logo styling */
.brand {
  flex-shrink: 0;
}

.brand .logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  background: linear-gradient(135deg, var(--primary) 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}

.brand .logo:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

/* Primary Navigation */
.primary-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.primary-nav .menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 32px;
  align-items: center;
}

.primary-nav .menu li {
  margin: 0;
}

.primary-nav .menu a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.primary-nav .menu a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.1), transparent);
  transition: left 0.5s ease;
}

.primary-nav .menu a:hover::before {
  left: 100%;
}

.primary-nav .menu a:hover {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.05);
  transform: translateY(-1px);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* Search form styling */
.header-actions .search-form {
  display: flex;
  align-items: center;
  background: white;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 4px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.header-actions .search-form:focus-within {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
  transform: translateY(-1px);
}

.header-actions .search-form input[type="search"] {
  border: none;
  outline: none;
  padding: 8px 12px;
  font-size: 14px;
  background: transparent;
  min-width: 200px;
  color: var(--text-primary);
}

.header-actions .search-form input[type="search"]::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.header-actions .search-form button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-actions .search-form button:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* Submit button styling */
.header-actions .btn {
  background: linear-gradient(135deg, var(--primary) 0%, #059669 100%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
  position: relative;
  overflow: hidden;
}

.header-actions .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.header-actions .btn:hover::before {
  left: 100%;
}

.header-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
  background: linear-gradient(135deg, #059669 0%, var(--primary) 100%);
}

/* Mobile navigation toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: 2px solid rgba(0, 0, 0, 0.1);
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-toggle:hover {
  border-color: var(--primary);
  background: rgba(16, 185, 129, 0.05);
}

.nav-toggle .bar {
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: all 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Responsive header */
@media (max-width: 1024px) {
  .header-inner {
    padding: 14px 0;
    gap: 20px;
  }
  
  .primary-nav .menu {
    gap: 24px;
  }
  
  .header-actions .search-form input[type="search"] {
    min-width: 180px;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }
  
  .primary-nav {
    display: none;
  }
  
  .header-actions {
    gap: 12px;
  }
  
  .header-actions .search-form input[type="search"] {
    min-width: 150px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 12px 0;
    gap: 16px;
  }
  
  .brand .logo {
    font-size: 20px;
  }
  
  .header-actions .search-form input[type="search"] {
    min-width: 120px;
    font-size: 13px;
  }
  
  .header-actions .btn {
    padding: 8px 16px;
    font-size: 13px;
  }
}

@media (max-width: 640px) {
  .header-actions .search-form {
    display: none;
  }
  
  .header-actions .btn {
    padding: 8px 14px;
    font-size: 12px;
  }
  
  .header-actions .btn .icon {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 10px 0;
  }
  
  .brand .logo {
    font-size: 18px;
  }
  
  .header-actions .btn {
    padding: 6px 12px;
    font-size: 11px;
  }
}

/* Hero Section */
.hero{
  background: linear-gradient(180deg, #EFF6FF, #fff);
  padding: 48px 0 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero h1{
  font-weight: 800;
  line-height: 1.1;
  margin: 16px 0;
  font-size: 44px;
  color: var(--text-primary);
}

.hero h1 .accent{
  color: var(--primary);
}

.hero p{
  color: var(--text-secondary);
  max-width: 720px;
  margin: 10px auto 0;
  font-size: 1.125rem;
}

.search-wrap{
  display: flex;
  gap: 10px;
  max-width: 800px;
  margin: 24px auto 0;
  align-items: center;
}

.search-wrap input{
  flex: 1;
  border-radius: 999px;
  height: 56px;
  padding-left: 44px;
  font-size: 16px;
}

.search-form .btn{height:44px}

.search-pill{
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  color: var(--text-secondary);
}

.search-pill .dot{
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  display: inline-block;
}

.hero-actions{
  margin-top: 14px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Enhanced Breadcrumbs Design */
.breadcrumbs{
  padding: 20px 0;
  margin-bottom: 32px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.breadcrumbs::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, #059669 100%);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.breadcrumbs::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
  pointer-events: none;
}

.breadcrumb-list{
  list-style: none;
  padding: 0 24px;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  position: relative;
}

.breadcrumb-item{
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  animation: fadeInUp 0.5s ease-out;
  animation-fill-mode: both;
}

.breadcrumb-item:nth-child(1) { animation-delay: 0.1s; }
.breadcrumb-item:nth-child(2) { animation-delay: 0.2s; }
.breadcrumb-item:nth-child(3) { animation-delay: 0.3s; }
.breadcrumb-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.breadcrumb-item:not(:last-child)::after{
  content: '';
  width: 6px;
  height: 6px;
  background: linear-gradient(135deg, var(--primary) 0%, #059669 100%);
  border-radius: 50%;
  margin-left: 12px;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
}

.breadcrumbs a{
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(37, 99, 235, 0.1);
  position: relative;
  overflow: hidden;
}

.breadcrumbs a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
  transition: left 0.5s ease;
}

.breadcrumbs a:hover::before {
  left: 100%;
}

.breadcrumbs a:hover{
  background: rgba(255, 255, 255, 1);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.2);
  color: var(--primary-dark);
}

.breadcrumbs a:active{
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.breadcrumbs span{
  color: var(--text-primary);
  font-weight: 600;
  font-size: 15px;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--primary) 0%, #059669 100%);
  color: white;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
  position: relative;
}

.breadcrumbs span::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.breadcrumbs span:hover::before {
  opacity: 1;
}

/* Breadcrumb icons */
.breadcrumbs .icon {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.breadcrumbs a:hover .icon {
  opacity: 1;
  transform: scale(1.1);
}

/* Mobile breadcrumbs */
@media (max-width: 768px) {
  .breadcrumbs {
    padding: 16px 0;
    margin-bottom: 24px;
  }
  
  .breadcrumb-list {
    padding: 0 16px;
    gap: 8px;
  }
  
  .breadcrumb-item:not(:last-child)::after {
    margin-left: 8px;
    width: 4px;
    height: 4px;
  }
  
  .breadcrumbs a,
  .breadcrumbs span {
    padding: 6px 12px;
    font-size: 14px;
  }
  
  .breadcrumbs .icon {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 480px) {
  .breadcrumbs {
    padding: 12px 0;
  }
  
  .breadcrumb-list {
    padding: 0 12px;
    gap: 6px;
  }
  
  .breadcrumbs a,
  .breadcrumbs span {
    padding: 4px 8px;
    font-size: 13px;
  }
  
  .breadcrumb-item:not(:last-child)::after {
    margin-left: 6px;
  }
}

/* Mobile responsive for single post/tool pages */
@media (max-width: 768px){
  .tool-page{
    padding: 0 16px;
  }
  
  .tool-layout{
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .tool-hero-top{
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .tool-hero-left{
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  
  .tool-hero-actions{
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  
  .tool-hero-actions .btn{
    font-size: 13px;
    padding: 8px 12px;
    min-width: auto;
  }
  
  .stats-grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .tool-tabs{
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 0;
  }
  
  .tool-tabs a{
    font-size: 14px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
  }
  
  .tool-sidebar{
    /* Removed order: -1 to fix mobile layout */
  }
  
  .tool-sidebar .card{
    margin-bottom: 0; /* rely on grid gap instead */
  }
  
  .share-buttons{
    flex-direction: column;
    gap: 8px;
  }
  
  .share-buttons .btn{
    width: 100%;
    text-align: center;
  }
  
  .tool-details-grid{
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .tool-taxonomies ul{
    columns: 1;
  }
  
  .tool-tags li,
  .tool-categories li {
    padding: 6px 12px;
    font-size: 13px;
  }
  
  .card h2#tax-heading {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px){
  .tool-hero-actions{
    flex-direction: column;
    width: 100%;
  }
  
  .tool-hero-actions .btn{
    width: 100%;
    justify-content: center;
  }
  
  .stats-grid{
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .tool-tabs{
    flex-direction: column;
    gap: 4px;
  }
  
  .tool-tabs a{
    width: 100%;
    text-align: center;
  }
  
  .tool-badges{
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  
  .tool-badges .chip,
  .tool-badges .pill{
    font-size: 12px;
    padding: 4px 8px;
  }
}

/* Mobile responsive for regular post pages */
@media (max-width: 768px){
  .post-content{
    padding: 0 16px;
  }
  
  .post-header{
    text-align: center;
    margin-bottom: 24px;
  }
  
  .post-header h1{
    font-size: 1.75rem;
    margin-bottom: 12px;
  }
  
  .post-meta{
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }
  
  .post-thumbnail{
    margin: 16px 0;
  }
  
  .post-thumbnail img{
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
  }
  
  .post-content{
    font-size: 16px;
    line-height: 1.6;
  }
  
  .post-comments{
    margin-top: 32px;
  }
}

@media (max-width: 480px){
  .post-content{
    padding: 0 12px;
  }
  
  .post-header h1{
    font-size: 1.5rem;
  }
  
  .post-content{
    font-size: 15px;
  }
}

/* Comprehensive Mobile Responsive Fixes */
@media (max-width: 768px){
  /* Container and general layout */
  .container{
    padding: 0 16px;
    max-width: 100%;
  }
  
  /* Header mobile fixes */
  .header-inner{
    padding: 12px 0;
    gap: 12px;
  }
  
  .brand .logo{
    font-size: 18px;
  }
  
  .header-actions{
    gap: 8px;
  }
  
  .header-actions .search-form{
    display: none;
  }
  
  .header-actions .btn{
    padding: 8px 12px;
    font-size: 12px;
  }
  
  /* Hero section mobile fixes */
  .hero{
    padding: 32px 0 24px;
  }
  
  .hero h1{
    font-size: 28px;
    line-height: 1.2;
  }
  
  .hero p{
    font-size: 16px;
    line-height: 1.5;
  }
  
  .search-wrap{
    flex-direction: column;
    gap: 12px;
    margin: 20px auto 0;
  }
  
  .search-wrap input{
    height: 48px;
    font-size: 16px;
  }
  
  .search-wrap .btn{
    width: 100%;
    justify-content: center;
  }
  
  .hero-actions{
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
  }
  
  .hero-actions .btn{
    width: 100%;
    justify-content: center;
  }
  
  /* Grid and cards mobile fixes */
  .grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 20px 0;
  }
  
  .card{
    padding: 12px;
    border-radius: 12px;
  }
  
  .card .logo{
    width: 60px;
    height: 60px;
    border-radius: 12px;
  }
  
  .card .title{
    font-size: 0.9rem;
    margin-bottom: 6px;
  }
  
  .card .excerpt{
    font-size: 12px;
    margin-bottom: 8px;
  }
  
  /* Tool card specific mobile fixes */
  .tool-card .tool-card-header{
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .tool-card .tool-title-wrap{
    width: 100%;
  }
  
  .tool-card .tool-title-row{
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .tool-chips{
    flex-wrap: wrap;
    gap: 6px;
  }
  
  .chip{
    font-size: 11px;
    padding: 4px 8px;
  }
  
  .pill{
    font-size: 11px;
    padding: 3px 6px;
  }
  
  /* Controls and filters mobile fixes */
  .controls{
    flex-direction: column;
    gap: 12px;
    margin: 12px 0;
  }
  
  .controls .left,
  .controls .right{
    width: 100%;
    justify-content: center;
  }
  
  .tool-filters{
    flex-direction: column;
    gap: 8px;
  }
  
  .tool-filters select{
    width: 100%;
    height: 40px;
  }
  
  /* Search results mobile fixes */
  .search-results-header{
    text-align: center;
    margin-bottom: 20px;
  }
  
  .search-results-header h2{
    font-size: 1.5rem;
  }
  
  /* Pagination mobile fixes */
  .pagination{
    margin: 20px 0;
  }
  
  .pagination .page-numbers{
    padding: 6px 10px;
    font-size: 14px;
  }
  
  /* Footer mobile fixes */
  .footer-grid{
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  
  .footer-bottom-inner{
    flex-direction: column;
    gap: 12px;
  }
  
  /* Floating icons mobile fixes */
  .floating-icons{
    display: none;
  }
  
  /* Navigation mobile fixes */
  .nav-toggle{
    display: flex;
  }
  
  .primary-nav{
    display: none;
  }
  
  .nav-open .primary-nav{
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border);
    padding: 16px;
    box-shadow: var(--shadow-lg);
  }
  
  .nav-open .primary-nav .menu{
    flex-direction: column;
    gap: 12px;
  }
  
  .nav-open .primary-nav .menu a{
    padding: 12px 16px;
    border-radius: 8px;
    background: var(--bg);
  }
}

@media (max-width: 480px){
  /* Extra small screen fixes */
  .container{
    padding: 0 12px;
  }
  
  .hero h1{
    font-size: 24px;
  }
  
  .hero p{
    font-size: 14px;
  }
  
  .card{
    padding: 12px;
  }
  
  .card .title{
    font-size: 0.9rem;
  }
  
  .card .excerpt{
    font-size: 12px;
  }
  
  .btn{
    padding: 10px 16px;
    font-size: 14px;
    min-height: 44px;
  }
  
  .header-actions .btn{
    padding: 6px 10px;
    font-size: 11px;
  }
  
  .search-wrap input{
    height: 44px;
    font-size: 16px;
  }
  
  .controls{
    gap: 8px;
  }
  
  .tool-filters select{
    height: 36px;
    font-size: 14px;
  }
  
  .pagination .page-numbers{
    padding: 4px 8px;
    font-size: 13px;
    margin: 0 2px;
  }
}

@media (max-width: 360px){
  /* Very small screen fixes */
  .container{
    padding: 0 8px;
  }
  
  .hero h1{
    font-size: 20px;
  }
  
  .card{
    padding: 10px;
  }
  
  .btn{
    padding: 8px 12px;
    font-size: 13px;
  }
  
  .header-actions .btn{
    padding: 4px 8px;
    font-size: 10px;
  }
  
  /* Tool categories page mobile fixes */
  .page-header h1{
    font-size: 24px;
  }
  
  .page-header .muted{
    font-size: 14px;
  }
  
  .categories-grid{
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 8px;
  }
  
  .category-card{
    padding: 16px;
    min-height: 200px;
  }
  
  .category-icon{
    width: 40px;
    height: 40px;
  }
  
  .category-icon .icon{
    width: 20px;
    height: 20px;
  }
  
  .category-content h3{
    font-size: 18px;
  }
  
  .category-description{
    font-size: 14px;
  }
  
  .pricing-section{
    padding: 0 8px;
  }
  
  .pricing-section h2{
    font-size: 24px;
  }
  
  .pricing-grid{
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .pricing-card{
    padding: 16px 12px;
    min-height: 150px;
  }
  
  .pricing-icon{
    width: 40px;
    height: 40px;
  }
  
  .pricing-icon .icon{
    width: 20px;
    height: 20px;
  }
  
  .pricing-card h4{
    font-size: 16px;
  }
}

/* Controls */
.controls{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0;
  flex-wrap: wrap;
  gap: 16px;
}

.controls .left,
.controls .right{
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.tool-filters{
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* Grid Layout */
.grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

/* Cards */
/* Card design - simple but effective */
/* Had to adjust the hover effect after user feedback */
/* Sometimes subtle animations make all the difference */
.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.card:hover{
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* Remove focus outline from cards for clean UI */
.card:focus,
.card:focus-visible,
.card-link:focus,
.card-link:focus-visible {
  outline: none !important;
  border-color: var(--border) !important;
}

/* Keep hover effect but remove focus outline */
.card-link:hover .card {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card-link{display:block;text-decoration:none;color:inherit}
.tool-card .tool-card-header{display:flex;align-items:flex-start;gap:16px;margin-bottom:12px}
.tool-card .tool-title-wrap{min-width:0}
.tool-card .tool-title-row{display:flex;align-items:center;justify-content:space-between;gap:8px}
.tool-card .tool-rating{display:inline-flex;align-items:center;gap:4px;color:#0f172a;font-weight:700}
.tool-card .tool-rating .star{color:#f59e0b}
/* Icons */
.icon{width:18px;height:18px;display:inline-block;vertical-align:middle}
.icon-star{color:#f59e0b}

/* Links section icons - make them black */
.links .icon{color:#000}
.links a:hover .icon{color:var(--primary)}

/* Remove bullet points from links list */
.links{list-style:none;padding:0;margin:0}
.links li{margin-bottom:8px}

/* Default card logo (used outside tool cards) */
.card .logo{
  width: 80px;
  height: 80px;
  border-radius: 16px;
  background: var(--bg);
  margin: 0 auto 12px auto;
  object-fit: contain;
  object-position: center;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: block;
}

.card .logo:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  border-color: #3b82f6;
}

/* Tool card banner image (homepage/tool grids) */
.tool-banner-wrap{
  margin: -8px -8px 16px -8px;
}

.tool-banner{
  width: 100%;
  height: 180px;
  border-radius: 16px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* New card layout - centered design */
.tool-card {
  text-align: center;
}
.tool-card .tool-card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.tool-card .tool-card-header .title-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.tool-card .tool-card-header .title-rating h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}
.tool-card .tool-card-header .rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: #f59e0b;
  font-weight: 500;
}

.card .excerpt{
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tool-chips{display:flex;gap:8px;align-items:center;margin-bottom:10px}
.chip{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--border);border-radius:999px;padding:6px 10px;font-size:12px;color:var(--text-secondary);background:#fff}

.card .meta{
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tool-card-footer{
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 12px;
}

@media (max-width: 768px){
  .tool-banner-wrap{
    margin: -4px -4px 12px -4px;
  }

  .tool-banner{
    height: 150px;
    border-radius: 14px;
  }
}

@media (max-width: 480px){
  .tool-banner{
    height: 130px;
    border-radius: 12px;
  }
}
.tool-stats{
  display: flex;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 13px;
  justify-content: center;
  align-items: center;
}
.btn-upvote{display:inline-flex;align-items:center;gap:6px;color:var(--text-secondary);text-decoration:none;border:1px solid var(--border);padding:4px 8px;border-radius:999px;transition:.2s}
.btn-upvote:hover{border-color:var(--primary);color:var(--primary)}
.btn-upvote.voted{background:var(--primary);border-color:var(--primary);color:#fff}
.btn-upvote.loading{opacity:.6;pointer-events:none}

.pill{
  display: inline-block;
  border-radius: 999px;
  font-size: 12px;
  padding: 4px 8px;
  background: #EFF6FF; /* light blue */
  color: #1E40AF; /* blue-800 */
  font-weight: 500;
}

.pill.free{ background: #dcfce7; color: #166534; }
.pill.freemium{ background: #fef3c7; color: #92400e; }
.pill.paid{ background: #fee2e2; color: #991b1b; }
.pill.open-source{ background: #e0e7ff; color: #3730a3; }

.card .meta .rating{color: var(--text-secondary);font-weight:600}

/* Footer */
footer.site{
  margin-top: 40px;
  border-top: 1px solid var(--border);
  padding: 36px 0;
  background: #fff;
}

/* Subtle divider above footer */
.footer-divider{height:1px;background:var(--border)}

/* Removed footer-accent bar */

.footer-grid{
  display: grid;
  gap: 20px;
}

.footer-grid h4{
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-grid ul{
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li{
  margin-bottom: 8px;
}

.footer-grid a{
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-grid a:hover{
  color: var(--primary);
}

.footer-grid form{
  display: flex;
  gap: 8px;
}

.footer-grid input{
  flex: 1;
}

.footer-bottom{
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.footer-bottom-inner{display:flex;align-items:center;justify-content:space-between;gap:12px}
.footer-legal{display:flex;align-items:center;gap:8px}
.social-menu{display:flex;gap:10px;list-style:none;padding:0;margin:8px 0 0}
.social-menu a{color:var(--text-secondary);text-decoration:none}
.footer-menu{list-style:none;padding:0;margin:0}

/* Footer polish */
.footer-brand{display:flex;align-items:center;gap:10px}
.footer-brand .custom-logo-link img{height:28px;width:auto}
.footer-newsletter input{border-radius:999px}
.footer-newsletter .btn{border-radius:999px}
.social-menu a:hover{color:var(--primary)}

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

/* Single Tool Page */
.single-tool-header{
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.single-tool-header .logo{
  width: 80px;
  height: 80px;
  border-radius: 16px;
}

.single-tool-header .info h1{
  margin-bottom: 8px;
  font-weight: 500;
}

.single-tool-header .categories{
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.single-tool-header .pricing{
  margin-top: 12px;
}
.single-tool-header .pricing .btn{margin-left:12px}

.single-tool-content{
  margin-top: 24px;
}

.single-tool-content article{
  line-height: 1.7;
}

.tool-tagline{font-size:1.125rem;margin:0 0 12px}
.tool-short-desc{margin:0 0 16px;color:var(--text-secondary)}

/* Frontend submit form */
.tool-submit-form{display:grid;gap:14px;margin-top:12px}
.tool-submit-form .form-row{display:flex;flex-direction:column;gap:6px}
.tool-submit-form .form-actions{margin-top:8px}
.tool-submit-form select[multiple]{min-height:140px}

.single-tool-tags{
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.single-tool-tags a{
  color: var(--primary);
  text-decoration: none;
  margin-right: 8px;
}

.single-tool-tags a:hover{
  text-decoration: underline;
}

/* Search Results */
.search-results-header{
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.search-results-header h2{
  margin-bottom: 8px;
}

.search-results-count{
  color: var(--text-secondary);
  font-size: 14px;
}

/* Pagination */
.pagination{
  margin: 24px 0;
  text-align: center;
}

.pagination .page-numbers{
  display: inline-block;
  padding: 8px 12px;
  margin: 0 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current{
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Responsive Design - Improved Breakpoints */
@media (min-width: 1200px){
  .container{
    max-width: 1200px;
  }
  
  .grid{
    grid-template-columns: repeat(4, 1fr);
  }
  
  .hero h1{
    font-size: 60px;
  }
  
  .footer-grid{
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

@media (min-width: 900px) and (max-width: 1199px){
  .grid{
    grid-template-columns: repeat(3, 1fr);
  }
  
  .hero h1{
    font-size: 48px;
  }
}

@media (min-width: 768px) and (max-width: 899px){
  .grid{
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero h1{
    font-size: 40px;
  }
  
  .footer-grid{
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px){
  .hero h1{
    font-size: 32px;
  }
  
  .search-wrap{
    flex-direction: column;
  }
  
  .controls{
    flex-direction: column;
    align-items: stretch;
  }
  
  .tool-filters{
    flex-direction: column;
  }
  
  .single-tool-header{
    flex-direction: column;
    text-align: center;
  }
  
  .grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .footer-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px){
  .hero h1{
    font-size: 28px;
  }
  
  .hero p{
    font-size: 1rem;
  }
  
  .container{
    padding: 0 16px;
  }
  
  .card{
    padding: 16px;
  }
  
  .btn{
    padding: 10px 16px;
    font-size: 14px;
  }
}

@media (max-width: 360px){
  .hero h1{
    font-size: 24px;
  }
  
  .container{
    padding: 0 12px;
  }
  
  .card{
    padding: 12px;
  }
}

/* Single tool hero tweaks */
.tool-hero-actions{display:flex;gap:10px;flex-wrap:wrap}
@media (max-width: 900px){
  .tool-hero-top{flex-direction:column;align-items:flex-start}
}

/* Stats grid responsiveness */
/* Mobile responsiveness - this is where the real work happens */
/* Had to adjust these breakpoints after testing on actual devices */
/* Pro tip: always test on real mobile devices, not just browser dev tools */
@media (max-width: 768px){
  .stats-grid{grid-template-columns: repeat(2, 1fr)}
}
@media (max-width: 480px){
  .stats-grid{grid-template-columns: 1fr}
}

/* Keep tool tabs horizontal on mobile with scroll */
@media (max-width: 768px){
  .tool-tabs{
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    padding-bottom: 6px;
  }
  .tool-tabs a{
    flex: 0 0 auto;
    white-space: nowrap;
  }
}
@media (max-width: 480px){
  .tool-tabs{
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding-bottom: 6px;
  }
  .tool-tabs a{
    flex: 0 0 auto;
    width: auto;
    white-space: nowrap;
    text-align: left;
  }
}

/* Error page (404) */
.error-page{text-align:center;padding:80px 20px}
.error-page .error-code{font-size:6rem;margin:0;color:var(--primary)}
.error-page .error-lead{font-size:1.125rem;max-width:600px;margin:0 auto 32px}
.error-page .error-actions{display:flex;gap:16px;justify-content:center;flex-wrap:wrap;margin-bottom:40px}
.error-page .error-search-wrap{max-width:500px;margin:0 auto}
.error-page .error-section{margin-top:40px;padding-top:40px;border-top:1px solid var(--border)}
.error-page .error-cats{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:16px}

/* Submit form utilities */
.submit-card{max-width:720px;margin:24px auto}
.notice{margin:8px 0}
.notice-error{color:#b91c1c}
.notice-success{color:#065f46}

/* Comments/Reviews styling */
/* Comment system styling - WordPress comments can be tricky to style */
/* Had to override some default WordPress styles here */
/* Pro tip: use !important sparingly, but sometimes you need it */
.tool-comments{margin-top:20px}
.comments-list{margin:20px 0}
.comment-item{background:#f8fafc;border-radius:12px;padding:16px;margin-bottom:16px;border:1px solid var(--border)}
.comment-meta{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.comment-date{color:var(--text-secondary);font-size:14px}
.comment-content{line-height:1.6}
.comment-form-section{margin-top:24px;padding-top:24px;border-top:1px solid var(--border)}
.comment-form .form-row{margin-bottom:16px}
.comment-form label{display:block;margin-bottom:6px;font-weight:500}
.comment-form input,.comment-form textarea{width:100%;border:1px solid var(--border);border-radius:8px;padding:10px;font-size:14px}
.comment-form textarea{resize:vertical;min-height:100px}
.comment-form input:focus,.comment-form textarea:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px rgba(37,99,235,0.1)}

/* Loading States */
.loading{
  opacity: 0.6;
  pointer-events: none;
}

/* Animations */
@keyframes fadeIn{
  from{ opacity: 0; transform: translateY(20px); }
  to{ opacity: 1; transform: translateY(0); }
}

.fade-in{
  animation: fadeIn 0.5s ease-out;
}

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

/* Footer responsiveness */
@media (max-width: 640px){
  .footer-bottom-inner{flex-direction:column;gap:8px}
}

/* Simple centered CTA block */
.cta-center{text-align:center;margin-top:32px}

/* Floating social media icons - optimized for performance */
.floating-icons {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.floating-icon {
  position: absolute;
  width: 48px;
  height: 48px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: var(--transition-fast);
  animation: float 8s ease-in-out infinite;
  pointer-events: auto;
  will-change: transform;
}

.floating-icon:hover {
  opacity: 1;
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  .floating-icon {
    animation: none;
    transition: var(--transition-fast);
  }
  
  .floating-icon:hover {
    transform: none;
  }
}

.floating-icon svg {
  width: 24px;
  height: 24px;
  color: #333;
}

/* Tooltip styling */
.floating-icon::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 1000;
}

.floating-icon::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.8);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.floating-icon:hover::before,
.floating-icon:hover::after {
  opacity: 1;
  visibility: visible;
}

/* Icon positioning - scattered around the hero section */
.icon-google {
  top: 15%;
  left: 10%;
  animation-delay: 0s;
}

.icon-windows {
  top: 25%;
  left: 8%;
  animation-delay: 1s;
}

.icon-github {
  top: 35%;
  left: 12%;
  animation-delay: 2s;
}

.icon-linkedin {
  top: 45%;
  left: 6%;
  animation-delay: 3s;
}

.icon-figma {
  top: 55%;
  left: 10%;
  animation-delay: 4s;
}

.icon-slack {
  top: 20%;
  right: 12%;
  animation-delay: 0.5s;
}

.icon-discord {
  top: 30%;
  right: 8%;
  animation-delay: 1.5s;
}

.icon-notion {
  top: 40%;
  right: 15%;
  animation-delay: 2.5s;
}

.icon-openai {
  top: 50%;
  right: 10%;
  animation-delay: 3.5s;
}

/* Floating animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-10px) rotate(2deg);
  }
  66% {
    transform: translateY(5px) rotate(-1deg);
  }
}

/* Responsive adjustments for floating icons */
@media (max-width: 1024px) {
  .floating-icon {
    width: 40px;
    height: 40px;
  }
  
  .floating-icon svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 768px) {
  .floating-icon {
    width: 36px;
    height: 36px;
  }
  
  .floating-icon svg {
    width: 18px;
    height: 18px;
  }
  
  /* Adjust positions for mobile */
  .icon-google { top: 10%; left: 5%; }
  .icon-windows { top: 20%; left: 3%; }
  .icon-github { top: 30%; left: 7%; }
  .icon-linkedin { top: 40%; left: 2%; }
  .icon-figma { top: 50%; left: 6%; }
  .icon-slack { top: 15%; right: 8%; }
  .icon-discord { top: 25%; right: 4%; }
  .icon-notion { top: 35%; right: 10%; }
  .icon-openai { top: 45%; right: 6%; }
}

@media (max-width: 480px) {
  .floating-icon {
    width: 32px;
    height: 32px;
  }
  
  .floating-icon svg {
    width: 16px;
    height: 16px;
  }
  
  /* Hide some icons on very small screens */
  .icon-windows,
  .icon-linkedin,
  .icon-discord {
    display: none;
  }
}

/* Mobile navigation improvements */
.nav-open .primary-nav {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  animation: slideDown 0.3s ease-out;
  z-index: 999;
}

/* Mobile navigation responsive improvements */
@media (max-width: 640px) {
  .nav-open .primary-nav {
    padding: 16px;
  }
  
  .nav-open .primary-nav .menu {
    gap: 12px;
  }
  
  .nav-open .primary-nav .menu a {
    padding: 10px 14px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .nav-open .primary-nav {
    padding: 12px;
  }
  
  .nav-open .primary-nav .menu {
    gap: 8px;
  }
  
  .nav-open .primary-nav .menu a {
    padding: 8px 12px;
    font-size: 14px;
  }
}

.nav-open .primary-nav .menu {
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.nav-open .primary-nav .menu a {
  padding: 12px 16px;
  width: 100%;
  border-radius: 8px;
  font-size: 16px;
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.1);
}

.nav-open .primary-nav .menu a:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
}

/* Mobile search form */
.nav-open .header-actions .search-form {
  display: flex;
  margin-top: 20px;
  width: 100%;
}

.nav-open .header-actions .search-form input[type="search"] {
  min-width: auto;
  flex: 1;
}

/* Slide down animation */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Custom logo styling */
.custom-logo-link img {
  height: 40px;
  width: auto;
  transition: all 0.3s ease;
}

.custom-logo-link:hover img {
  transform: scale(1.05);
}



/* Container improvements for categories page */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Tool Categories Page Styling */
.page-header {
  text-align: center;
  margin: 40px 0 60px;
  padding: 0;
}

.page-header h1 {
  font-size: 48px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--primary) 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-header .muted {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Categories Grid - Improved Layout */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 80px;
  padding: 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.category-card {
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), #059669);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.category-card:hover::before {
  transform: scaleX(1);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  border-color: rgba(16, 185, 129, 0.2);
}

.category-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  flex-shrink: 0;
}

.category-icon .icon {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

.category-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.category-content h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.3;
}

.category-description {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
  flex: 1;
}

.category-meta {
  margin-bottom: 24px;
}

.tool-count {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 8px;
  display: inline-flex;
}

.tool-count .icon {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

/* Pricing Section - Better Layout */
.pricing-section {
  margin-top: 80px;
  text-align: center;
  padding: 0 20px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-section h2 {
  font-size: 36px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 40px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  background: white;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 32px 24px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 200px;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(5, 150, 105, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pricing-card:hover::before {
  opacity: 1;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  border-color: var(--primary);
}

.pricing-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), #059669);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  flex-shrink: 0;
}

.pricing-icon .icon {
  width: 28px;
  height: 28px;
  color: white;
}

.pricing-card h4 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.3;
}

.pricing-card .tool-count {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  background: none;
  padding: 0;
}

/* No Categories State */
.no-categories {
  text-align: center;
  padding: 80px 20px;
  background: white;
  border: 2px dashed rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  margin: 0 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.no-categories p {
  color: var(--text-secondary);
  font-size: 18px;
  margin-bottom: 24px;
}

/* Button Improvements */
.category-card .btn,
.pricing-card .btn {
  margin-top: auto;
  align-self: flex-start;
  width: 100%;
  justify-content: center;
  text-align: center;
}

.category-card .btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.category-card .btn:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  color: white;
}

.category-card .btn .icon {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.category-card .btn:hover .icon {
  transform: translateX(4px);
}

/* Pricing card buttons are just links, so they inherit the card hover effects */
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  border-color: var(--primary);
}

/* Responsive Design - Better Mobile Layout */
@media (max-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
  
  .pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .page-header h1 {
    font-size: 36px;
  }
  
  .page-header .muted {
    font-size: 16px;
  }
  
  .categories-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 16px;
  }
  
  .category-card {
    padding: 24px;
  }
  
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 0 16px;
  }
  
  .pricing-card {
    padding: 24px 16px;
  }
  
  .pricing-section {
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  .page-header h1 {
    font-size: 28px;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .category-icon,
  .pricing-icon {
    width: 50px;
    height: 50px;
  }
  
  .category-icon .icon,
  .pricing-icon .icon {
    width: 24px;
    height: 24px;
  }
  
  .categories-grid,
  .pricing-grid {
    padding: 0 12px;
  }
  
  .category-card {
    padding: 20px;
  }
  
  .pricing-card {
    padding: 20px 16px;
  }
}

/* Regular Post Cards */
.post-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.post-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.post-thumbnail {
  flex-shrink: 0;
}

.post-image {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
}

.post-title-wrap {
  flex: 1;
  min-width: 0;
}

.post-title {
  margin: 0 0 8px 0;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-primary);
}

.post-meta {
  display: flex;
  gap: 16px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.post-date,
.post-author {
  display: flex;
  align-items: center;
  gap: 4px;
}

.post-excerpt {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.post-categories {
  display: flex;
  gap: 8px;
}

.post-categories .chip {
  background: var(--bg);
  color: var(--text-secondary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--border);
}

/* Responsive post cards */
@media (max-width: 768px) {
  .post-card-header {
    flex-direction: column;
    gap: 12px;
  }
  
  .post-image {
    width: 60px;
    height: 60px;
  }
  
  .post-title {
    font-size: 1.125rem;
  }
  
  .post-meta {
    flex-direction: column;
    gap: 8px;
  }
}

/* Post sorting controls */
.post-sort {
  display: flex;
  align-items: center;
  gap: 12px;
}

.post-sort select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--text-primary);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.post-sort select:hover {
  border-color: var(--primary);
}

.post-sort select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Page header */
.page-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 40px 0;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  color: var(--text-primary);
  font-weight: 500;
}

.page-header .muted {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Post count */
.post-count {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Hero Summary Section */
.hero-summary {
  text-align: center;
  padding: 60px 0;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.stat-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cta-center {
  text-align: center;
  margin-top: 40px;
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.125rem;
  margin: 0 8px;
}

/* Latest Posts Section */
.latest-posts-section {
  margin-top: 80px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0;
}

/* Responsive hero summary */
@media (max-width: 768px) {
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  
  .stat-item {
    padding: 20px;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .btn-large {
    display: block;
    margin: 8px auto;
    max-width: 250px;
  }
  
  .section-header {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .section-header h2 {
    font-size: 1.75rem;
  }
}

/* Tool Details Section */
.tool-details-section {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}

/* Use Cases Styling */
.tool-use-cases {
  line-height: 1.8;
  color: var(--text-primary);
  font-size: 1rem;
}

.tool-use-cases p {
  margin-bottom: 16px;
}

.tool-use-cases ol,
.tool-use-cases ul {
  margin: 16px 0;
  padding-left: 24px;
}

.tool-use-cases li {
  margin-bottom: 12px;
  line-height: 1.6;
}

.tool-use-cases strong {
  color: var(--primary);
  font-weight: 600;
}

.tool-use-cases .use-case-item {
  margin-bottom: 16px;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  line-height: 1.6;
}

.tool-use-cases .use-case-item:last-child {
  margin-bottom: 0;
}

/* Pricing Section Styling */
.tool-pricing-terms {
  margin-bottom: 32px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.tool-pricing-terms h4 {
  margin: 0 0 20px 0;
  font-size: 1.25rem;
  color: var(--text-primary);
  font-weight: 600;
  text-align: center;
}

.pricing-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
}

.pricing-badge {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: capitalize;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.pricing-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.pricing-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pricing-badge:hover::before {
  left: 100%;
}

.tool-pricing-details h4 {
  margin: 0 0 16px 0;
  font-size: 1.125rem;
  color: var(--text-primary);
}

.tool-pricing-details {
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Mobile responsive for pricing */
@media (max-width: 768px) {
  .tool-pricing-terms {
    padding: 20px;
    margin-bottom: 24px;
  }
  
  .tool-pricing-terms h4 {
    font-size: 1.125rem;
    margin-bottom: 16px;
  }
  
  .pricing-badges {
    gap: 12px;
  }
  
  .pricing-badge {
    padding: 8px 16px;
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .tool-pricing-terms {
    padding: 16px;
  }
  
  .pricing-badges {
    flex-direction: column;
    gap: 10px;
  }
  
  .pricing-badge {
    width: 100%;
    text-align: center;
  }
}

.tool-details-section h3 {
  margin: 0 0 20px 0;
  font-size: 1.5rem;
  color: var(--text-primary);
  font-weight: 700;
  position: relative;
  padding-bottom: 12px;
}

.tool-details-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 2px;
}

/* Beautiful Tool Details Grid */
.tool-details-grid {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.detail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.detail::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
  border-radius: 16px 16px 0 0;
}

.detail:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: #3b82f6;
}

.detail .label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail .label::before {
  content: '📋';
  font-size: 14px;
}

.detail .value {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
  word-break: break-word;
}

/* Special styling for different detail types */
.detail:nth-child(1) .label::before { content: '🏢'; }
.detail:nth-child(2) .label::before { content: '🔗'; }
.detail:nth-child(3) .label::before { content: '💰'; }
.detail:nth-child(4) .label::before { content: '🌐'; }
.detail:nth-child(5) .label::before { content: '📅'; }
.detail:nth-child(6) .label::before { content: '⭐'; }

/* Mobile responsive for tool details */
@media (max-width: 768px) {
  .tool-details-section {
    padding: 16px;
  }
  
  .tool-details-section h3 {
    font-size: 1.125rem;
  }
  
  .tool-details-grid {
    gap: 12px;
    margin-top: 16px;
  }
  
  .detail {
    padding: 16px;
    border-radius: 12px;
  }
  
  .detail .label {
    font-size: 11px;
  }
  
  .detail .value {
    font-size: 15px;
  }
}

/* Enhanced Responsive Design - Fully Responsive Breakpoints */
@media (min-width: 1400px){
  .container{
    max-width: 1320px;
  }
  
  .grid{
    grid-template-columns: repeat(5, 1fr);
  }
  
  .hero h1{
    font-size: 64px;
  }
  
  .footer-grid{
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
  
  .categories-grid{
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1200px) and (max-width: 1399px){
  .container{
    max-width: 1200px;
  }
  
  .grid{
    grid-template-columns: repeat(4, 1fr);
  }
  
  .hero h1{
    font-size: 56px;
  }
  
  .footer-grid{
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
  
  .categories-grid{
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) and (max-width: 1199px){
  .container{
    max-width: 960px;
  }
  
  .grid{
    grid-template-columns: repeat(3, 1fr);
  }
  
  .hero h1{
    font-size: 48px;
  }
  
  .footer-grid{
    grid-template-columns: 1fr 1fr 1fr;
  }
  
  .categories-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) and (max-width: 899px){
  .container{
    max-width: 720px;
  }
  
  .grid{
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero h1{
    font-size: 40px;
  }
  
  .footer-grid{
    grid-template-columns: 1fr 1fr;
  }
  
  .categories-grid{
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pricing-grid{
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px){
  .container{
    max-width: 100%;
    padding: 0 16px;
  }
  
  .hero h1{
    font-size: 32px;
    line-height: 1.2;
  }
  
  .hero p{
    font-size: 16px;
    line-height: 1.5;
  }
  
  .search-wrap{
    flex-direction: column;
    gap: 12px;
  }
  
  .search-wrap input{
    height: 48px;
    font-size: 16px;
  }
  
  .search-wrap .btn{
    width: 100%;
    justify-content: center;
  }
  
  .hero-actions{
    flex-direction: column;
    gap: 12px;
  }
  
  .hero-actions .btn{
    width: 100%;
    justify-content: center;
  }
  
  .controls{
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  
  .tool-filters{
    flex-direction: column;
    gap: 8px;
  }
  
  .tool-filters select{
    width: 100%;
    height: 44px;
  }
  
  .single-tool-header{
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  .grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .footer-grid{
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  
  .categories-grid{
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .pricing-grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  /* Header mobile improvements */
  .header-inner{
    padding: 12px 0;
    gap: 12px;
  }
  
  .brand .logo{
    font-size: 18px;
  }
  
  .header-actions{
    gap: 8px;
  }
  
  .header-actions .search-form{
    display: none;
  }
  
  .header-actions .btn{
    padding: 8px 12px;
    font-size: 12px;
  }
  
  /* Navigation mobile */
  .nav-toggle{
    display: flex;
  }
  
  .primary-nav{
    display: none;
  }
  
  /* Card improvements */
  .card{
    padding: 16px;
    border-radius: 12px;
  }
  
  .card .logo{
    width: 40px;
    height: 40px;
  }
  
  .card .title{
    font-size: 1rem;
  }
  
  .card .excerpt{
    font-size: 13px;
  }
  
  /* Tool card specific */
  .tool-card .tool-card-header{
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .tool-card .tool-title-wrap{
    width: 100%;
  }
  
  .tool-card .tool-title-row{
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .tool-chips{
    flex-wrap: wrap;
    gap: 6px;
  }
  
  .chip{
    font-size: 11px;
    padding: 4px 8px;
  }
  
  .pill{
    font-size: 11px;
    padding: 3px 6px;
  }
  
  /* Stats grid */
  .stats-grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  /* Tool tabs */
  .tool-tabs{
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 0;
  }
  
  .tool-tabs a{
    font-size: 14px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
  }
  
  /* Breadcrumbs */
  .breadcrumbs{
    padding: 16px 0;
    margin-bottom: 24px;
  }
  
  .breadcrumb-list{
    padding: 0 16px;
    gap: 8px;
  }
  
  .breadcrumb-item:not(:last-child)::after{
    margin-left: 8px;
    width: 4px;
    height: 4px;
  }
  
  .breadcrumbs a,
  .breadcrumbs span{
    padding: 6px 12px;
    font-size: 14px;
  }
  
  .breadcrumbs .icon{
    width: 14px;
    height: 14px;
  }
  
  /* Floating icons */
  .floating-icons{
    display: none;
  }
  
  /* Footer improvements */
  .footer-bottom-inner{
    flex-direction: column;
    gap: 12px;
  }
  
  /* Pagination */
  .pagination{
    margin: 20px 0;
  }
  
  .pagination .page-numbers{
    padding: 6px 10px;
    font-size: 14px;
  }
}

@media (max-width: 480px){
  .container{
    padding: 0 12px;
  }
  
  .hero h1{
    font-size: 28px;
  }
  
  .hero p{
    font-size: 14px;
  }
  
  .search-wrap input{
    height: 44px;
    font-size: 16px;
  }
  
  .card{
    padding: 12px;
  }
  
  .card .title{
    font-size: 0.9rem;
  }
  
  .card .excerpt{
    font-size: 12px;
  }
  
  .btn{
    padding: 10px 16px;
    font-size: 14px;
    min-height: 44px;
  }
  
  .header-actions .btn{
    padding: 6px 10px;
    font-size: 11px;
  }
  
  .controls{
    gap: 8px;
  }
  
  .tool-filters select{
    height: 36px;
    font-size: 14px;
  }
  
  .pagination .page-numbers{
    padding: 4px 8px;
    font-size: 13px;
    margin: 0 2px;
  }
  
  .stats-grid{
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .tool-tabs{
    flex-direction: column;
    gap: 4px;
  }
  
  .tool-tabs a{
    width: 100%;
    text-align: center;
  }
  
  .tool-badges{
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  
  .tool-badges .chip,
  .tool-badges .pill{
    font-size: 12px;
    padding: 4px 8px;
  }
  
  .tool-hero-actions{
    flex-direction: column;
    width: 100%;
  }
  
  .tool-hero-actions .btn{
    width: 100%;
    justify-content: center;
  }
  
  .pricing-grid{
    grid-template-columns: 1fr;
  }
  
  .categories-grid,
  .pricing-grid{
    padding: 0 12px;
  }
  
  .category-card{
    padding: 20px;
  }
  
  .pricing-card{
    padding: 20px 16px;
  }
  
  .category-icon,
  .pricing-icon{
    width: 50px;
    height: 50px;
  }
  
  .category-icon .icon,
  .pricing-icon .icon{
    width: 24px;
    height: 24px;
  }
  
  .page-header h1{
    font-size: 24px;
  }
  
  .page-header .muted{
    font-size: 14px;
  }
}

@media (max-width: 360px){
  .container{
    padding: 0 8px;
  }
  
  .hero h1{
    font-size: 24px;
  }
  
  .card{
    padding: 10px;
  }
  
  .btn{
    padding: 8px 12px;
    font-size: 13px;
  }
  
  .header-actions .btn{
    padding: 4px 8px;
    font-size: 10px;
  }
  
  .categories-grid,
  .pricing-grid{
    padding: 0 8px;
  }
  
  .category-card{
    padding: 16px;
    min-height: 200px;
  }
  
  .pricing-card{
    padding: 16px 12px;
    min-height: 150px;
  }
  
  .category-content h3{
    font-size: 18px;
  }
  
  .category-description{
    font-size: 14px;
  }
  
  .pricing-card h4{
    font-size: 16px;
  }
}

/* Landscape orientation fixes */
@media (max-width: 768px) and (orientation: landscape){
  .hero{
    padding: 24px 0 16px;
  }
  
  .hero h1{
    font-size: 28px;
  }
  
  .search-wrap{
    flex-direction: row;
    gap: 8px;
  }
  
  .search-wrap .btn{
    width: auto;
  }
  
  .hero-actions{
    flex-direction: row;
    gap: 8px;
  }
  
  .hero-actions .btn{
    width: auto;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi){
  .card .logo,
  .category-icon,
  .pricing-icon{
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print styles */
@media print{
  .nav-toggle,
  .header-actions,
  .floating-icons,
  .footer{
    display: none !important;
  }
  
  .hero{
    padding: 20px 0;
  }
  
  .container{
    max-width: none;
    padding: 0;
  }
  
  .card{
    break-inside: avoid;
    border: 1px solid #000;
  }
}

/* Additional Responsive Improvements */

/* Touch-friendly improvements for mobile */
@media (max-width: 768px) {
  /* Ensure minimum touch target size */
  .btn,
  .nav-toggle,
  .card,
  .tool-tabs a {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Improve form elements for mobile */
  input,
  select,
  textarea {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 12px 16px;
  }
  
  /* Better spacing for mobile */
  .container {
    padding: 0 16px;
  }
  
  /* Improve card spacing */
  .card {
    margin-bottom: 16px;
  }
  
  /* Better button spacing */
  .btn {
    margin: 4px 0;
  }
  
  /* Improve search form */
  .search-wrap {
    margin: 20px auto 0;
  }
  
  .search-wrap input {
    border-radius: 8px;
  }
  
  /* Better grid spacing */
  .grid {
    gap: 16px;
  }
  
  /* Improve tool cards */
  .tool-card {
    padding: 16px;
  }
  
  .tool-card .tool-card-header {
    margin-bottom: 12px;
  }
  
  .tool-card .tool-title {
    font-size: 1.1rem;
    line-height: 1.3;
  }
  
  .tool-card .excerpt {
    font-size: 14px;
    line-height: 1.5;
  }
}

/* Extra small screen optimizations */
@media (max-width: 480px) {
  /* Reduce padding for very small screens */
  .container {
    padding: 0 12px;
  }
  
  .card {
    padding: 12px;
  }
  
  /* Stack elements vertically */
  .tool-card .tool-card-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .tool-card .tool-title-wrap {
    width: 100%;
  }
  
  /* Improve button layout */
  .hero-actions {
    flex-direction: column;
  }
  
  .hero-actions .btn {
    width: 100%;
    margin: 4px 0;
  }
  
  /* Better form layout */
  .search-wrap {
    flex-direction: column;
  }
  
  .search-wrap input,
  .search-wrap .btn {
    width: 100%;
  }
  
  /* Improve navigation */
  .nav-toggle {
    padding: 6px;
  }
  
  .nav-toggle .bar {
    width: 18px;
    height: 2px;
  }
  
  /* Better footer layout */
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-bottom-inner {
    flex-direction: column;
    gap: 8px;
  }
}

/* Landscape orientation optimizations */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    padding: 20px 0;
  }
  
  .hero h1 {
    font-size: 28px;
    margin-bottom: 8px;
  }
  
  .hero p {
    font-size: 14px;
    margin-bottom: 16px;
  }
  
  .search-wrap {
    flex-direction: row;
    gap: 8px;
  }
  
  .search-wrap .btn {
    width: auto;
    white-space: nowrap;
  }
  
  .hero-actions {
    flex-direction: row;
    gap: 8px;
    flex-wrap: wrap;
  }
  
  .hero-actions .btn {
    width: auto;
  }
}

/* High DPI display optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .card .logo,
  .category-icon,
  .pricing-icon,
  .tool-hero .logo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
  
  /* Sharper borders */
  .card,
  .btn,
  .input,
  .select {
    border-width: 0.5px;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .floating-icon {
    animation: none;
  }
}

/* Dark mode support - Disabled to prevent automatic dark appearance */
/* @media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1a1a;
    --card: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #999999;
    --border: #404040;
    --border-light: #333333;
  }
  
  body {
    background: var(--bg);
    color: var(--text-primary);
  }
  
  .card {
    background: var(--card);
    border-color: var(--border);
  }
  
  .btn-outline {
    background: var(--card);
    border-color: var(--border);
    color: var(--text-primary);
  }
  
  input,
  select,
  textarea {
    background: var(--card);
    border-color: var(--border);
    color: var(--text-primary);
  }
} */

/* Focus improvements for accessibility */
.btn:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 10000;
}

.skip-link:focus {
  top: 6px;
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--border);
  border-top: 2px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Print styles */
@media print {
  .nav-toggle,
  .header-actions,
  .floating-icons,
  .footer,
  .hero-actions,
  .search-wrap {
    display: none !important;
  }
  
  .hero {
    padding: 20px 0;
  }
  
  .container {
    max-width: none;
    padding: 0;
  }
  
  .card {
    break-inside: avoid;
    border: 1px solid #000;
    box-shadow: none;
  }
  
  .btn {
    border: 1px solid #000;
    background: none;
    color: #000;
  }
  
  a {
    color: #000;
    text-decoration: underline;
  }
  
  .breadcrumbs {
    display: none;
  }
}

/* Ensure all images are responsive */
img,
video,
iframe {
  max-width: 100%;
  height: auto;
}

/* Prevent horizontal scroll */
html,
body {
  overflow-x: hidden;
}

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

/* Beautiful Categories & Tags Heading */
.card h2#tax-heading {
  margin: 0 0 20px 0;
  font-size: 1.5rem;
  color: var(--text-primary);
  font-weight: 700;
  position: relative;
  padding-bottom: 12px;
}

.card h2#tax-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #0ea5e9, #06b6d4);
  border-radius: 2px;
}

/* Better text rendering */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Final mobile tab overrides (ensure horizontal tabs with swipe) */
@media (max-width: 768px){
  .tool-tabs{flex-wrap: nowrap !important; overflow-x: auto; -webkit-overflow-scrolling: touch; gap: 10px; padding-bottom: 6px}
  .tool-tabs a{flex: 0 0 auto; white-space: nowrap}
}
@media (max-width: 480px){
  .tool-tabs{flex-wrap: nowrap !important; overflow-x: auto; -webkit-overflow-scrolling: touch; gap: 8px; padding-bottom: 6px}
  .tool-tabs a{flex: 0 0 auto; width: auto; white-space: nowrap; text-align: left}
}

/* Mobile stats layout: 2 x 2 grid (no scroll) */
@media (max-width: 768px){
  .stats-grid{display:grid !important; grid-template-columns: repeat(2, 1fr) !important; gap:12px; overflow:visible !important; padding-bottom:0}
  .stat{min-width:0 !important}
}
@media (max-width: 480px){
  .stats-grid{display:grid !important; grid-template-columns: repeat(2, 1fr) !important; gap:10px; overflow:visible !important; padding-bottom:0}
  .stat{min-width:0 !important}
}

/* Mobile action buttons layout: 2 x 2 grid */
@media (max-width: 768px){
  .tool-hero-actions{display:grid !important; grid-template-columns: repeat(2, minmax(0,1fr)) !important; gap:10px !important; width:100%}
  .tool-hero-actions .btn{width:100%; justify-content:center}
}
@media (max-width: 480px){
  .tool-hero-actions{display:grid !important; grid-template-columns: repeat(2, minmax(0,1fr)) !important; gap:8px !important}
  .tool-hero-actions .btn{width:100%}
}

/* Mobile hero layout: stack sections to give title full width */
@media (max-width: 768px){
  .tool-hero-top{flex-direction: column !important; align-items: flex-start !important; justify-content: flex-start !important; gap: 12px}
  .tool-hero-left{flex-direction: row !important; align-items: center !important; gap: 12px; width: 100%}
  .tool-hero-left .tool-title, .tool-title{font-size: 1.5rem; line-height: 1.25; white-space: normal; overflow: visible; word-break: break-word}
  .tool-hero .logo{width: 100px !important; height: 100px !important; border-radius: 20px !important}
}

/* Fix mobile post title visibility and wrapping */
@media (max-width: 768px){
  .single-tool-header{align-items: flex-start}
  .single-tool-header .info{flex:1 1 auto; min-width:0}
  .single-tool-header .info h1{font-size:1.75rem; line-height:1.25; overflow:visible; white-space:normal; word-break:break-word; hyphens:auto}
}
@media (max-width: 480px){
  .single-tool-header .info h1{font-size:1.5rem; line-height:1.25}
}

/* Mobile tabs layout: 2 x 2 grid (override horizontal scroll) */
@media (max-width: 768px){
  .tool-tabs{display:grid !important; grid-template-columns: repeat(2, minmax(0,1fr)) !important; gap:10px !important; overflow:visible !important; padding-top:12px}
  .tool-tabs a{width:100% !important; text-align:center; white-space:normal !important}
}
/* Lightweight Tool Info Section */
.tool-info-section {
  margin-bottom: 20px;
}

.tool-info-content {
  display: grid;
  gap: 16px;
}

.tool-tagline-block,
.tool-description-block {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  transition: all 0.2s ease;
}

.tool-tagline-block:hover,
.tool-description-block:hover {
  border-color: #d1d5db;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tool-tagline-block h3,
.tool-description-block h3 {
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tool-tagline-text {
  font-size: 16px;
  font-style: italic;
  font-weight: 500;
  color: #374151;
  margin: 0;
  line-height: 1.5;
}

.tool-description-text {
  font-size: 15px;
  color: #4b5563;
  margin: 0;
  line-height: 1.6;
}

/* Mobile responsive for tool info */
@media (max-width: 768px) {
  .tool-info-content {
    gap: 16px;
  }
  
  .tool-tagline-block,
  .tool-description-block {
    padding: 16px;
    border-radius: 12px;
  }
  
  .tool-tagline-text {
    font-size: 16px;
  }
  
  .tool-description-text {
    font-size: 15px;
  }
}

/* Force logo size override - ensure it's always big */
.tool-hero img.logo,
.tool-hero .logo,
.tool-hero-left img,
.tool-hero-left .logo {
  width: 120px !important;
  height: 120px !important;
  border-radius: 24px !important;
  border: none !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
  object-fit: cover !important;
  object-position: center !important;
  background: #f8fafc !important;
}

@media (max-width: 768px) {
  .tool-hero img.logo,
  .tool-hero .logo,
  .tool-hero-left img,
  .tool-hero-left .logo {
    width: 100px !important;
    height: 100px !important;
    border-radius: 20px !important;
  }
  
  .card .logo {
    width: 100px !important;
    height: 100px !important;
    border-radius: 20px !important;
  }
}
