/*
Theme Name: Tools theme
Theme URI: https://toolshubpro.com
Author: Your Name
Author URI: https://yourwebsite.com
Description: A premium, professional WordPress theme for SEO tools, online utilities, and converter websites. Features 3 tool card designs, 3 widget styles, extensive customizer options, ad management, and optimized for performance and SEO.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: toolshub-pro
Tags: blog, tools, seo, utilities, grid-layout, custom-colors, custom-menu, featured-images, footer-widgets, theme-options, translation-ready, responsive

ToolsHub Pro WordPress Theme, (C) 2024
*/

/* ==========================================================================
   CSS VARIABLES
   ========================================================================== */

:root {
  /* Colors */
  --color-primary: #6366f1;
  --color-secondary: #8b5cf6;
  --color-accent: #ec4899;
  --color-hover: #4f46e5;
  
  /* Neutrals */
  --color-white: #ffffff;
  --color-black: #000000;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;
  
  /* Backgrounds */
  --bg-body: #ffffff;
  --bg-content: #ffffff;
  --bg-sidebar: #f9fafb;
  --bg-footer: #1f2937;
  
  /* Text */
  --text-heading: #111827;
  --text-body: #4b5563;
  --text-meta: #6b7280;
  --text-link: #6366f1;
  
  /* Typography */
  --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Inter', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --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);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 300ms ease-in-out;
  
  /* Grid */
  --grid-gap: 1.5rem;
  --grid-columns-desktop: 5;
  --grid-columns-tablet: 3;
  --grid-columns-mobile: 2;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

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

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

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-body);
  background-color: var(--bg-body);
  overflow-x: hidden;
}

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

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-hover);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-heading);
  margin-bottom: var(--spacing-md);
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

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

.site-main {
  flex: 1;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.content-area {
  display: flex;
  gap: var(--spacing-2xl);
  margin: var(--spacing-2xl) 0;
}

.main-content {
  flex: 1;
  min-width: 0;
}

.sidebar-area {
  width: 30%;
  flex-shrink: 0;
}

/* ==========================================================================
   HEADER - PROFESSIONAL
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-base);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-lg) 0;
  gap: var(--spacing-xl);
}

.site-branding {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.site-logo img {
  max-height: 50px;
  width: auto;
}

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

/* Header Search - Professional */
.header-search {
  flex: 1;
  max-width: 600px;
  position: relative;
}

.header-search input {
  width: 100%;
  padding: 14px 24px;
  padding-right: 120px;
  border: 2px solid var(--color-gray-200);
  border-radius: var(--radius-full);
  font-size: 1rem;
  transition: all var(--transition-base);
  background: var(--color-gray-50);
}

.header-search input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--color-white);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.header-search button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-full);
  padding: 10px 24px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.header-search button:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: var(--shadow-lg);
}

/* Primary Menu */
.primary-menu {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  margin: 0;
  padding: 0;
}

.primary-menu > li > a {
  display: block;
  padding: var(--spacing-sm) var(--spacing-md);
  font-weight: 600;
  color: var(--text-heading);
  transition: color var(--transition-fast);
  font-size: 0.9375rem;
}

.primary-menu > li > a:hover {
  color: var(--color-primary);
}

/* Mobile Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: var(--spacing-sm);
  cursor: pointer;
}

.mobile-menu-toggle .menu-bar {
  width: 24px;
  height: 2px;
  background-color: var(--text-heading);
  transition: all var(--transition-base);
}
.mobile-menu{ display: none;}

/* ==========================================================================
   TOOLS GRID
   ========================================================================== */

.tools-grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns-desktop), 1fr);
  gap: var(--grid-gap);
}

/* Continued in next parts... */

/* ==========================================================================
   TOOL CARD DESIGNS - EXACT MATCH TO IMAGES
   ========================================================================== */

/* ==========================================================================
   DESIGN 1: Simple Grid (Image 1 Style)
   White background, rounded corners, icon on top, text below
   ========================================================================== */

.tool-design-1 .tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  position: relative;
  height: 100%;
}

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

.tool-design-1 .tool-card-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.tool-design-1 .tool-card-image {
  width: 64px;
  height: 64px;
  margin-bottom: var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
}

.tool-design-1 .tool-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(20%);
}

.tool-design-1 .tool-card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-heading);
  margin: 0;
  line-height: 1.4;
}

.tool-design-1 .tool-card:hover .tool-card-title {
  color: var(--color-primary);
}

/* ==========================================================================
   DESIGN 2: Colored Icon Badges (Image 2 Style)
   Colorful square icons with badges, more compact
   ========================================================================== */

.tool-design-2 .tool-card {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md) var(--spacing-lg);
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.tool-design-2 .tool-card:hover {
  background-color: var(--color-gray-50);
  border-color: var(--color-gray-300);
  transform: translateX(4px);
}

.tool-design-2 .tool-card-link {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.tool-design-2 .tool-card-image {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
  padding: 10px;
}

/* Colorful Icon Variations */
.tool-design-2 .tool-card:nth-child(1) .tool-card-image { 
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); 
}
.tool-design-2 .tool-card:nth-child(2) .tool-card-image { 
  background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%); 
}
.tool-design-2 .tool-card:nth-child(3) .tool-card-image { 
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%); 
}
.tool-design-2 .tool-card:nth-child(4) .tool-card-image { 
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%); 
}
.tool-design-2 .tool-card:nth-child(5) .tool-card-image { 
  background: linear-gradient(135deg, #e67e22 0%, #d35400 100%); 
}
.tool-design-2 .tool-card:nth-child(6) .tool-card-image { 
  background: linear-gradient(135deg, #f39c12 0%, #f1c40f 100%); 
}
.tool-design-2 .tool-card:nth-child(7) .tool-card-image { 
  background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%); 
}
.tool-design-2 .tool-card:nth-child(8) .tool-card-image { 
  background: linear-gradient(135deg, #bdc3c7 0%, #95a5a6 100%); 
}
.tool-design-2 .tool-card:nth-child(9) .tool-card-image { 
  background: linear-gradient(135deg, #e67e22 0%, #d35400 100%); 
}
.tool-design-2 .tool-card:nth-child(10) .tool-card-image { 
  background: linear-gradient(135deg, #c0392b 0%, #a93226 100%); 
}

.tool-design-2 .tool-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tool-design-2 .tool-card-content {
  flex: 1;
  min-width: 0;
}

.tool-design-2 .tool-card-title {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-heading);
  margin: 0;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tool-design-2 .tool-card:hover .tool-card-title {
  color: var(--color-primary);
}

/* ==========================================================================
   DESIGN 3: Checkmark List (Image 3 Style)
   Blue header, checkmark icons, full-width list items
   ========================================================================== */

.tool-design-3 .tool-card {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  padding: 15px;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-gray-200);
  transition: all var(--transition-fast);
  position: relative;
  border: 2px solid #b3aaaa;
}
.tool-design-3 .tools-grid{gap:10px;padding: 20px 12px;}

.tool-design-3 .tool-card:hover {
  background-color: var(--color-gray-50);
  padding-left: calc(var(--spacing-2xl) + 8px);
}

.tool-design-3 .tool-card-link {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.tool-design-3 .tool-card-image {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background-color: var(--color-gray-700);
  color: var(--color-white);
}

.tool-design-3 .tool-card-image svg {
  width: 28px;
  height: 28px;
  stroke-width: 3;
}

.tool-design-3 .tool-card-content {
  flex: 1;
  min-width: 0;
}

.tool-design-3 .tool-card-title {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text-heading);
  margin: 0;
  line-height: 1.4;
}

.tool-design-3 .tool-card:hover .tool-card-title {
  color: var(--color-primary);
}

/* Section Header for Design 3 */
.tool-design-3 .section-header {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: var(--color-white);
  padding: 15px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin: 0;
  max-width: 100%;
}

.tool-design-3 .section-title {
  color: var(--color-white);
  margin-bottom: var(--spacing-sm);
  font-size: 1.875rem;
}

.tool-design-3 .section-description {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.tool-design-3 .homepage-section {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
/* ==========================================================================
   SIDEBAR WIDGET STYLES - EXACT MATCH TO IMAGES
   ========================================================================== */

/* Base Widget Styles */
.widget {
  margin-bottom: var(--spacing-xl);
}

/* ==========================================================================
   WIDGET STYLE 1: Simple List with Bullets (Image 1)
   Light background, bullet points, clean design
   ========================================================================== */

.widget-style-1 .widget {
  background-color: var(--color-white);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gray-200);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.widget-style-1 .widget-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 2px solid var(--color-gray-100);
}

.widget-style-1 .tool-categories-list,
.widget-style-1 .popular-tools-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget-style-1 .category-item,
.widget-style-1 .popular-tool-item {
  margin-bottom: var(--spacing-sm);
  position: relative;
  padding-left: 20px;
}

.widget-style-1 .category-item::before {
  content: "●";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-size: 0.75rem;
  top: 4px;
}

.widget-style-1 .category-item a,
.widget-style-1 .popular-tool-link {
  display: flex;
  align-items: center;
  padding: var(--spacing-xs) 0;
  color: var(--text-body);
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
  text-decoration: none;
}

.widget-style-1 .category-item a:hover,
.widget-style-1 .popular-tool-link:hover {
  color: var(--color-primary);
}

.widget-style-1 .category-count {
  margin-left: auto;
  font-size: 0.875rem;
  color: var(--text-meta);
}

/* ==========================================================================
   WIDGET STYLE 2: Colored Icon Badges with Dark Header (Image 2)
   Dark gray header, colorful square icons
   ========================================================================== */

.widget-style-2 .widget {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.widget-style-2 .widget-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-white);
  margin: 0;
  padding: var(--spacing-lg) var(--spacing-xl);
  background-color: var(--color-gray-800);
  text-align: center;
}

.widget-style-2 .tool-categories-list,
.widget-style-2 .popular-tools-list {
  list-style: none;
  padding: var(--spacing-lg);
  margin: 0;
}

.widget-style-2 .category-item,
.widget-style-2 .popular-tool-item {
  margin-bottom: var(--spacing-sm);
}

.widget-style-2 .category-item a,
.widget-style-2 .popular-tool-link {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-sm) var(--spacing-md);
  color: var(--text-heading);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  text-decoration: none;
  border-radius: var(--radius-md);
}

.widget-style-2 .category-item a:hover,
.widget-style-2 .popular-tool-link:hover {
  background-color: var(--color-gray-50);
  transform: translateX(4px);
}

.widget-style-2 .category-icon,
.widget-style-2 .popular-tool-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--color-white);
  font-size: 1.25rem;
  font-weight: 700;
}

/* Colorful Icon Backgrounds */
.widget-style-2 .category-item:nth-child(1) .category-icon,
.widget-style-2 .popular-tool-item:nth-child(1) .popular-tool-icon { 
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); 
}
.widget-style-2 .category-item:nth-child(2) .category-icon,
.widget-style-2 .popular-tool-item:nth-child(2) .popular-tool-icon { 
  background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%); 
}
.widget-style-2 .category-item:nth-child(3) .category-icon,
.widget-style-2 .popular-tool-item:nth-child(3) .popular-tool-icon { 
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%); 
}
.widget-style-2 .category-item:nth-child(4) .category-icon,
.widget-style-2 .popular-tool-item:nth-child(4) .popular-tool-icon { 
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%); 
}
.widget-style-2 .category-item:nth-child(5) .category-icon,
.widget-style-2 .popular-tool-item:nth-child(5) .popular-tool-icon { 
  background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%); 
}
.widget-style-2 .category-item:nth-child(6) .category-icon,
.widget-style-2 .popular-tool-item:nth-child(6) .popular-tool-icon { 
  background: linear-gradient(135deg, #e67e22 0%, #d35400 100%); 
}
.widget-style-2 .category-item:nth-child(7) .category-icon,
.widget-style-2 .popular-tool-item:nth-child(7) .popular-tool-icon { 
  background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%); 
}
.widget-style-2 .category-item:nth-child(8) .category-icon,
.widget-style-2 .popular-tool-item:nth-child(8) .popular-tool-icon { 
  background: linear-gradient(135deg, #bdc3c7 0%, #95a5a6 100%); 
}
.widget-style-2 .category-item:nth-child(9) .category-icon,
.widget-style-2 .popular-tool-item:nth-child(9) .popular-tool-icon { 
  background: linear-gradient(135deg, #16a085 0%, #1abc9c 100%); 
}
.widget-style-2 .category-item:nth-child(10) .category-icon,
.widget-style-2 .popular-tool-item:nth-child(10) .popular-tool-icon { 
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%); 
}

.widget-style-2 .category-icon img,
.widget-style-2 .popular-tool-icon img {
  width: 20px;
  height: 20px;
}

.widget-style-2 .category-count {
  margin-left: auto;
  font-size: 0.8125rem;
  color: var(--text-meta);
}

/* ==========================================================================
   WIDGET STYLE 3: Checkmarks with Blue Header (Image 3)
   Blue gradient header, checkmark icons, clean list
   ========================================================================== */

.widget-style-3 .widget {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--color-gray-200);
}

.widget-style-3 .widget-title {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--color-white);
  margin: 0;
  padding: var(--spacing-xl) var(--spacing-2xl);
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  text-align: center;
}

.widget-style-3 .tool-categories-list,
.widget-style-3 .popular-tools-list {
  list-style: none;
  padding: var(--spacing-md) 0;
  margin: 0;
}

.widget-style-3 .category-item,
.widget-style-3 .popular-tool-item {
  margin-bottom: 0;
  border-bottom: 1px solid var(--color-gray-100);
}

.widget-style-3 .category-item:last-child,
.widget-style-3 .popular-tool-item:last-child {
  border-bottom: none;
}

.widget-style-3 .category-item a,
.widget-style-3 .popular-tool-link {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  padding: var(--spacing-lg) var(--spacing-xl);
  color: var(--text-heading);
  font-size: 1rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.widget-style-3 .category-item a:hover,
.widget-style-3 .popular-tool-link:hover {
  background-color: var(--color-gray-50);
  padding-left: calc(var(--spacing-xl) + 8px);
}

.widget-style-3 .category-icon,
.widget-style-3 .popular-tool-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background-color: var(--color-gray-700);
  color: var(--color-white);
}

.widget-style-3 .category-icon svg,
.widget-style-3 .popular-tool-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 3;
}

.widget-style-3 .category-count {
  margin-left: auto;
  font-size: 0.875rem;
  color: var(--text-meta);
  font-weight: 400;
}

/* Widget Default Icon (when no image) */
.widget .default-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gray-200);
  color: var(--color-gray-400);
}