@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');
/* If using @font-face, add font-display: swap; to each rule. */

/* AI Tools Directory Frontend Styles */

/* Prevent horizontal scrolling globally */
html, body {
  overflow-x: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

/* Global Styles */
.aitd-container {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: transparent;
  color: #111827;
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

.aitd-full-width {
  width: 100%;
  max-width: none;
}

/* AI Tools Directory - Main Archive Container */
.aitd-archive-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Main Archive Content */
.aitd-archive-content {
  padding: 2rem 0;
}

/* Hero Section */
.aitd-hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2.5rem 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.aitd-hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  animation: float 20s ease-in-out infinite;
}

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

.aitd-hero-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  padding: 0 1rem;
}

.aitd-hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.2;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  animation: titleGlow 3s ease-in-out infinite alternate;
  position: relative;
}

.aitd-hero-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  border-radius: 2px;
  animation: titleUnderline 2s ease-in-out infinite;
}

@keyframes titleGlow {
  0% { text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); }
  100% { text-shadow: 0 4px 20px rgba(255, 255, 255, 0.4), 0 4px 8px rgba(0, 0, 0, 0.3); }
}

@keyframes titleUnderline {
  0%, 100% { opacity: 0.7; transform: translateX(-50%) scaleX(1); }
  50% { opacity: 1; transform: translateX(-50%) scaleX(1.2); }
}

.aitd-hero-subtitle {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
  line-height: 1.6;
}

.aitd-hero-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  animation: statsSlideIn 1s ease-out 0.5s both;
}

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

.aitd-stat {
  text-align: center;
  position: relative;
  padding: 0.75rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  animation: statPulse 4s ease-in-out infinite;
}

.aitd-stat:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

@keyframes statPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.aitd-stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  background: linear-gradient(135deg, #fff, #f0f0f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  animation: numberGlow 2s ease-in-out infinite alternate;
}

@keyframes numberGlow {
  0% { filter: brightness(1); }
  100% { filter: brightness(1.2) drop-shadow(0 0 10px rgba(255, 255, 255, 0.3)); }
}

/* Special styling for the date stat */
.aitd-stat:last-child {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  animation: dateStatPulse 3s ease-in-out infinite;
  position: relative;
}

.aitd-stat:last-child .aitd-stat-number {
  background: linear-gradient(135deg, #fff, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: dateNumberGlow 1.5s ease-in-out infinite alternate;
}

/* Date arrow styling */
.aitd-date-arrow {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #92400e;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  animation: arrowFloat 4s ease-in-out infinite;
  transform-origin: center;
}

@keyframes arrowFloat {
  0%, 100% { 
    transform: translateY(0px) scale(1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }
  50% { 
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  }
}

@keyframes dateStatPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(255, 215, 0, 0); }
  50% { transform: scale(1.08); box-shadow: 0 0 20px rgba(255, 215, 0, 0.3); }
}

@keyframes dateNumberGlow {
  0% { filter: brightness(1) drop-shadow(0 0 5px rgba(255, 215, 0, 0.3)); }
  100% { filter: brightness(1.3) drop-shadow(0 0 15px rgba(255, 215, 0, 0.6)); }
}

.aitd-stat-label {
  font-size: 0.875rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Search Bar - Modern Neon Light Design */
.aitd-search-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto 2.5rem;
  position: relative;
  padding: 0 2rem;
  background: white !important;
  background-color: white !important;
  border-radius: 20px;
  padding: 2px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.aitd-search-input {
  width: 100%;
  padding: 1.5rem 4rem 1.5rem 1.75rem;
  font-size: 1.125rem;
  border: none;
  border-radius: 18px;
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.3),
    0 4px 8px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  font-weight: 500;
  color: #ffffff !important;
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 2;
}

.aitd-search-input::placeholder {
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3, #54a0ff);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
  font-weight: 400;
  opacity: 0.9;
}

.aitd-search-input:hover {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.4),
    0 8px 16px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}

.aitd-search-input:focus {
  outline: none;
  background: linear-gradient(135deg, #16213e 0%, #0f3460 50%, #533483 100%);
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.5),
    0 12px 24px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.aitd-search-icon {
  position: absolute;
  right: 3rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  color: #4ecdc4;
  opacity: 0.9;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 8px rgba(78, 205, 196, 0.6));
  z-index: 3;
  text-shadow: 0 0 10px rgba(78, 205, 196, 0.8);
}

.aitd-search-input:focus + .aitd-search-icon {
  color: #ff6b6b;
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
  filter: drop-shadow(0 0 12px rgba(255, 107, 107, 0.8));
  text-shadow: 0 0 15px rgba(255, 107, 107, 1);
}

.aitd-search-help {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  cursor: help;
  z-index: 10;
}

.aitd-help-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #533483 0%, #0f3460 100%);
  color: #4ecdc4;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 
    0 0 10px rgba(78, 205, 196, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(78, 205, 196, 0.3);
  text-shadow: 0 0 5px rgba(78, 205, 196, 0.8);
}

.aitd-help-icon:hover {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff9ff3 100%);
  color: #ffffff;
  transform: scale(1.1);
  box-shadow: 
    0 0 15px rgba(255, 107, 107, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 107, 107, 0.5);
  text-shadow: 0 0 8px rgba(255, 255, 255, 1);
}

/* Neon line */
.aitd-neon-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2.6px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    #8b5cf6 15%, 
    #6366f1 30%, 
    #ec4899 45%, 
    #06b6d4 60%, 
    #a855f7 75%, 
    transparent 100%);
  z-index: 1;
  border-radius: 0 0 20px 20px;
  box-shadow: 
    0 0 13px rgba(139, 92, 246, 0.6),
    0 0 26px rgba(99, 102, 241, 0.4),
    0 0 39px rgba(236, 72, 153, 0.3),
    0 0 52px rgba(6, 182, 212, 0.2);
  margin-bottom: 0;
}



@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Search suggestions enhanced styling */
.aitd-search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(15, 15, 35, 0.95) 0%, rgba(26, 26, 46, 0.95) 100%);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(78, 205, 196, 0.3);
  border-top: none;
  border-radius: 0 0 18px 18px;
  box-shadow: 
    0 10px 25px -5px rgba(0, 0, 0, 0.3),
    0 8px 10px -6px rgba(0, 0, 0, 0.2),
    0 0 20px rgba(78, 205, 196, 0.2);
  z-index: 1000;
  max-height: 300px;
  overflow-y: auto;
  display: none;
  margin-top: 4px;
}

.aitd-suggestions-list {
  padding: 0.75rem 0;
}

.aitd-suggestion-item {
  display: flex;
  align-items: center;
  padding: 0.875rem 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(78, 205, 196, 0.2);
  position: relative;
  color: #ffffff;
}

.aitd-suggestion-item:last-child {
  border-bottom: none;
}

.aitd-suggestion-item:hover {
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.1) 0%, rgba(255, 107, 107, 0.1) 100%);
  transform: translateX(4px);
  box-shadow: inset 0 0 20px rgba(78, 205, 196, 0.1);
}

.aitd-suggestion-item:active {
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.2) 0%, rgba(255, 107, 107, 0.2) 100%);
  transform: translateX(2px);
  box-shadow: inset 0 0 30px rgba(78, 205, 196, 0.2);
}

.aitd-suggestion-icon {
  font-size: 1.1rem;
  margin-right: 1rem;
  width: 24px;
  text-align: center;
  opacity: 0.9;
  transition: all 0.2s ease;
  color: #4ecdc4;
  text-shadow: 0 0 8px rgba(78, 205, 196, 0.6);
}

.aitd-suggestion-item:hover .aitd-suggestion-icon {
  opacity: 1;
  transform: scale(1.1);
  color: #ff6b6b;
  text-shadow: 0 0 12px rgba(255, 107, 107, 0.8);
}

/* Search bar loading state */
.aitd-search-input.loading {
  background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
  position: relative;
  overflow: hidden;
}

.aitd-search-input.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(78, 205, 196, 0.3), transparent);
  animation: loadingShimmer 1.5s infinite;
}

@keyframes loadingShimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Search bar focus ring animation */
.aitd-search-input:focus {
  animation: focusPulse 0.6s ease-out;
}

@keyframes focusPulse {
  0% { transform: translateY(-2px) scale(1); }
  50% { transform: translateY(-2px) scale(1.01); }
  100% { transform: translateY(-2px) scale(1); }
}

/* Enhanced search container with solid white background */
.aitd-search-container {
  position: relative;
  background: white !important;
  background-color: white !important;
  padding: 1rem;
  border-radius: 20px;
}

/* Search bar floating effect */
.aitd-search-input {
  position: relative;
  z-index: 2;
}

/* Search suggestions enhanced scrollbar */
.aitd-search-suggestions::-webkit-scrollbar {
  width: 6px;
}

.aitd-search-suggestions::-webkit-scrollbar-track {
  background: rgba(229, 231, 235, 0.3);
  border-radius: 3px;
}

.aitd-search-suggestions::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 3px;
}

.aitd-search-suggestions::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
}



/* Filter Controls */
.aitd-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0 1rem 2rem;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
}

.aitd-filters::before {
  content: '';
  position: absolute;
  top: -2.6px;
  left: -2.6px;
  right: -2.6px;
  bottom: -2.6px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    #8b5cf6 15%, 
    #6366f1 30%, 
    #ec4899 45%, 
    #06b6d4 60%, 
    #a855f7 75%, 
    transparent 100%);
  border-radius: 14px;
  z-index: -1;
  box-shadow: 
    0 0 15px rgba(139, 92, 246, 0.3),
    0 0 25px rgba(99, 102, 241, 0.2),
    0 0 35px rgba(236, 72, 153, 0.1),
    0 0 45px rgba(6, 182, 212, 0.1);
}

.aitd-filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 200px;
}

.aitd-filter-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.aitd-filter-select {
  padding: 0.5rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background: white;
  font-size: 0.875rem;
  min-width: 150px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
  color: #374151;
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

.aitd-filter-select:hover {
  border-color: #8b5cf6;
  box-shadow: 0 2px 4px rgba(139, 92, 246, 0.1);
}

.aitd-filter-select:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.aitd-filter-select option {
  background: white;
  color: #374151;
  font-weight: 500;
  padding: 0.5rem;
}

.aitd-filter-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.aitd-filter-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background: white;
  color: #000000;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.aitd-filter-btn:hover,
.aitd-filter-btn.active {
  background: #4f46e5;
  color: white;
  border-color: #4f46e5;
}

/* Special styling for deals filter button */
.aitd-filter-btn[data-filter="deals"] {
  background: white;
  color: #000000;
  border-color: #e5e7eb;
  font-weight: 700;
}

.aitd-filter-btn[data-filter="deals"]:hover,
.aitd-filter-btn[data-filter="deals"].active {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: white;
  border-color: #8b5cf6;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(139, 92, 246, 0.3);
}

/* Featured Tools Section - Reduced size by additional 15% */
.aitd-featured-section {
  margin: 0 1rem 1.5rem;
  background: white;
  border-radius: 12px;
  padding: 0.3rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  height: auto;
  min-height: 240px;
  position: relative;
}

.aitd-featured-section::before {
  content: '';
  position: absolute;
  top: -2.6px;
  left: -2.6px;
  right: -2.6px;
  bottom: -2.6px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    #8b5cf6 15%, 
    #6366f1 30%, 
    #ec4899 45%, 
    #06b6d4 60%, 
    #a855f7 75%, 
    transparent 100%);
  border-radius: 14px;
  z-index: -1;
  box-shadow: 
    0 0 15px rgba(139, 92, 246, 0.3),
    0 0 25px rgba(99, 102, 241, 0.2),
    0 0 35px rgba(236, 72, 153, 0.1),
    0 0 45px rgba(6, 182, 212, 0.1);
}

.aitd-featured-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.aitd-featured-title-section {
  text-align: center;
  flex: 1;
}

.aitd-featured-controls {
  display: flex;
  align-items: center;
}

.aitd-featured-title {
  font-size: 1.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 30%, #f093fb 60%, #f5576c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
}

.aitd-featured-subtitle {
  color: #6b7280;
  font-size: 0.875rem;
}

/* Featured Carousel - Manual Navigation */
.aitd-featured-carousel {
  position: relative;
  overflow: hidden;
  margin-bottom: 0.75rem;
  min-height: 200px;
  height: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.aitd-featured-carousel::-webkit-scrollbar {
  display: none;
}

.aitd-carousel-container {
  overflow: hidden;
  border-radius: 8px;
  height: 100%;
  min-height: 200px;
  position: relative;
}

.aitd-carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  align-items: stretch;
}

.aitd-carousel-slide {
  flex: 0 0 auto;
  width: 280px;
  margin-right: 1rem;
}

/* Carousel Navigation Buttons - Enhanced Visibility */
.aitd-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #4f46e5;
  border: 3px solid #ffffff;
  color: #ffffff;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  font-size: 1.5rem;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4), 0 2px 4px rgba(0, 0, 0, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.aitd-carousel-nav:hover {
  background: #6366f1;
  color: white;
  border-color: #ffffff;
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.5), 0 4px 8px rgba(0, 0, 0, 0.3);
}

.aitd-carousel-nav:active {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.4);
}

.aitd-carousel-nav:focus {
  outline: none;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4), 0 0 0 3px rgba(79, 70, 229, 0.3);
}

.aitd-carousel-prev {
  left: 10px;
}

.aitd-carousel-next {
  right: 10px;
}



.aitd-carousel-slide {
  flex: 0 0 240px;
  padding: 0 0.5rem;
  box-sizing: border-box;
}

/* Featured Tool Card - Reduced size by additional 15% */
.aitd-featured-card {
  background: white;
  border-top: 1px solid #f59e0b;
  border-right: 1px solid #f59e0b;
  border-bottom: 6px solid #f59e0b;
  border-left: 6px solid #f59e0b;
  border-radius: 12px;
  padding: 0.75rem;
  position: relative;
  overflow: visible;
  transition: all 0.3s ease;
  min-height: 180px;
  height: auto;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.aitd-featured-card:hover {
  transform: translateY(-2px);
  border-top-color: #d97706;
  border-right-color: #d97706;
  border-bottom-color: #d97706;
  border-left-color: #d97706;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.aitd-featured-header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.625rem;
  position: relative;
  z-index: 1;
}

.aitd-featured-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.aitd-featured-logo.aitd-logo-placeholder {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: bold;
}

.aitd-featured-info {
  flex: 1;
}

.aitd-featured-title {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.aitd-featured-link {
  color: #111827;
  text-decoration: none;
  transition: color 0.2s ease;
}

.aitd-featured-link:hover {
  color: #4f46e5;
  text-decoration: none;
}

.aitd-featured-category {
  background: #f3f4f6;
  color: #374151;
  padding: 0.125rem 0.5rem;
  border-radius: 12px;
  font-size: 0.625rem;
  font-weight: 500;
  display: inline-block;
  margin-bottom: 0.25rem;
}

.aitd-featured-price {
  font-size: 0.625rem;
  color: #6b7280;
  font-weight: 500;
}

.aitd-featured-description {
  color: #6b7280;
  font-size: 0.625rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
  height: 2.8rem;
  min-height: 2.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  word-wrap: break-word;
  display: flex;
  align-items: flex-start;
}

.aitd-featured-rating {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 0.875rem;
  position: relative;
  z-index: 1;
}

.aitd-featured-rating .aitd-rating-star {
  color: #fbbf24;
  font-size: 0.75rem;
}

.aitd-featured-rating-text {
  font-size: 0.625rem;
  color: #6b7280;
}

.aitd-featured-actions {
  display: flex;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 0.5rem;
}

.aitd-btn-featured {
  background: #4f46e5;
  color: white;
  padding: 0.5rem 0.875rem;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  flex: 1;
  text-align: center;
  font-size: 0.625rem;
}

.aitd-btn-featured:hover {
  background: #4338ca;
  text-decoration: none;
  color: white;
}

.aitd-btn-deal-featured {
  background: #4f46e5;
  color: white;
  padding: 0.5rem 0.625rem;
  border-radius: 6px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.625rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.aitd-btn-deal-featured:hover {
  background: #4338ca;
}

.aitd-discount-icon {
  font-size: 0.75rem;
  filter: brightness(0) invert(1);
}

/* View Toggle Button */
.aitd-view-toggle-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.aitd-view-toggle-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.aitd-view-toggle-btn:active {
  transform: translateY(0);
}

/* Featured Grid Layout */
.aitd-featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.aitd-featured-grid-item {
  width: 100%;
}

.aitd-featured-grid .aitd-featured-card {
  height: auto;
  min-height: 280px;
}

.aitd-featured-grid .aitd-featured-description {
  height: 3.5rem;
  min-height: 3.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  word-wrap: break-word;
  display: flex;
  align-items: flex-start;
}

/* Sort Controls */
.aitd-sort-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 1rem 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.aitd-sort-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.aitd-sort-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: white;
  color: #000000;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.aitd-sort-btn:hover,
.aitd-sort-btn.active {
  background: #4f46e5;
  color: white;
  border-color: #4f46e5;
}

/* Tool Grid - Changed to rows layout */
.aitd-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
  margin: 0 auto;
  margin-bottom: 48px;
  /* Performance optimizations */
  content-visibility: auto;
  contain-intrinsic-size: 0 500px;
}

@media (max-width: 1024px) {
  .aitd-tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .aitd-tools-grid {
    grid-template-columns: 1fr;
  }
}

/* Main tools grid responsive heights */
.aitd-tools-grid .aitd-tool-card {
  height: auto;
  /* Performance optimizations */
  content-visibility: auto;
  contain-intrinsic-size: 0 320px;
  will-change: transform;
}

/* Tool Card */
.aitd-tool-card {
  background: white;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  border: none;
  display: flex;
  flex-direction: column;
  height: auto;
  overflow: hidden;
  /* Performance optimizations */
  transform: translateZ(0);
  backface-visibility: hidden;
}

.aitd-tool-card.featured {
  border-top: 1px solid #f59e0b !important;
  border-right: 1px solid #f59e0b !important;
  border-bottom: 6px solid #f59e0b !important;
  border-left: 6px solid #f59e0b !important;
}

.aitd-tool-card.verified {
  border-top: 1px solid #3b82f6 !important;
  border-right: 1px solid #3b82f6 !important;
  border-bottom: 6px solid #3b82f6 !important;
  border-left: 6px solid #3b82f6 !important;
}

/* Regular tool cards (not featured or verified) */
.aitd-tool-card:not(.featured):not(.verified) {
  border-left: 5px solid #000000;
  border-bottom: 5px solid #000000;
  border-top: none;
  border-right: none;
}

/* Tool Card Header */
.aitd-tool-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
  flex-shrink: 0;
}

.aitd-tool-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.aitd-tool-logo-placeholder {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1rem;
}

.aitd-tool-title-section {
  flex: 1;
}

.aitd-tool-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 0.25rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.aitd-tool-title-link {
  color: #111827;
  text-decoration: none;
  transition: color 0.2s ease;
}

.aitd-tool-title-link:hover {
  color: #4f46e5;
  text-decoration: none;
}

.aitd-check-mark {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  color: white;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.aitd-check-mark.featured {
  background: #f59e0b;
  color: #ffffff;
}

.aitd-check-mark.verified {
  background: #3b82f6;
}

.aitd-tool-price {
  font-size: 0.875rem;
  color: #10b981;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.aitd-price-amount {
  color: #10b981;
  font-weight: 600;
  font-size: 0.7rem;
}

.aitd-tool-price .aitd-pricing-label {
  background: #ecfdf5;
  color: #047857;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1;
}

/* Rating Display in Title Section */
.aitd-tool-rating-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.aitd-tool-rating-title .aitd-rating {
  display: flex;
  gap: 0.125rem;
}

.aitd-tool-rating-title .aitd-rating-star {
  color: #d1d5db;
  font-size: 0.875rem;
  transition: color 0.2s ease;
  cursor: pointer;
}

.aitd-tool-rating-title .aitd-rating-star.filled {
  color: #fbbf24;
}

.aitd-tool-rating-title .aitd-rating.interactive .aitd-rating-star:hover {
  color: #fbbf24;
}

.aitd-rating-text-title {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
}

/* Rating feedback states */
.aitd-tool-rating-title.rating-loading {
  opacity: 0.7;
  pointer-events: none;
}

.aitd-tool-rating-title.rating-success {
  animation: ratingSuccess 0.5s ease-in-out;
}

.aitd-tool-rating-title.rating-error {
  animation: ratingError 0.5s ease-in-out;
}

@keyframes ratingSuccess {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes ratingError {
  0%, 100% { transform: scale(1); }
  25%, 75% { transform: scale(0.95); }
}

/* Tool Category */
.aitd-tool-category {
  margin-bottom: 1rem;
}

/* Tool Category Row */
.aitd-tool-category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.4rem;
  align-items: center;
}

/* Tool Feature Row */
.aitd-tool-feature-row {
  margin-bottom: 0.4rem;
}

.aitd-category-label {
  background: #f3f4f6;
  color: #374151;
  padding: 0.25rem 0.75rem;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
}

.aitd-clickable-label {
  cursor: pointer;
  transition: all 0.2s ease;
}

.aitd-clickable-label:hover {
  background: #4f46e5;
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
}

.aitd-clickable-label:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(79, 70, 229, 0.2);
}

/* Tool Meta Row - Category, Tags, and Pricing */
.aitd-tool-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  align-items: center;
  min-height: 2rem; /* Ensure consistent height */
}

.aitd-tool-meta-row .aitd-tool-category {
  margin-bottom: 0;
}

.aitd-tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}

.aitd-tool-pricing-meta {
  display: flex;
  align-items: center;
}

/* Base styles for all labels in meta row */
.aitd-category-label,
.aitd-tag-label,
.aitd-pricing-meta-label {
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
  cursor: pointer;
}

/* Category label styles */
.aitd-category-label {
  background: #fef3c7;
  color: #92400e;
}

.aitd-category-label:hover {
  background: #f59e0b;
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(245, 158, 11, 0.2);
}

.aitd-category-label:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(245, 158, 11, 0.2);
}

/* Tag label styles */
.aitd-tag-label {
  background: #dbeafe;
  color: #1e40af;
  border-top: 1px solid rgba(30, 64, 175, 0.2);
  margin-top: 0.3rem;
}

.aitd-tag-label:hover {
  background: #1e40af;
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(30, 64, 175, 0.2);
}

.aitd-tag-label:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(30, 64, 175, 0.2);
}

/* Pricing meta label styles */
.aitd-pricing-meta-label {
  background: #dcfce7;
  color: #166534;
}

.aitd-pricing-meta-label:hover {
  background: #16a34a;
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(22, 163, 74, 0.2);
}

.aitd-pricing-meta-label:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(22, 163, 74, 0.2);
}

/* Placeholder label styles (non-clickable) */
.aitd-placeholder-label {
  background: #f3f4f6 !important;
  color: #9ca3af !important;
  cursor: default !important;
  opacity: 0.7;
}

.aitd-placeholder-label:hover {
  background: #f3f4f6 !important;
  color: #9ca3af !important;
  transform: none !important;
  box-shadow: none !important;
}

.aitd-tag-more {
  background: #e5e7eb;
  color: #6b7280;
  padding: 0.2rem 0.5rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1;
}

/* Responsive adjustments for meta row */
@media (max-width: 640px) {
  .aitd-tool-meta-row {
    flex-direction: column;
    align-items: flex-start;
    min-height: 3rem; /* Increase height for mobile stacking */
  }
}

/* Featured Card Meta Row */
.aitd-featured-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  align-items: center;
}

.aitd-featured-meta-row .aitd-tool-category {
  margin-bottom: 0;
}

/* Featured card meta row - pricing moved to title section */
@media (max-width: 640px) {
  .aitd-featured-meta-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Tool Description - Reduced font size */
.aitd-tool-description {
  color: #6b7280;
  line-height: 1.6;
  margin: 0.5rem 0;
  font-size: 0.875rem;
  white-space: normal;
  word-break: break-word;
}

/* Rating System */
.aitd-tool-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.aitd-rating {
  display: flex;
  gap: 0.125rem;
}

.aitd-rating-star {
  color: #d1d5db;
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.aitd-rating-star.filled {
  color: #fbbf24;
}

.aitd-rating.interactive .aitd-rating-star:hover {
  color: #fbbf24;
}

.aitd-rating-text {
  font-size: 0.875rem;
  color: #6b7280;
}

/* Tool Footer */
.aitd-tool-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  flex-shrink: 0;
  padding-top: 0.2rem;
}

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

/* Buttons */
.aitd-btn {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.aitd-btn-primary {
  background: #4f46e5;
  color: white;
}

.aitd-btn-primary:hover {
  background: #4338ca;
  text-decoration: none;
  color: white;
}

.aitd-btn-deal {
  background: #4f46e5;
  color: white;
}

.aitd-btn-deal:hover {
  background: #4338ca;
}

/* Button Color Scheme Logic - High Specificity with !important */
/* Featured Tool Buttons - Orange Theme */
.aitd-tool-card.featured .aitd-btn-primary,
.aitd-tool-card.featured .aitd-btn-deal {
  background: #f59e0b !important;
  color: white !important;
}

.aitd-tool-card.featured .aitd-btn-primary:hover,
.aitd-tool-card.featured .aitd-btn-deal:hover {
  background: #d97706 !important;
  color: white !important;
}

/* Verified Tool Buttons - Blue Theme */
.aitd-tool-card.verified .aitd-btn-primary,
.aitd-tool-card.verified .aitd-btn-deal {
  background: #3b82f6 !important;
  color: white !important;
}

.aitd-tool-card.verified .aitd-btn-primary:hover,
.aitd-tool-card.verified .aitd-btn-deal:hover {
  background: #2563eb !important;
  color: white !important;
}

/* Standard Tool Buttons - Black Theme */
.aitd-tool-card:not(.featured):not(.verified) .aitd-btn-primary,
.aitd-tool-card:not(.featured):not(.verified) .aitd-btn-deal {
  background: #000000 !important;
  color: white !important;
}

.aitd-tool-card:not(.featured):not(.verified) .aitd-btn-primary:hover,
.aitd-tool-card:not(.featured):not(.verified) .aitd-btn-deal:hover {
  background: #374151 !important;
  color: white !important;
}

/* Apply color scheme to all templates and contexts with !important */
/* Featured Tool Buttons - Orange Theme (All contexts) */
.aitd-tool-card.featured .aitd-btn-primary,
.aitd-tool-card.featured .aitd-btn-deal,
.aitd-featured-card .aitd-btn-primary,
.aitd-featured-card .aitd-btn-deal,
.aitd-related-tools .aitd-tool-card.featured .aitd-btn-primary,
.aitd-related-tools .aitd-tool-card.featured .aitd-btn-deal,
.aitd-category-archive .aitd-tool-card.featured .aitd-btn-primary,
.aitd-category-archive .aitd-tool-card.featured .aitd-btn-deal,
.aitd-feature-archive .aitd-tool-card.featured .aitd-btn-primary,
.aitd-feature-archive .aitd-tool-card.featured .aitd-btn-deal,
.aitd-platform-archive .aitd-tool-card.featured .aitd-btn-primary,
.aitd-platform-archive .aitd-tool-card.featured .aitd-btn-deal {
  background: #f59e0b !important;
  color: white !important;
}

.aitd-tool-card.featured .aitd-btn-primary:hover,
.aitd-tool-card.featured .aitd-btn-deal:hover,
.aitd-featured-card .aitd-btn-primary:hover,
.aitd-featured-card .aitd-btn-deal:hover,
.aitd-related-tools .aitd-tool-card.featured .aitd-btn-primary:hover,
.aitd-related-tools .aitd-tool-card.featured .aitd-btn-deal:hover,
.aitd-category-archive .aitd-tool-card.featured .aitd-btn-primary:hover,
.aitd-category-archive .aitd-tool-card.featured .aitd-btn-deal:hover,
.aitd-feature-archive .aitd-tool-card.featured .aitd-btn-primary:hover,
.aitd-feature-archive .aitd-tool-card.featured .aitd-btn-deal:hover,
.aitd-platform-archive .aitd-tool-card.featured .aitd-btn-primary:hover,
.aitd-platform-archive .aitd-tool-card.featured .aitd-btn-deal:hover {
  background: #d97706 !important;
  color: white !important;
}

/* Verified Tool Buttons - Blue Theme (All contexts) */
.aitd-tool-card.verified .aitd-btn-primary,
.aitd-tool-card.verified .aitd-btn-deal,
.aitd-related-tools .aitd-tool-card.verified .aitd-btn-primary,
.aitd-related-tools .aitd-tool-card.verified .aitd-btn-deal,
.aitd-category-archive .aitd-tool-card.verified .aitd-btn-primary,
.aitd-category-archive .aitd-tool-card.verified .aitd-btn-deal,
.aitd-feature-archive .aitd-tool-card.verified .aitd-btn-primary,
.aitd-feature-archive .aitd-tool-card.verified .aitd-btn-deal,
.aitd-platform-archive .aitd-tool-card.verified .aitd-btn-primary,
.aitd-platform-archive .aitd-tool-card.verified .aitd-btn-deal {
  background: #3b82f6 !important;
  color: white !important;
}

.aitd-tool-card.verified .aitd-btn-primary:hover,
.aitd-tool-card.verified .aitd-btn-deal:hover,
.aitd-related-tools .aitd-tool-card.verified .aitd-btn-primary:hover,
.aitd-related-tools .aitd-tool-card.verified .aitd-btn-deal:hover,
.aitd-category-archive .aitd-tool-card.verified .aitd-btn-primary:hover,
.aitd-category-archive .aitd-tool-card.verified .aitd-btn-deal:hover,
.aitd-feature-archive .aitd-tool-card.verified .aitd-btn-primary:hover,
.aitd-feature-archive .aitd-tool-card.verified .aitd-btn-deal:hover,
.aitd-platform-archive .aitd-tool-card.verified .aitd-btn-primary:hover,
.aitd-platform-archive .aitd-tool-card.verified .aitd-btn-deal:hover {
  background: #2563eb !important;
  color: white !important;
}

/* Standard Tool Buttons - Black Theme (All contexts) */
.aitd-tool-card:not(.featured):not(.verified) .aitd-btn-primary,
.aitd-tool-card:not(.featured):not(.verified) .aitd-btn-deal,
.aitd-related-tools .aitd-tool-card:not(.featured):not(.verified) .aitd-btn-primary,
.aitd-related-tools .aitd-tool-card:not(.featured):not(.verified) .aitd-btn-deal,
.aitd-category-archive .aitd-tool-card:not(.featured):not(.verified) .aitd-btn-primary,
.aitd-category-archive .aitd-tool-card:not(.featured):not(.verified) .aitd-btn-deal,
.aitd-feature-archive .aitd-tool-card:not(.featured):not(.verified) .aitd-btn-primary,
.aitd-feature-archive .aitd-tool-card:not(.featured):not(.verified) .aitd-btn-deal,
.aitd-platform-archive .aitd-tool-card:not(.featured):not(.verified) .aitd-btn-primary,
.aitd-platform-archive .aitd-tool-card:not(.featured):not(.verified) .aitd-btn-deal {
  background: #000000 !important;
  color: white !important;
}

.aitd-tool-card:not(.featured):not(.verified) .aitd-btn-primary:hover,
.aitd-tool-card:not(.featured):not(.verified) .aitd-btn-deal:hover,
.aitd-related-tools .aitd-tool-card:not(.featured):not(.verified) .aitd-btn-primary:hover,
.aitd-related-tools .aitd-tool-card:not(.featured):not(.verified) .aitd-btn-deal:hover,
.aitd-category-archive .aitd-tool-card:not(.featured):not(.verified) .aitd-btn-primary:hover,
.aitd-category-archive .aitd-tool-card:not(.featured):not(.verified) .aitd-btn-deal:hover,
.aitd-feature-archive .aitd-tool-card:not(.featured):not(.verified) .aitd-btn-primary:hover,
.aitd-feature-archive .aitd-tool-card:not(.featured):not(.verified) .aitd-btn-deal:hover,
.aitd-platform-archive .aitd-tool-card:not(.featured):not(.verified) .aitd-btn-primary:hover,
.aitd-platform-archive .aitd-tool-card:not(.featured):not(.verified) .aitd-btn-deal:hover {
  background: #374151 !important;
  color: white !important;
}

.aitd-btn-large {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* Upvote Button */
.aitd-upvote-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.2rem 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 50px;
  color: #374151;
}

.aitd-upvote-btn:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #1f2937;
}

.aitd-upvote-btn.voted {
  background: #dbeafe;
  border-color: #3b82f6;
  color: #1e40af;
}

.aitd-upvote-icon {
  font-size: 1rem;
  margin-bottom: 0.1rem;
  color: inherit;
}

.aitd-upvote-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: inherit;
}

/* Upvote success animation */
.aitd-upvote-btn.upvote-success {
  animation: upvoteSuccess 0.5s ease-in-out;
  background: #dbeafe;
  border-color: #3b82f6;
  color: #1e40af;
}

@keyframes upvoteSuccess {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Single Tool Page Styles */
.aitd-single-tool-page {
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.aitd-single-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1.5rem 1rem;
}

.aitd-single-hero .aitd-hero-content {
  max-width: 1200px;
  margin: 0 auto;
}

.aitd-single-hero .aitd-tool-header {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.aitd-single-logo {
  width: 100px;
  height: 100px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.aitd-single-logo.aitd-logo-placeholder {
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
}

.aitd-single-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.aitd-single-category {
  margin-bottom: 1rem;
}

.aitd-category-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

.aitd-single-description {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.aitd-single-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
}

.aitd-single-actions .aitd-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.aitd-single-content {
  background: #f9fafb;
  padding: 1.5rem 1rem;
}

.aitd-content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0;
}

.aitd-main-content {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.aitd-sidebar-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.aitd-tool-card-single {
  position: sticky;
  top: 2rem;
  background: white;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.aitd-related-tools {
  padding: 3rem 1rem;
  background: white;
}

.aitd-related-tools .aitd-content-wrapper {
  display: block;
  max-width: 1200px;
  margin: 0 auto;
}

.aitd-related-tools h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: #111827;
}

/* Related Tools Grid - Using Main Directory Grid Styles */
.aitd-related-tools .aitd-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  width: 100%;
  margin: 0 auto;
  margin-bottom: 48px;
  /* Performance optimizations */
  content-visibility: auto;
  contain-intrinsic-size: 0 500px;
}

.aitd-related-tools .aitd-tool-card {
  height: auto;
}

/* Related tools - ensure border styles are applied */
.aitd-related-tools .aitd-tool-card:not(.featured):not(.verified) {
  border-left: 5px solid #000000;
  border-bottom: 5px solid #000000;
  border-top: none;
  border-right: none;
}

.aitd-related-tools .aitd-tool-card.featured {
  border-top: 1px solid #f59e0b !important;
  border-right: 1px solid #f59e0b !important;
  border-bottom: 6px solid #f59e0b !important;
  border-left: 6px solid #f59e0b !important;
}

.aitd-related-tools .aitd-tool-card.verified {
  border-top: 1px solid #3b82f6 !important;
  border-right: 1px solid #3b82f6 !important;
  border-bottom: 6px solid #3b82f6 !important;
  border-left: 6px solid #3b82f6 !important;
}

.aitd-related-tools-view-all {
  text-align: center;
  margin-top: 2rem;
}

.aitd-related-tools-view-all .aitd-btn {
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
}

/* Category Archive Styles */
.aitd-category-archive {
  max-width: 100%;
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

.aitd-category-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 3rem 1rem;
  text-align: center;
  width: 100%;
}

.aitd-category-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.aitd-category-description {
  font-size: 1rem;
  color: #fff;
  line-height: 1.5;
  margin: 0;
}

.aitd-category-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.aitd-tools-count {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 500;
}

.aitd-category-content {
  background: #f9fafb;
  padding: 2rem 0;
  width: 100%;
}

/* Category Sort Filters - Using Main Directory Sort Styling */
.aitd-category-archive .aitd-sort-container {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
}

.aitd-category-archive .aitd-sort-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.aitd-category-archive .aitd-sort-btn {
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  color: #374151;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.aitd-category-archive .aitd-sort-btn:hover {
  background: #4f46e5;
  color: white;
  border-color: #4f46e5;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(79, 70, 229, 0.25);
}

.aitd-category-archive .aitd-sort-btn.active {
  background: #4f46e5;
  color: white;
  border-color: #4f46e5;
  box-shadow: 0 4px 8px rgba(79, 70, 229, 0.25);
}

.aitd-category-archive .aitd-sort-icon {
  font-size: 1rem;
  line-height: 1;
}

.aitd-category-archive .aitd-sort-label {
  font-weight: 500;
}

.aitd-category-archive .aitd-results-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.aitd-category-archive .aitd-category-results-count {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}

/* Load More */
.aitd-load-more {
  text-align: center;
  margin-top: 16px;
}

.aitd-load-more-btn {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.aitd-load-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
  background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
}
.aitd-load-more-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}
.aitd-load-more-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.aitd-load-more-btn:disabled:hover {
  transform: none;
  box-shadow: none;
}

.aitd-view-all-tools-btn {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  margin: 0 auto;
}
.aitd-view-all-tools-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
  background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
  color: white;
  text-decoration: none;
}
.aitd-view-all-tools-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

/* Loading States */
.aitd-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem;
}

.aitd-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f4f6;
  border-top: 4px solid #4f46e5;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* No Results */
.aitd-no-results {
  text-align: center;
  padding: 3rem 1rem;
  background: white;
  border-radius: 12px;
  margin: 0 1rem;
}

.aitd-no-results h3 {
  color: #111827;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.aitd-no-results p {
  color: #6b7280;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Coupon Popup - Minimal Design */
.aitd-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(4px);
}

.aitd-popup {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  position: relative;
  text-align: center;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid #e5e7eb;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.aitd-popup-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6b7280;
  transition: color 0.2s ease;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.aitd-popup-close:hover {
  color: #374151;
  background: #f3f4f6;
}

.aitd-popup h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 1rem 0;
  line-height: 1.3;
}

.aitd-coupon-code {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 1rem;
  border-radius: 8px;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Source Code Pro', monospace;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0.75rem 0;
  border: 2px solid #e2e8f0;
  color: #1e293b;
  letter-spacing: 0.05em;
  text-align: center;
  box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.aitd-coupon-code:hover {
  border-color: #cbd5e1;
  box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.1);
}

.aitd-coupon-percentage {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0.5rem 0;
  display: inline-block;
  text-align: center;
  box-shadow: 0 2px 4px -1px rgba(79, 70, 229, 0.2);
}

.aitd-coupon-details {
  background: #f8fafc;
  padding: 0.75rem;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.5;
  margin: 0.5rem 0;
  border-left: 3px solid #4f46e5;
  font-weight: 500;
}

.aitd-popup-note {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.5rem;
  font-style: italic;
  line-height: 1.4;
}

.aitd-affiliate-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: #4f46e5;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  transition: all 0.2s ease;
  background: #f9fafb;
}

.aitd-affiliate-link:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #4338ca;
  text-decoration: none;
}

/* Responsive popup adjustments */
@media (max-width: 480px) {
  .aitd-popup {
    max-width: 95%;
    padding: 1rem;
  }
  
  .aitd-popup h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
  }
  
  .aitd-coupon-code {
    font-size: 1.125rem;
    padding: 0.875rem;
    margin: 0.5rem 0;
  }
  
  .aitd-coupon-percentage {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }
  
  .aitd-coupon-details {
    font-size: 0.75rem;
    padding: 0.5rem;
  }
  
  .aitd-copy-btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.75rem;
    min-width: 100px;
  }
  
  .aitd-coupon-success-rate {
    padding: 0.5rem;
    margin: 0.5rem 0;
  }
  
  .aitd-coupon-vote-buttons {
    gap: 0.375rem;
  }
  
  .aitd-coupon-vote-btn {
    padding: 0.375rem;
    font-size: 0.75rem;
    width: 36px;
    height: 36px;
    min-width: 36px;
  }
  
  .aitd-admin-indicator {
    font-size: 0.625rem;
    padding: 0.25rem;
  }
}

.aitd-copy-btn {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px -1px rgba(79, 70, 229, 0.2);
  margin: 0.5rem 0;
  min-width: 120px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.aitd-copy-btn:hover {
  background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px -2px rgba(79, 70, 229, 0.3);
}

.aitd-copy-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px -1px rgba(79, 70, 229, 0.2);
}

.aitd-copy-btn.copied {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 2px 4px -1px rgba(5, 150, 105, 0.2);
}

/* Coupon Success Rate Voting */
.aitd-coupon-success-rate {
  margin: 0.75rem 0;
  padding: 0.75rem;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.aitd-coupon-success-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.aitd-coupon-success-rate-display {
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.aitd-coupon-vote-buttons {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
}

.aitd-coupon-vote-btn {
  background: #ffffff;
  border: 1px solid #d1d5db;
  color: #374151;
  padding: 0.5rem;
  border-radius: 50%;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
}

.aitd-coupon-vote-btn:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.aitd-coupon-vote-btn.voted {
  background: #4f46e5;
  border-color: #4f46e5;
  color: white;
}

.aitd-coupon-vote-btn.voted:hover {
  background: #4338ca;
  border-color: #4338ca;
}

.aitd-coupon-vote-btn.success {
  background: #059669;
  border-color: #059669;
  color: white;
}

.aitd-coupon-vote-btn.success:hover {
  background: #047857;
  border-color: #047857;
}

.aitd-coupon-vote-btn.failed {
  background: #dc2626;
  border-color: #dc2626;
  color: white;
}

.aitd-coupon-vote-btn.failed:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}

.aitd-coupon-vote-icon {
  font-size: 0.875rem;
}

.aitd-admin-indicator {
  font-size: 0.75rem;
  color: #7c3aed;
  font-weight: 600;
  margin-bottom: 0.5rem;
  padding: 0.25rem 0.5rem;
  background: #f3f4f6;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Announcements - Updated for WordPress editor content */
.aitd-announcement-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin-bottom: 2rem;
  border: 1px solid #f1f5f9;
  position: relative;
  overflow: hidden;
}

.aitd-announcement-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.aitd-announcement-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  border-color: #e2e8f0;
}

.aitd-announcement-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.aitd-announcement-title {
  color: #1e293b;
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  flex: 1;
}

.aitd-announcement-date {
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  background: #f8fafc;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.aitd-date-icon {
  font-size: 1rem;
}

.aitd-announcement-content {
  color: #475569;
  line-height: 1.7;
  font-size: 1rem;
}

.aitd-announcement-content p {
  margin-bottom: 1rem;
}

.aitd-announcement-content p:last-child {
  margin-bottom: 0;
}

.aitd-announcement-content h1,
.aitd-announcement-content h2,
.aitd-announcement-content h3,
.aitd-announcement-content h4,
.aitd-announcement-content h5,
.aitd-announcement-content h6 {
  color: #1e293b;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.aitd-announcement-content a {
  color: #4f46e5;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.aitd-announcement-content a:hover {
  color: #3730a3;
  text-decoration: underline;
}

.aitd-announcement-content blockquote {
  border-left: 4px solid #4f46e5;
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: #64748b;
  background: #f8fafc;
  padding: 1rem 1rem 1rem 1.5rem;
  border-radius: 0 8px 8px 0;
}

.aitd-announcement-content ul,
.aitd-announcement-content ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

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

.aitd-tweet-embed {
  margin: 1rem 0;
}

.aitd-embed-container {
  max-width: 100%;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background: white;
}

.aitd-embed-container iframe {
  max-width: 100%;
  height: auto;
  min-height: 400px;
  border: none;
  border-radius: 8px;
}

.aitd-tweet-link a {
  color: #4f46e5;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
}

.aitd-tweet-link a:hover {
  text-decoration: underline;
}

/* Responsive adjustments for announcement cards */
@media (max-width: 768px) {
  .aitd-announcement-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .aitd-announcement-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .aitd-announcement-title {
    font-size: 1.125rem;
  }
  
  .aitd-announcement-date {
    align-self: flex-start;
  }
  
  .aitd-embed-container iframe {
    min-height: 350px;
  }
}

@media (max-width: 480px) {
  .aitd-announcement-card {
    padding: 1rem;
    border-radius: 12px;
  }
  
  .aitd-announcement-title {
    font-size: 1rem;
  }
  
  .aitd-announcement-date {
    font-size: 0.75rem;
    padding: 0.375rem 0.5rem;
  }
  
  .aitd-announcement-content {
    font-size: 0.875rem;
    line-height: 1.6;
  }
  
  .aitd-embed-container iframe {
    min-height: 300px;
  }
}

/* News Section */
.aitd-news-container {
  margin: 0 1rem 2rem;
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.aitd-news-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
  text-align: center;
}

.aitd-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* Category Grid */
.aitd-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.aitd-category-grid-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  margin-top: 32px;
}

.aitd-category-grid-header {
  text-align: center;
  margin-bottom: 2rem;
  padding: 0 2rem;
}

.aitd-category-grid-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.5rem 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.aitd-category-grid-subtitle {
  font-size: 1.125rem;
  color: #64748b;
  margin: 0;
  font-weight: 400;
}

.aitd-category-show-more {
  text-align: center;
  margin: 2rem 0;
  padding: 0 1rem;
}

.aitd-show-more-categories-btn {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.aitd-show-more-categories-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
  background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
}

.aitd-show-more-categories-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.aitd-show-more-categories-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.aitd-show-more-categories-btn:disabled:hover {
  transform: none;
  box-shadow: none;
}

.aitd-show-more-text {
  font-weight: 600;
}

.aitd-show-more-count {
  font-size: 0.875rem;
  opacity: 0.9;
  font-weight: 500;
}

.aitd-category-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
  border: 2px solid transparent;
  background-clip: padding-box;
  overflow: hidden;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.aitd-category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.aitd-category-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  z-index: 1;
}

.aitd-category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  color: inherit;
}

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

.aitd-category-card .aitd-category-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.aitd-category-card:hover .aitd-category-title {
  color: #667eea;
}

.aitd-category-count {
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.aitd-category-tools-preview {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.aitd-category-tool-icon-wrapper {
  position: relative;
  display: inline-block;
}

.aitd-category-tool-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
}

/* Tooltip styles */
.aitd-category-tool-icon-wrapper::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 1000;
  pointer-events: none;
  margin-bottom: 0.5rem;
}

.aitd-category-tool-icon-wrapper::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 1000;
  pointer-events: none;
  margin-bottom: -0.25rem;
}

.aitd-category-tool-icon-wrapper:hover::before,
.aitd-category-tool-icon-wrapper:hover::after {
  opacity: 1;
  visibility: visible;
}

/* Enhanced tooltip visibility for JavaScript-controlled tooltips */
.aitd-category-tool-icon-wrapper.tooltip-visible::before,
.aitd-category-tool-icon-wrapper.tooltip-visible::after {
  opacity: 1;
  visibility: visible;
}

/* Touch tooltip styles */
.aitd-touch-tooltip {
  position: fixed;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  max-width: 200px;
  word-wrap: break-word;
  white-space: normal;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  animation: tooltipFadeIn 0.2s ease-out;
}

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

.aitd-category-view-all {
  color: #4f46e5;
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.aitd-category-card:hover .aitd-category-view-all {
  color: #4f46e5;
}

/* Key Features Section */
.aitd-key-features-section {
  margin: 3rem 0;
  padding: 2rem 0;
  background: transparent;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.aitd-key-features-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  pointer-events: none;
}

.aitd-key-features-header {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.aitd-key-features-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.5rem 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.aitd-key-features-subtitle {
  font-size: 1.125rem;
  color: #64748b;
  margin: 0;
  font-weight: 400;
}

.aitd-key-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.aitd-key-feature-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
  overflow: hidden;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.aitd-key-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.aitd-key-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.12);
  z-index: 2;
}

.aitd-key-feature-card:hover::before {
  transform: scaleX(1);
}

.aitd-key-feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.5rem 0;
  transition: color 0.3s ease;
}

.aitd-key-feature-card:hover .aitd-key-feature-title {
  color: #667eea;
}

.aitd-key-feature-count {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
  margin-bottom: 1rem;
}

.aitd-key-feature-tools-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.aitd-key-feature-tool-icon-wrapper {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.aitd-key-feature-tool-icon-wrapper:hover {
  transform: scale(1.1);
}

.aitd-key-feature-tool-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.aitd-key-feature-tool-icon-wrapper::before {
  display: none;
}

.aitd-key-feature-tool-icon-wrapper::after {
  display: none;
}

.aitd-key-feature-tool-icon-wrapper:hover::before,
.aitd-key-feature-tool-icon-wrapper.tooltip-visible::before {
  display: none;
}

.aitd-key-feature-tool-icon-wrapper:hover::after,
.aitd-key-feature-tool-icon-wrapper.tooltip-visible::after {
  display: none;
}

.aitd-key-feature-view-all {
  font-size: 0.875rem;
  color: #667eea;
  font-weight: 600;
  text-align: center;
  transition: color 0.3s ease;
}

.aitd-key-feature-card:hover .aitd-key-feature-view-all {
  color: #4f46e5;
}

/* Key Features Show More Button */
.aitd-key-features-show-more {
  text-align: center;
  margin: 2rem 0;
  padding: 0 2rem;
}

.aitd-show-more-features-btn {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.aitd-show-more-features-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
  background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
}

.aitd-show-more-features-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.aitd-show-more-features-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.aitd-show-more-features-btn:disabled:hover {
  transform: none;
  box-shadow: none;
}

/* Platform Section Styles - Copied from Key Features */


/* Results Info */
.aitd-results-info {
  color: #6b7280;
  font-size: 0.875rem;
}

.aitd-results-count {
  font-weight: 500;
}

/* Filter Feedback */
.aitd-filter-feedback {
  background: #dbeafe;
  color: #1e40af;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
  border-left: 4px solid #3b82f6;
  animation: slideInDown 0.3s ease-out;
}

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

/* Single Tool Sidebar Card Styles */
.aitd-single-tool-sidebar-card {
  background: white;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.aitd-single-tool-sidebar-card h3 {
  margin-bottom: 1rem;
  color: #111827;
  font-size: 1.25rem;
}

.aitd-tool-meta {
  margin-bottom: 1.5rem;
}

.aitd-meta-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.375rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.aitd-meta-item:last-child {
  border-bottom: none;
}

.aitd-meta-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.aitd-meta-item .aitd-category-label {
  font-size: 0.875rem;
  margin: 0;
}

.aitd-meta-item strong {
  color: #374151;
  font-weight: 600;
}

.aitd-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 500;
}

.aitd-featured-badge {
  background: #fef3c7;
  color: #92400e;
}

.aitd-verified-badge {
  background: #dbeafe;
  color: #1e40af;
}

.aitd-btn-block {
  width: 100%;
  margin-bottom: 0.5rem;
  justify-content: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  /* Related Tools Tablet Styles - Using Main Directory Styles */
  .aitd-related-tools .aitd-tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Clickable Labels Tablet Styles */
  .aitd-clickable-label {
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
  }
  
  .aitd-tag-label {
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
  }
}

@media (max-width: 640px) {
  /* Related Tools Mobile Styles - Using Main Directory Styles */
  .aitd-related-tools .aitd-tools-grid {
    grid-template-columns: 1fr;
  }
  
  /* Category Grid for Medium Mobile Screens */
  .aitd-category-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    margin: 0 0.5rem;
    gap: 1rem;
  }
  
  .aitd-key-features-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    padding: 0 1rem;
    gap: 1rem;
  }
  

  

  
  .aitd-key-features-title {
    font-size: 2rem;
  }
  
  .aitd-key-features-subtitle {
    font-size: 1rem;
  }
  

  
  .aitd-category-grid-title {
    font-size: 2rem;
  }
  
  .aitd-category-grid-subtitle {
    font-size: 1rem;
  }

  .aitd-category-card,
  .aitd-key-feature-card {
    padding: 1rem;
    min-height: 160px;
  }

  .aitd-category-card .aitd-category-title,
  .aitd-key-feature-card .aitd-key-feature-title {
    font-size: 1.125rem;
  }

  /* Featured Tools for Medium Mobile */
  .aitd-featured-section {
    margin: 0 0.5rem 2rem;
    padding: 0.3rem;
  }

  .aitd-featured-header {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .aitd-featured-title-section {
    order: 1;
  }

  .aitd-featured-controls {
    order: 2;
    justify-content: center;
  }

  .aitd-carousel-slide {
    flex: 0 0 280px;
  }

  .aitd-featured-card {
    min-height: 220px;
    height: auto;
  }

  .aitd-tool-actions {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.5rem !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    flex-wrap: wrap;
  }
  .aitd-tool-actions .aitd-btn,
  .aitd-tool-actions .aitd-btn-deal,
  .aitd-tool-actions .aitd-upvote-btn {
    flex: none !important;
    width: 110px !important;
    min-width: 110px !important;
    max-width: 110px !important;
    margin: 0 !important;
    font-size: 0.95rem !important;
    box-sizing: border-box;
  }

}

@media (max-width: 768px) {
  .aitd-archive-container {
    padding: 0 0.5rem;
  }
  
  .aitd-archive-content {
    padding: 1rem 0;
  }
  
  .aitd-hero-content {
    padding: 0 0.5rem;
  }
  
  .aitd-hero-title {
    font-size: 1.75rem;
  }

  .aitd-hero-subtitle {
    font-size: 0.875rem;
  }
  
  .aitd-hero-stats {
    gap: 1rem;
    margin-top: 1rem;
  }
  
  .aitd-stat {
    padding: 0.5rem;
  }
  
  .aitd-stat-number {
    font-size: 1.5rem;
  }
  
  .aitd-stat-label {
    font-size: 0.75rem;
  }
  
  /* Small mobile arrow adjustments */
  .aitd-date-arrow {
    width: 18px;
    height: 18px;
    font-size: 9px;
    top: -5px;
    right: -5px;
  }
  
  /* Mobile arrow adjustments */
  .aitd-date-arrow {
    width: 20px;
    height: 20px;
    font-size: 10px;
    top: -6px;
    right: -6px;
  }
  
  /* Search Bar Mobile Enhancements */
  .aitd-search-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 2rem;
    padding: 0 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  }
  
  .aitd-search-input {
    padding: 1.2rem 3.5rem 1.2rem 1.5rem;
    font-size: 1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
  }
  
  .aitd-search-icon {
    right: 2.5rem;
    font-size: 1.1rem;
    color: #4ecdc4;
    filter: drop-shadow(0 0 6px rgba(78, 205, 196, 0.5));
  }
  
  .aitd-search-help {
    right: 0.5rem;
  }
  
  .aitd-help-icon {
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    background: linear-gradient(135deg, #533483 0%, #0f3460 100%);
    color: #4ecdc4;
    box-shadow: 0 0 8px rgba(78, 205, 196, 0.3);
  }
  
  /* Search Suggestions Mobile */
  .aitd-search-suggestions {
    max-height: 250px;
    border-radius: 0 0 14px 14px;
    background: linear-gradient(135deg, rgba(15, 15, 35, 0.95) 0%, rgba(26, 26, 46, 0.95) 100%);
    border: 1px solid rgba(78, 205, 196, 0.3);
  }
  
  .aitd-suggestion-item {
    padding: 0.75rem 1rem;
  }
  
  .aitd-suggestion-icon {
    font-size: 1rem;
    margin-right: 0.75rem;
    width: 20px;
  }
  
  .aitd-suggestion-item {
    padding: 0.625rem 0.875rem;
  }
  
  .aitd-suggestion-text {
    font-size: 0.8rem;
  }
  
  .aitd-suggestion-type {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
  }
  
  /* Clickable Labels Mobile Styles */
  .aitd-clickable-label {
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
  }
  
  .aitd-tag-label {
    font-size: 0.6rem;
    padding: 0.1rem 0.4rem;
  }
  
  .aitd-filter-feedback {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  .aitd-hero-stats {
    gap: 1.5rem;
  }

  .aitd-filters {
    flex-direction: column;
    gap: 1rem;
  }

  .aitd-filter-group {
    min-width: auto;
  }

  /* General tools grid - only for non-archive pages */
  .aitd-tools-grid:not(.aitd-category-archive .aitd-tools-grid):not(.aitd-feature-archive .aitd-tools-grid) {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin: 0 0.5rem 2rem;
    gap: 0.75rem;
  }
  
  .aitd-tool-card {
    height: auto;
  }

  .aitd-sort-container {
    flex-direction: column;
    align-items: stretch;
  }

  .aitd-sort-buttons {
    justify-content: center;
  }

  .aitd-featured-section {
    margin: 0 0.5rem 1.5rem;
    padding: 0.3rem;
    max-height: none;
  }

  .aitd-featured-carousel {
    height: auto;
    overflow: hidden;
  }

  .aitd-carousel-slide {
    flex: 0 0 260px;
  }

  /* Mobile Carousel Navigation */
  .aitd-carousel-nav {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
    border-width: 2px;
  }

  .aitd-carousel-prev {
    left: 8px;
  }

  .aitd-carousel-next {
    right: 8px;
  }



  .aitd-featured-card {
    height: auto;
  }

  .aitd-featured-description {
    font-size: 0.625rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    height: 2.8rem;
    min-height: 2.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-wrap: break-word;
    display: flex;
    align-items: flex-start;
  }

  .aitd-featured-rating {
    margin-bottom: 0.75rem;
  }

  .aitd-featured-actions {
    margin-top: auto;
  }

  .aitd-featured-meta-row {
    margin-bottom: 0.5rem;
  }

  .aitd-featured-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .aitd-featured-header {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  .aitd-featured-title-section {
    order: 1;
  }

  .aitd-featured-controls {
    order: 2;
    justify-content: center;
  }

  .aitd-featured-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .aitd-view-toggle-btn {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
  }

  .aitd-featured-header {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .aitd-featured-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
  }

  .aitd-view-toggle-btn {
    font-size: 0.8rem;
    padding: 0.6rem 1.2rem;
  }

  .aitd-single-title {
    font-size: 1.5rem;
  }

  .aitd-content-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
    display: flex;
    flex-direction: column;
  }

  .aitd-tool-card-single {
    position: static;
    order: 1;
  }

  .aitd-main-content {
    order: 2;
  }

  .aitd-category-title {
    font-size: 2rem;
  }

  .aitd-category-description {
    font-size: 1.8rem;
    color: white;
    padding: 0 1rem;
  }

  .aitd-single-hero .aitd-tool-header {
    flex-direction: column;
    text-align: center;
  }

  /* Related Tools Mobile Styles */
  .aitd-related-tools .aitd-tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
  }

  .aitd-related-tools .aitd-tool-card {
    height: auto;
  }

  /* Category Grid Mobile Styles */
  .aitd-category-grid {
    grid-template-columns: 1fr !important;
    margin: 0 0.5rem;
    gap: 1rem;
  }
  
  .aitd-key-features-grid {
    grid-template-columns: 1fr !important;
    padding: 0 1rem;
    gap: 1rem;
  }
  

  
  .aitd-key-features-title {
    font-size: 1.75rem;
  }
  
  .aitd-key-features-subtitle {
    font-size: 0.875rem;
  }
  

  
  .aitd-category-grid-title {
    font-size: 1.75rem;
  }
  
  .aitd-category-grid-subtitle {
    font-size: 0.875rem;
  }

  .aitd-category-card {
    padding: 1.25rem;
  }

  .aitd-category-card .aitd-category-title {
    font-size: 1.125rem;
  }

  .aitd-category-tools-preview {
    gap: 0.375rem;
  }

  .aitd-category-tool-icon {
    width: 28px;
    height: 28px;
  }
  
  /* Mobile tooltip adjustments */
  .aitd-category-tool-icon-wrapper::before {
    font-size: 0.7rem;
    padding: 0.375rem 0.625rem;
    max-width: 150px;
  }
}

@media (max-width: 480px) {
  .aitd-archive-container {
    padding: 0 0.25rem;
  }
  
  .aitd-archive-content {
    padding: 0.5rem 0;
  }
  
  .aitd-hero-content {
    padding: 0 0.25rem;
  }
  
  .aitd-hero-section {
    padding: 1.5rem 1rem;
  }

  .aitd-hero-title {
    font-size: 1.5rem;
  }

  .aitd-search-container {
    width: 100%;
    max-width: 100%;
    padding: 0 0.75rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  }

  .aitd-tool-card {
    padding: 0.75rem;
    height: auto;
  }

  .aitd-tool-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .aitd-btn {
    width: 100%;
    justify-content: center;
  }

  .aitd-featured-section {
    padding: 0.3rem;
    max-height: none;
    min-height: 200px;
    margin: 0 0.25rem 1.5rem;
  }

  .aitd-featured-carousel {
    min-height: 180px;
    height: auto;
    overflow: hidden;
  }

  .aitd-carousel-slide {
    flex: 0 0 240px;
  }

  .aitd-featured-card {
    min-height: 160px;
    height: auto;
    padding: 0.5rem;
  }
  
  /* All Grids - Single Column for Small Mobile (Consistent across all grids) */
  .aitd-category-grid,
  .aitd-key-features-grid,
  .aitd-platform-grid,
  .aitd-container .aitd-category-grid,
  .aitd-container .aitd-key-features-grid,
  .aitd-container .aitd-platform-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem;
    margin: 0 0.25rem;
  }
  
    .aitd-category-card,
  .aitd-key-feature-card {
    padding: 0.75rem;
    min-height: 140px;
  }

  .aitd-category-card .aitd-category-title,
  .aitd-key-feature-card .aitd-key-feature-title {
    font-size: 1rem;
  }
  
  .aitd-category-count,
  .aitd-key-feature-count,
  .aitd-platform-count {
    font-size: 0.85rem;
  }
  
  .aitd-category-tools-preview,
  .aitd-key-feature-tools-preview,
  .aitd-platform-tools-preview {
    gap: 2px;
  }
  
  .aitd-category-tool-icon,
  .aitd-key-feature-tool-icon,
  .aitd-platform-tool-icon {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
  }
  
  .aitd-category-tool-icon-wrapper::before,
  .aitd-key-feature-tool-icon-wrapper::before {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }
  
  .aitd-category-view-all,
  .aitd-key-feature-view-all {
    font-size: 0.85rem;
  }

  /* Single tool page mobile layout - ensure tool card appears above main content */
  .aitd-content-wrapper {
    display: flex;
    flex-direction: column;
  }

  .aitd-tool-card-single {
    order: 1;
  }

  .aitd-main-content {
    order: 2;
  }

  .aitd-featured-description {
    font-size: 0.6rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    height: 2.6rem;
    min-height: 2.6rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-wrap: break-word;
    display: flex;
    align-items: flex-start;
  }

  .aitd-featured-rating {
    margin-bottom: 0.6rem;
  }

  .aitd-featured-actions {
    margin-top: auto;
  }

  .aitd-btn-featured {
    font-size: 0.6rem;
    padding: 0.4rem 0.75rem;
  }

  .aitd-featured-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  /* Category Grid Mobile Styles for Small Screens - REMOVED DUPLICATE RULES */

  /* Related Tools Small Mobile Styles */
  .aitd-related-tools .aitd-tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.5rem;
  }

  .aitd-related-tools .aitd-tool-card {
    height: auto;
  }

  .aitd-related-tools {
    padding: 2rem 0.5rem;
  }

  /* General tools grid - only for non-archive pages */
  .aitd-tools-grid:not(.aitd-category-archive .aitd-tools-grid):not(.aitd-feature-archive .aitd-tools-grid) {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.5rem;
  }

  .aitd-tool-card {
    padding: 0.5rem;
    min-height: 240px;
    height: auto;
  }
}

/* Category Archive Responsive Styles */
@media (max-width: 768px) {
  /* Category Archive Tablet Styles */
  .aitd-category-hero {
    padding: 2rem 1rem;
  }

  .aitd-category-title {
    font-size: 2rem;
  }

  .aitd-category-description {
    font-size: 2.4rem;
    color: white;
    padding: 0 1rem;
  }

  .aitd-category-stats {
    gap: 1.5rem;
  }

  .aitd-category-content {
    padding: 1.5rem 0;
  }

  /* Category Archive Tools Grid */
.aitd-category-archive .aitd-tools-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin: 0 0 2rem 0;
}

  .aitd-category-archive .aitd-tool-card {
    min-height: 280px;
    height: auto;
  }

  /* Category Archive Search and Filters */
  .aitd-category-archive .aitd-search-container {
    margin: 0 1rem 1.5rem;
  }

  .aitd-category-archive .aitd-filters {
    margin: 0 1rem 1.5rem;
    flex-direction: column;
    gap: 1rem;
  }

  .aitd-category-archive .aitd-filter-group {
    min-width: auto;
  }

  /* Category Archive Sort Controls */
  .aitd-category-archive .aitd-sort-container {
    margin: 0 1rem 1.5rem;
    flex-direction: column;
    align-items: stretch;
  }

  .aitd-category-archive .aitd-sort-buttons {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  /* Category Archive Mobile Styles */
  .aitd-category-hero {
    padding: 1.5rem 0.5rem;
  }

  .aitd-category-title {
    font-size: 1.75rem;
  }

  .aitd-category-description {
    font-size: 1.8rem;
    color: white;
    padding: 0 1rem;
  }

  .aitd-category-stats {
    gap: 1rem;
  }

  .aitd-tools-count {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
  }

  .aitd-category-content {
    padding: 1rem 0;
  }

  /* Category Archive Tools Grid Mobile */
  .aitd-category-archive .aitd-tools-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin: 0 0 2rem 0;
  }

  .aitd-category-archive .aitd-tool-card {
    height: auto;
  }

  /* Category Archive Search and Filters Mobile */
  .aitd-category-archive .aitd-search-container {
    margin: 0 0.5rem 1rem;
    padding: 0 0.5rem;
  }

  .aitd-category-archive .aitd-filters {
    margin: 0 0.5rem 1rem;
    padding: 1rem;
  }

  .aitd-category-archive .aitd-filter-buttons {
    gap: 0.375rem;
  }

  .aitd-category-archive .aitd-filter-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
  }

  /* Category Archive Sort Controls Mobile */
  .aitd-category-archive .aitd-sort-container {
    margin: 0 0.5rem 1rem;
  }

  .aitd-category-archive .aitd-sort-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
  }

  /* Category Archive Load More Mobile */
  .aitd-category-archive .aitd-load-more {
    margin: 1.5rem 0.5rem;
  }

  .aitd-category-archive .aitd-load-more-btn {
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
  }

  /* Show More Categories Button Mobile */
  .aitd-show-more-categories-btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
    width: 100%;
    max-width: 300px;
  }
  
  /* Show More Features Button Mobile */
  .aitd-show-more-features-btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
    width: 100%;
    max-width: 300px;
  }

  .aitd-show-more-text {
    font-size: 0.875rem;
  }

  .aitd-show-more-count {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  /* Category Archive Small Mobile Styles */
  .aitd-category-hero {
    padding: 1rem 0.25rem;
  }

  .aitd-category-title {
    font-size: 1.5rem;
  }

  .aitd-category-description {
    font-size: 1.4rem;
    color: white;
    padding: 0 0.5rem;
  }

  .aitd-category-stats {
    flex-direction: column;
    gap: 0.75rem;
  }

  .aitd-tools-count {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
  }

  .aitd-category-content {
    padding: 0.75rem 0;
  }

  /* Category Archive Tools Grid Small Mobile */
  .aitd-category-archive .aitd-tools-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin: 0 0 1.5rem 0;
  }

  /* Category Sort Filters - Mobile */
  .aitd-category-archive .aitd-sort-container {
    margin: 0.5rem;
    padding: 1rem;
  }

  .aitd-category-archive .aitd-sort-buttons {
    gap: 0.5rem;
    margin-bottom: 0.75rem;
  }

  .aitd-category-archive .aitd-sort-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    gap: 0.25rem;
  }

  .aitd-category-archive .aitd-sort-icon {
    font-size: 0.875rem;
  }

  .aitd-category-archive .aitd-results-info {
    padding-top: 0.75rem;
  }

  .aitd-category-archive .aitd-category-results-count {
    font-size: 0.8rem;
  }

  .aitd-category-archive .aitd-tool-card {
    min-height: 240px;
    height: auto;
  }

  /* Category Archive Search and Filters Small Mobile */
  .aitd-category-archive .aitd-search-container {
    margin: 0 0.25rem 0.75rem;
    padding: 0 0.25rem;
  }

  .aitd-category-archive .aitd-search-input {
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    font-size: 1rem;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
  }

  .aitd-category-archive .aitd-filters {
    margin: 0 0.25rem 0.75rem;
    padding: 0.75rem;
  }

  .aitd-category-archive .aitd-filter-group {
    margin-bottom: 0.5rem;
  }

  .aitd-category-archive .aitd-filter-label {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
  }

  .aitd-category-archive .aitd-filter-buttons {
    gap: 0.25rem;
  }

  .aitd-category-archive .aitd-filter-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }

  /* Category Archive Sort Controls Small Mobile */
  .aitd-category-archive .aitd-sort-container {
    margin: 0 0.25rem 0.75rem;
  }

  .aitd-category-archive .aitd-results-count {
    font-size: 0.8rem;
    text-align: center;
  }

  .aitd-category-archive .aitd-sort-buttons {
    gap: 0.25rem;
  }

  .aitd-category-archive .aitd-sort-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }

  /* Category Archive Load More Small Mobile */
  .aitd-category-archive .aitd-load-more {
    margin: 1rem 0.25rem;
  }

  .aitd-category-archive .aitd-load-more-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  /* Category Archive No Results Small Mobile */
  .aitd-category-archive .aitd-no-results {
    margin: 0 0.25rem;
    padding: 2rem 0.5rem;
  }

  .aitd-category-archive .aitd-no-results h3 {
    font-size: 1.25rem;
  }

  .aitd-category-archive .aitd-no-results p {
    font-size: 0.875rem;
  }
}

/* Desktop Styles (1025px and above) */
@media (min-width: 1025px) {
  /* Category Archive Desktop Styles */
  .aitd-category-hero {
    padding: 4rem 2rem;
  }

  .aitd-category-title {
    font-size: 3rem;
  }

  .aitd-category-description {
    font-size: 1.5rem;
  }

  .aitd-category-stats {
    gap: 3rem;
  }

  .aitd-tools-count {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
  }

  .aitd-category-content {
    padding: 3rem 0;
  }

  /* Category Archive Tools Grid Desktop */
  .aitd-category-archive .aitd-tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin: 0 0 3rem 0;
  }

  .aitd-category-archive .aitd-tool-card {
    height: auto;
  }

  /* Category Archive Search and Filters Desktop */
  .aitd-category-archive .aitd-search-container {
    margin: 0 3rem 2rem;
  }

  .aitd-category-archive .aitd-filters {
    margin: 0 3rem 2rem;
    padding: 2rem;
  }

  /* Category Archive Sort Controls Desktop */
  .aitd-category-archive .aitd-sort-container {
    margin: 0 3rem 2rem;
  }

  /* Category Archive Load More Desktop */
  .aitd-category-archive .aitd-load-more {
    margin: 3rem 3rem;
  }

  .aitd-category-archive .aitd-load-more-btn {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
  }
}

/* Feature Archive Styles - Copied from Category Archive */
.aitd-feature-archive {
  max-width: 100%;
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

.aitd-feature-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 3rem 1rem;
  text-align: center;
  width: 100%;
}

.aitd-feature-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.aitd-feature-description {
  font-size: 1rem;
  color: #fff;
  line-height: 1.5;
  margin: 0;
}

.aitd-feature-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.aitd-feature-content {
  background: #f9fafb;
  padding: 2rem 0;
  width: 100%;
}

/* Feature Sort Filters - Using Main Directory Sort Styling */
.aitd-feature-archive .aitd-sort-container {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
}

.aitd-feature-archive .aitd-sort-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.aitd-feature-archive .aitd-sort-btn {
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  color: #374151;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.aitd-feature-archive .aitd-sort-btn:hover {
  background: #4f46e5;
  color: white;
  border-color: #4f46e5;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(79, 70, 229, 0.25);
}

.aitd-feature-archive .aitd-sort-btn.active {
  background: #4f46e5;
  color: white;
  border-color: #4f46e5;
  box-shadow: 0 4px 8px rgba(79, 70, 229, 0.25);
}

.aitd-feature-archive .aitd-sort-icon {
  font-size: 1rem;
  line-height: 1;
}

.aitd-feature-archive .aitd-sort-label {
  font-weight: 500;
}

.aitd-feature-archive .aitd-results-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.aitd-feature-archive .aitd-feature-results-count {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}

/* Feature Archive Tools Grid */
.aitd-feature-archive .aitd-tools-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin: 0 0 2rem 0;
}

/* Responsive styles for feature archive */
@media (max-width: 768px) {
  .aitd-feature-hero {
    padding: 2rem 1rem;
  }
  
  .aitd-feature-title {
    font-size: 2rem;
  }
  
  .aitd-feature-description {
    font-size: 1rem;
  }
  
  .aitd-feature-stats {
    gap: 1rem;
  }
  
  .aitd-feature-content {
    padding: 2rem 0;
  }
  
  .aitd-feature-archive .aitd-tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin: 0 0 2rem 0;
  }
  
  .aitd-feature-archive .aitd-tool-card {
  }
  
  .aitd-feature-archive .aitd-sort-container {
    margin: 1rem;
  }
  
  .aitd-feature-archive .aitd-sort-buttons {
    gap: 0.5rem;
  }
  
  .aitd-feature-archive .aitd-sort-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 640px) {
  .aitd-feature-hero {
    padding: 1.5rem 1rem;
  }
  
  .aitd-feature-title {
    font-size: 1.75rem;
  }
  
  .aitd-feature-description {
    font-size: 0.9rem;
  }
  
  .aitd-feature-stats {
    gap: 0.75rem;
  }
  
  .aitd-tools-count {
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
  }
  
  .aitd-feature-content {
    padding: 1.5rem 0;
  }
  
  .aitd-feature-archive .aitd-tools-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin: 0 0 2rem 0;
  }
  
  .aitd-feature-archive .aitd-tool-card {
  }
  
  .aitd-feature-archive .aitd-sort-container {
    margin: 1rem;
    padding: 1rem;
  }
  
  .aitd-feature-archive .aitd-sort-buttons {
    gap: 0.25rem;
  }
  
  .aitd-feature-archive .aitd-sort-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .aitd-feature-hero {
    padding: 1.5rem 0.5rem;
  }
  
  .aitd-feature-title {
    font-size: 1.5rem;
  }
  
  .aitd-feature-description {
    font-size: 0.85rem;
  }
  
  .aitd-feature-stats {
    gap: 0.5rem;
  }
  
  .aitd-tools-count {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
  }
  
  .aitd-feature-content {
    padding: 1rem 0;
  }
  
  .aitd-feature-archive .aitd-tools-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin: 0 0 1.5rem 0;
  }
  
  .aitd-feature-archive .aitd-tool-card {
    min-height: 260px;
  }
  
  .aitd-feature-archive .aitd-sort-container {
    margin: 0.5rem;
    padding: 0.75rem;
  }
  
  .aitd-feature-archive .aitd-sort-buttons {
    justify-content: center;
    gap: 0.25rem;
  }
  
  .aitd-feature-archive .aitd-sort-btn {
    padding: 0.5rem 0.5rem;
    font-size: 0.65rem;
    flex: 1;
    max-width: 100px;
  }
  
  .aitd-feature-archive .aitd-sort-label {
    font-size: 0.65rem;
  }
  
  .aitd-feature-archive .aitd-feature-results-count {
    font-size: 0.75rem;
  }
}

@media (min-width: 1025px) {
  .aitd-feature-hero {
    padding: 4rem 2rem;
  }
  
  .aitd-feature-title {
    font-size: 3rem;
  }
  
  .aitd-feature-description {
    font-size: 1.125rem;
  }
  
  .aitd-feature-stats {
    gap: 3rem;
  }
  
  .aitd-feature-content {
    padding: 3rem 0;
  }
  
  .aitd-feature-archive .aitd-tools-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin: 0 0 3rem 0;
  }
  
  .aitd-feature-archive .aitd-tool-card {
    height: auto;
  }
  
  .aitd-feature-archive .aitd-sort-container {
    margin: 0 3rem 2rem;
  }
}

/* Platform Archive Styles - Copied from Feature Archive */
.aitd-platform-archive {
  max-width: 100%;
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

.aitd-platform-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 3rem 1rem;
  text-align: center;
  width: 100%;
}

.aitd-platform-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 8px 0;
  text-align: center;
  color: inherit;
}

.aitd-platform-description {
  font-size: 1rem;
  color: #fff;
  line-height: 1.5;
  margin: 0;
}

.aitd-platform-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.aitd-platform-content {
  background: #f9fafb;
  padding: 2rem 0;
  width: 100%;
}

/* Platform Sort Filters - Using Main Directory Sort Styling */
.aitd-platform-archive .aitd-sort-container {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
}

.aitd-platform-archive .aitd-sort-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.aitd-platform-archive .aitd-sort-btn {
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  color: #374151;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.aitd-platform-archive .aitd-sort-btn:hover {
  background: #4f46e5;
  color: white;
  border-color: #4f46e5;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(79, 70, 229, 0.25);
}

.aitd-platform-archive .aitd-sort-btn.active {
  background: #4f46e5;
  color: white;
  border-color: #4f46e5;
  box-shadow: 0 4px 8px rgba(79, 70, 229, 0.25);
}

.aitd-platform-archive .aitd-sort-icon {
  font-size: 1rem;
  line-height: 1;
}

.aitd-platform-archive .aitd-sort-label {
  font-weight: 500;
}

.aitd-platform-archive .aitd-results-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1rem 0;
}

.aitd-platform-archive .aitd-platform-results-count {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
}

.aitd-platform-archive .aitd-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin: 0 0 2rem 0;
}

/* Main Archive Pages Styles - Making them consistent with individual taxonomy archives */

/* Categories Main Archive */
.aitd-categories-archive {
  max-width: 100%;
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

.aitd-categories-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 3rem 1rem;
  text-align: center;
  width: 100%;
}

.aitd-categories-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.aitd-categories-description {
  font-size: 1rem;
  color: #fff;
  line-height: 1.5;
  margin: 0;
}

.aitd-categories-content {
  background: #f9fafb;
  padding: 2rem 0;
  width: 100%;
}

/* Features Main Archive */
.aitd-features-archive {
  max-width: 100%;
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

.aitd-features-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 3rem 1rem;
  text-align: center;
  width: 100%;
}

.aitd-features-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.aitd-features-description {
  font-size: 1rem;
  color: #fff;
  line-height: 1.5;
  margin: 0;
}

.aitd-features-content {
  background: #f9fafb;
  padding: 2rem 0;
  width: 100%;
}

/* Platforms Main Archive */
.aitd-platforms-archive {
  max-width: 100%;
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

.aitd-platforms-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 3rem 1rem;
  text-align: center;
  width: 100%;
}

.aitd-platforms-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.aitd-platforms-description {
  font-size: 1rem;
  color: #fff;
  line-height: 1.5;
  margin: 0;
}

.aitd-platforms-content {
  background: #f9fafb;
  padding: 2rem 0;
  width: 100%;
}

/* Responsive styles for main archive pages */
@media (max-width: 768px) {
  .aitd-categories-hero,
  .aitd-features-hero,
  .aitd-platforms-hero {
    padding: 2rem 1rem;
  }
  
  .aitd-categories-title,
  .aitd-features-title,
  .aitd-platforms-title {
    font-size: 2rem;
  }
  
  .aitd-categories-description,
  .aitd-features-description,
  .aitd-platforms-description {
    font-size: 0.9rem;
  }
  
  .aitd-categories-content,
  .aitd-features-content,
  .aitd-platforms-content {
    padding: 1.5rem 0;
  }
}

@media (max-width: 640px) {
  .aitd-categories-hero,
  .aitd-features-hero,
  .aitd-platforms-hero {
    padding: 1.5rem 1rem;
  }
  
  .aitd-categories-title,
  .aitd-features-title,
  .aitd-platforms-title {
    font-size: 1.75rem;
  }
  
  .aitd-categories-description,
  .aitd-features-description,
  .aitd-platforms-description {
    font-size: 0.875rem;
  }
  
  .aitd-categories-content,
  .aitd-features-content,
  .aitd-platforms-content {
    padding: 1rem 0;
  }
}

@media (max-width: 480px) {
  .aitd-categories-hero,
  .aitd-features-hero,
  .aitd-platforms-hero {
    padding: 1rem;
  }
  
  .aitd-categories-title,
  .aitd-features-title,
  .aitd-platforms-title {
    font-size: 1.5rem;
  }
  
  .aitd-categories-description,
  .aitd-features-description,
  .aitd-platforms-description {
    font-size: 0.8rem;
  }
  
  .aitd-categories-content,
  .aitd-features-content,
  .aitd-platforms-content {
    padding: 0.75rem 0;
  }
}

@media (min-width: 1025px) {
  .aitd-categories-hero,
  .aitd-features-hero,
  .aitd-platforms-hero {
    padding: 4rem 1rem;
  }
  
  .aitd-categories-title,
  .aitd-features-title,
  .aitd-platforms-title {
    font-size: 3rem;
  }
  
  .aitd-categories-description,
  .aitd-features-description,
  .aitd-platforms-description {
    font-size: 1.125rem;
  }
  
  .aitd-categories-content,
  .aitd-features-content,
  .aitd-platforms-content {
    padding: 3rem 0;
  }
}

/* Archive Pages Responsive Grid */
.aitd-archive {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.aitd-archive .aitd-category-grid,
.aitd-archive .aitd-platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Responsive breakpoints for archive grids */
@media (max-width: 1024px) {
  .aitd-archive .aitd-category-grid,
  .aitd-archive .aitd-platform-grid,
  .aitd-archive .aitd-key-features-grid,
  .aitd-container .aitd-category-grid,
  .aitd-container .aitd-platform-grid,
  .aitd-container .aitd-key-features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 768px) {
  .aitd-archive .aitd-category-grid,
  .aitd-archive .aitd-platform-grid,
  .aitd-archive .aitd-key-features-grid,
  .aitd-container .aitd-category-grid,
  .aitd-container .aitd-platform-grid,
  .aitd-container .aitd-key-features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .aitd-archive .aitd-category-grid-container,
  .aitd-archive .aitd-platform-grid-container,
  .aitd-archive .aitd-key-features-grid-container,
  .aitd-container .aitd-category-grid-container,
  .aitd-container .aitd-platform-grid-container,
  .aitd-container .aitd-key-features-grid-container {
    padding: 0 1rem;
  }
  
  .aitd-archive .aitd-category-grid-header {
    padding: 0 0.5rem;
  }
  
  .aitd-archive .aitd-category-grid-title {
    font-size: 1.75rem;
  }
  
  .aitd-archive .aitd-category-grid-subtitle {
    font-size: 0.875rem;
  }
}

@media (max-width: 640px) {
  .aitd-archive .aitd-category-grid,
  .aitd-archive .aitd-platform-grid,
  .aitd-archive .aitd-key-features-grid,
  .aitd-container .aitd-category-grid,
  .aitd-container .aitd-platform-grid,
  .aitd-container .aitd-key-features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin: 1rem 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .aitd-archive .aitd-category-grid-container,
  .aitd-archive .aitd-platform-grid-container,
  .aitd-archive .aitd-key-features-grid-container,
  .aitd-container .aitd-category-grid-container,
  .aitd-container .aitd-platform-grid-container,
  .aitd-container .aitd-key-features-grid-container {
    padding: 0 0.5rem;
  }
  
  .aitd-archive .aitd-category-grid-title {
    font-size: 1.5rem;
  }
  
  .aitd-archive .aitd-category-grid-subtitle {
    font-size: 0.8rem;
  }
  
  .aitd-archive .aitd-category-card {
    padding: 0.75rem;
  }
  
  .aitd-archive .aitd-category-card .aitd-category-title {
    font-size: 1rem;
  }
  
  .aitd-archive .aitd-category-count {
    font-size: 0.75rem;
  }
  
  .aitd-archive .aitd-category-tools-preview {
    gap: 0.25rem;
  }
  
  .aitd-archive .aitd-category-tool-icon {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .aitd-archive .aitd-category-grid,
  .aitd-archive .aitd-platform-grid,
  .aitd-archive .aitd-key-features-grid,
  .aitd-container .aitd-category-grid,
  .aitd-container .aitd-platform-grid,
  .aitd-container .aitd-key-features-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem;
    margin: 0.75rem 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .aitd-archive .aitd-category-grid-container,
  .aitd-archive .aitd-platform-grid-container,
  .aitd-archive .aitd-key-features-grid-container,
  .aitd-container .aitd-category-grid-container,
  .aitd-container .aitd-platform-grid-container,
  .aitd-container .aitd-key-features-grid-container {
    padding: 0 0.25rem;
  }
  
  .aitd-archive .aitd-category-grid-title {
    font-size: 1.25rem;
  }
  
  .aitd-archive .aitd-category-grid-subtitle {
    font-size: 0.75rem;
  }
  
  .aitd-archive .aitd-category-card {
    padding: 0.5rem;
  }
  
  .aitd-archive .aitd-category-card .aitd-category-title {
    font-size: 0.875rem;
  }
  
  .aitd-archive .aitd-category-count {
    font-size: 0.7rem;
  }
  
  .aitd-archive .aitd-category-tools-preview {
    gap: 0.2rem;
  }
  
  .aitd-archive .aitd-category-tool-icon,
  .aitd-archive .aitd-platform-tool-icon {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
  }
}

@media (min-width: 1025px) {
  .aitd-category-archive .aitd-tools-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem;
  }
}

@media (min-width: 1025px) {
  .aitd-tools-grid,
  .aitd-category-archive .aitd-tools-grid,
  .aitd-feature-archive .aitd-tools-grid,
  .aitd-platform-archive .aitd-tools-grid,
  .aitd-archive-container .aitd-tools-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
  }
}

/* REMOVED CONFLICTING CARD STYLES - Using standardized styles from earlier in the file */



.aitd-category-view-all,
.aitd-key-feature-view-all,
.aitd-platform-view-all {
  text-align: center;
  margin-top: 18px;
}

.aitd-view-all-categories-btn,
.aitd-view-all-features-btn,
.aitd-view-all-platforms-btn {
  display: inline-block;
  background: #6366f1;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 20px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  margin: 0 auto;
}
.aitd-view-all-categories-btn:hover,
.aitd-view-all-features-btn:hover,
.aitd-view-all-platforms-btn:hover {
  background: #4f46e5;
  color: #fff;
  text-decoration: none;
}

.aitd-key-features-view-all {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}
.aitd-view-all-features-btn {
  display: inline-block;
}

.aitd-tools-view-all {
  text-align: center;
  margin-top: 18px;
}
.aitd-view-all-tools-btn {
  display: inline-block;
}

/* PLATFORM GRID & CARD STYLES (matching category grid styling) */
.aitd-platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.aitd-platform-grid-container,
.aitd-key-features-grid-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
  margin-top: 32px;
}

/* Responsive breakpoints for platform grid */
@media (max-width: 1024px) {
  .aitd-platform-grid,
  .aitd-archive .aitd-platform-grid,
  .aitd-container .aitd-platform-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    padding: 0 1.5rem;
  }
}

@media (max-width: 768px) {
  .aitd-platform-grid,
  .aitd-archive .aitd-platform-grid,
  .aitd-container .aitd-platform-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0 1rem;
  }
}

@media (max-width: 640px) {
  .aitd-platform-grid,
  .aitd-archive .aitd-platform-grid,
  .aitd-container .aitd-platform-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 0 0.5rem;
  }
}

@media (max-width: 480px) {
  .aitd-platform-grid,
  .aitd-archive .aitd-platform-grid,
  .aitd-container .aitd-platform-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem;
    padding: 0 0.25rem;
  }
}

.aitd-platform-grid-header {
  text-align: center;
  margin-bottom: 2rem;
  padding: 0 2rem;
}

.aitd-platform-grid-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.5rem 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.aitd-platform-grid-subtitle {
  font-size: 1.125rem;
  color: #64748b;
  margin: 0;
  font-weight: 400;
}

/* Platform card styling */
.aitd-platform-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.aitd-platform-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.aitd-platform-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.06);
}

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

.aitd-platform-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 0.5rem 0;
  transition: color 0.3s ease;
}

.aitd-platform-card:hover .aitd-platform-title {
  color: #667eea;
}

.aitd-platform-count {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 1rem;
  font-weight: 500;
}

.aitd-platform-tools-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex: 1;
}

.aitd-platform-tool-icon-wrapper {
  position: relative;
  cursor: pointer;
}

.aitd-platform-tool-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
}

.aitd-platform-tool-icon-wrapper:hover .aitd-platform-tool-icon {
  transform: scale(1.1);
  border-color: #667eea;
}

.aitd-platform-view-all {
  color: #667eea;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.aitd-platform-card:hover .aitd-platform-view-all {
  opacity: 1;
}

/* Platform tooltip styling */
.aitd-platform-tool-icon-wrapper::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
  max-width: 200px;
  text-align: center;
}

.aitd-platform-tool-icon-wrapper::after {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
}

.aitd-platform-tool-icon-wrapper:hover::before,
.aitd-platform-tool-icon-wrapper.tooltip-visible::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-5px);
}

.aitd-platform-tool-icon-wrapper:hover::after,
.aitd-platform-tool-icon-wrapper.tooltip-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-5px);
}

.aitd-platform-view-all {
  margin-top: 12px;
  font-size: 0.95rem;
  color: #6366f1;
  font-weight: 500;
  text-align: center;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.aitd-platform-card:hover .aitd-platform-view-all {
  opacity: 1;
}

.aitd-platform-show-more {
  text-align: center;
  margin: 2rem 0;
  padding: 0 1rem;
}

.aitd-show-more-platforms-btn {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.aitd-show-more-platforms-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
  background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
}

.aitd-show-more-platforms-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.aitd-show-more-platforms-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.aitd-show-more-platforms-btn:disabled:hover {
  transform: none;
  box-shadow: none;
}

/* Platform grid responsive rules are now handled in the unified breakpoints above for consistency */

/* Unified styling for all archive grid cards */
.aitd-archive .aitd-category-card,
.aitd-archive .aitd-key-feature-card,
.aitd-archive .aitd-platform-card,
.aitd-container .aitd-category-card,
.aitd-container .aitd-key-feature-card,
.aitd-container .aitd-platform-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
  border: 2px solid transparent;
  background-clip: padding-box;
  overflow: hidden;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

/* Consistent hover effects for all cards */
.aitd-archive .aitd-category-card:hover,
.aitd-archive .aitd-key-feature-card:hover,
.aitd-archive .aitd-platform-card:hover,
.aitd-container .aitd-category-card:hover,
.aitd-container .aitd-key-feature-card:hover,
.aitd-container .aitd-platform-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  color: inherit;
}

/* Consistent border styling for all cards */
.aitd-archive .aitd-category-card::before,
.aitd-archive .aitd-key-feature-card::before,
.aitd-archive .aitd-platform-card::before,
.aitd-container .aitd-category-card::before,
.aitd-container .aitd-key-feature-card::before,
.aitd-container .aitd-platform-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.aitd-archive .aitd-category-card:hover::before,
.aitd-archive .aitd-key-feature-card:hover::before,
.aitd-archive .aitd-platform-card:hover::before,
.aitd-container .aitd-category-card:hover::before,
.aitd-container .aitd-key-feature-card:hover::before,
.aitd-container .aitd-platform-card:hover::before {
  transform: scaleX(1);
}

/* Consistent title styling */
.aitd-archive .aitd-category-card .aitd-category-title,
.aitd-archive .aitd-key-feature-card .aitd-key-feature-title,
.aitd-archive .aitd-platform-card .aitd-platform-title,
.aitd-container .aitd-category-card .aitd-category-title,
.aitd-container .aitd-key-feature-card .aitd-key-feature-title,
.aitd-container .aitd-platform-card .aitd-platform-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.aitd-archive .aitd-category-card:hover .aitd-category-title,
.aitd-archive .aitd-key-feature-card:hover .aitd-key-feature-title,
.aitd-archive .aitd-platform-card:hover .aitd-platform-title,
.aitd-container .aitd-category-card:hover .aitd-category-title,
.aitd-container .aitd-key-feature-card:hover .aitd-key-feature-title,
.aitd-container .aitd-platform-card:hover .aitd-platform-title {
  color: #667eea;
}

/* Consistent count styling */
.aitd-archive .aitd-category-count,
.aitd-archive .aitd-key-feature-count,
.aitd-archive .aitd-platform-count,
.aitd-container .aitd-category-count,
.aitd-container .aitd-key-feature-count,
.aitd-container .aitd-platform-count {
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

/* Consistent tools preview styling */
.aitd-archive .aitd-category-tools-preview,
.aitd-archive .aitd-key-feature-tools-preview,
.aitd-archive .aitd-platform-tools-preview,
.aitd-container .aitd-category-tools-preview,
.aitd-container .aitd-key-feature-tools-preview,
.aitd-container .aitd-platform-tools-preview {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Consistent tool icon wrapper styling */
.aitd-archive .aitd-category-tool-icon-wrapper,
.aitd-archive .aitd-key-feature-tool-icon-wrapper,
.aitd-archive .aitd-platform-tool-icon-wrapper,
.aitd-container .aitd-category-tool-icon-wrapper,
.aitd-container .aitd-key-feature-tool-icon-wrapper,
.aitd-container .aitd-platform-tool-icon-wrapper {
  position: relative;
  display: inline-block;
}

/* Consistent tool icon sizing */
.aitd-archive .aitd-category-tool-icon,
.aitd-archive .aitd-key-feature-tool-icon,
.aitd-archive .aitd-platform-tool-icon,
.aitd-container .aitd-category-tool-icon,
.aitd-container .aitd-key-feature-tool-icon,
.aitd-container .aitd-platform-tool-icon {
  width: 32px !important;
  height: 32px !important;
  border-radius: 6px;
  object-fit: cover;
  max-width: 32px !important;
  max-height: 32px !important;
}

/* Consistent tooltip styling for all cards */
.aitd-archive .aitd-category-tool-icon-wrapper::before,
.aitd-archive .aitd-key-feature-tool-icon-wrapper::before,
.aitd-archive .aitd-platform-tool-icon-wrapper::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  margin-bottom: 0.5rem;
  max-width: 200px;
  word-wrap: break-word;
  white-space: normal;
}

.aitd-archive .aitd-category-tool-icon-wrapper::after,
.aitd-archive .aitd-key-feature-tool-icon-wrapper::after,
.aitd-archive .aitd-platform-tool-icon-wrapper::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  margin-bottom: -5px;
}

/* Show tooltips on hover and touch */
.aitd-archive .aitd-category-tool-icon-wrapper:hover::before,
.aitd-archive .aitd-category-tool-icon-wrapper.tooltip-visible::before,
.aitd-archive .aitd-key-feature-tool-icon-wrapper:hover::before,
.aitd-archive .aitd-key-feature-tool-icon-wrapper.tooltip-visible::before,
.aitd-archive .aitd-platform-tool-icon-wrapper:hover::before,
.aitd-archive .aitd-platform-tool-icon-wrapper.tooltip-visible::before {
  opacity: 1;
  visibility: visible;
}

.aitd-archive .aitd-category-tool-icon-wrapper:hover::after,
.aitd-archive .aitd-category-tool-icon-wrapper.tooltip-visible::after,
.aitd-archive .aitd-key-feature-tool-icon-wrapper:hover::after,
.aitd-archive .aitd-key-feature-tool-icon-wrapper.tooltip-visible::after,
.aitd-archive .aitd-platform-tool-icon-wrapper:hover::after,
.aitd-archive .aitd-platform-tool-icon-wrapper.tooltip-visible::after {
  opacity: 1;
  visibility: visible;
}

/* Consistent view all styling */
.aitd-archive .aitd-category-view-all,
.aitd-archive .aitd-key-feature-view-all,
.aitd-archive .aitd-platform-view-all,
.aitd-container .aitd-category-view-all,
.aitd-container .aitd-key-feature-view-all,
.aitd-container .aitd-platform-view-all {
  color: #667eea;
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: auto;
  transition: color 0.3s ease;
}

.aitd-archive .aitd-category-card:hover .aitd-category-view-all,
.aitd-archive .aitd-key-feature-card:hover .aitd-key-feature-view-all,
.aitd-archive .aitd-platform-card:hover .aitd-platform-view-all,
.aitd-container .aitd-category-card:hover .aitd-category-view-all,
.aitd-container .aitd-key-feature-card:hover .aitd-key-feature-view-all,
.aitd-container .aitd-platform-card:hover .aitd-platform-view-all {
  color: #5a67d8;
}

/* Mobile-specific adjustments for consistent tooltips */
@media (max-width: 768px) {
  .aitd-archive .aitd-category-tool-icon-wrapper::before,
  .aitd-archive .aitd-key-feature-tool-icon-wrapper::before,
  .aitd-archive .aitd-platform-tool-icon-wrapper::before {
    font-size: 0.7rem;
    max-width: 150px;
    padding: 0.4rem;
  }
}

@media (max-width: 480px) {
  .aitd-archive .aitd-category-tool-icon-wrapper::before,
  .aitd-archive .aitd-key-feature-tool-icon-wrapper::before,
  .aitd-archive .aitd-platform-tool-icon-wrapper::before {
    font-size: 0.65rem;
    max-width: 120px;
    padding: 0.3rem;
  }
  
  /* Platform card responsive adjustments */
  .aitd-platform-card {
    padding: 0.75rem;
    min-height: 160px;
  }
  
  .aitd-platform-title {
    font-size: 1rem;
  }
  
  .aitd-platform-count {
    font-size: 0.8rem;
  }
  
  .aitd-platform-tool-icon {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
  }
  
  .aitd-platform-tools-preview {
    gap: 0.25rem;
  }
}

@media (max-width: 768px) {
  /* Platform card responsive adjustments */
  .aitd-platform-card {
    padding: 1rem;
    min-height: 180px;
  }
  
  .aitd-platform-title {
    font-size: 1.125rem;
  }
  
  .aitd-platform-tool-icon {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
  }
}

/* Claim Tool Button Styles */
.aitd-claim-tool-section {
  margin: 0;
}

.aitd-btn-claim {
  width: auto;
  height: auto;
  color: #fff;
  padding: 5px 10px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
  outline: none;
  overflow: hidden;
  border-radius: 5px;
  border: none;
  background-color: #3a86ff;
  margin: 0;
}

.aitd-btn-claim:hover {
  border-radius: 5px;
  padding-right: 24px;
  padding-left: 8px;
}

.aitd-btn-claim:hover:after {
  opacity: 1;
  right: 10px;
}

.aitd-btn-claim:hover span {
  transform: translateX(-8px);
}

.aitd-btn-claim:after {
  content: "\00BB";
  position: absolute;
  opacity: 0;
  font-size: 20px;
  line-height: 40px;
  top: 0;
  right: -20px;
  transition: 0.4s;
}

.aitd-btn-claim span {
  transition: transform 0.4s ease;
  display: inline-block;
}

.aitd-btn-small {
  width: auto;
  height: auto;
  font-size: 14px;
}

/* Responsive adjustments for claim button */
@media (max-width: 768px) {
  .aitd-btn-claim {
    width: auto;
    height: auto;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .aitd-btn-claim {
    width: auto;
    height: auto;
    font-size: 12px;
  }
}



/* Ensure proper spacing for buttons with icons */
.aitd-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Founder Label Styling - Non-clickable */
.aitd-founder-label {
  display: inline-block;
  background: #f3f4f6;
  color: #374151;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  margin: 0.125rem;
  cursor: default;
  user-select: none;
}

/* Tool Card Margin Reduction - 60% reduction for all elements inside tool cards */
.aitd-tool-card .aitd-tool-header {
  margin-bottom: 0.2rem; /* Reduced from 0.5rem */
}

.aitd-tool-card .aitd-tool-title {
  margin: 0 0 0.1rem 0; /* Reduced from 0 0 0.25rem 0 */
}

.aitd-tool-card .aitd-tool-rating-title {
  margin-top: 0.2rem; /* Reduced from 0.5rem */
}

.aitd-tool-card .aitd-tool-category {
  margin-bottom: 0.4rem; /* Reduced from 1rem */
}

.aitd-tool-card .aitd-tool-meta-row {
  margin-bottom: 0.2rem; /* Reduced from 0.5rem */
}

.aitd-tool-card .aitd-tool-description {
  margin: 0.2rem 0; /* Reduced from 0.5rem 0 */
}

.aitd-tool-card .aitd-tool-rating {
  margin-bottom: 0.6rem; /* Reduced from 1.5rem */
}

.aitd-tool-card .aitd-tool-footer {
  padding-top: 0.2rem; /* Reduced from 0.5rem */
}

/* Single tool template specific margin reductions */
.aitd-single-tool-sidebar-card .aitd-meta-item {
  margin-bottom: 0.4rem; /* Reduced from 1rem */
}

.aitd-single-tool-sidebar-card .aitd-meta-item:last-child {
  margin-bottom: 0; /* Keep as is */
}

.aitd-single-tool-sidebar-card .aitd-meta-labels {
  margin-top: 0.2rem; /* Reduced from 0.5rem */
}

/* Related tools section - Match main directory margins exactly */
.aitd-related-tools .aitd-tool-card .aitd-tool-header {
  margin-bottom: 0.2rem; /* Match main directory */
}

.aitd-related-tools .aitd-tool-card .aitd-tool-title {
  margin: 0 0 0.1rem 0; /* Match main directory */
}

.aitd-related-tools .aitd-tool-card .aitd-tool-rating-title {
  margin-top: 0.2rem; /* Match main directory */
}

.aitd-related-tools .aitd-tool-card .aitd-tool-category {
  margin-bottom: 0.4rem; /* Match main directory */
}

.aitd-related-tools .aitd-tool-card .aitd-tool-meta-row {
  margin-bottom: 0.2rem; /* Match main directory */
}

.aitd-related-tools .aitd-tool-card .aitd-tool-description {
  margin: 0.2rem 0; /* Match main directory */
}

.aitd-related-tools .aitd-tool-card .aitd-tool-rating {
  margin-bottom: 0.6rem; /* Match main directory */
}

.aitd-related-tools .aitd-tool-card .aitd-tool-footer {
  padding-top: 0.2rem; /* Match main directory */
}

/* Featured tool cards margin reductions */
.aitd-featured-card .aitd-featured-header {
  margin-bottom: 0.4rem; /* Reduced from 1rem */
}

.aitd-featured-card .aitd-featured-description {
  margin: 0.2rem 0; /* Reduced from 0.5rem 0 */
}

.aitd-featured-card .aitd-featured-rating {
  margin-bottom: 0.6rem; /* Reduced from 1.5rem */
}

.aitd-featured-card .aitd-featured-actions {
  margin-top: 0.4rem; /* Reduced from 1rem */
}

/* Category archive tool cards - Match main directory margins exactly */
.aitd-category-archive .aitd-tool-card .aitd-tool-header {
  margin-bottom: 0.2rem; /* Match main directory */
}

.aitd-category-archive .aitd-tool-card .aitd-tool-title {
  margin: 0 0 0.1rem 0; /* Match main directory */
}

.aitd-category-archive .aitd-tool-card .aitd-tool-rating-title {
  margin-top: 0.2rem; /* Match main directory */
}

.aitd-category-archive .aitd-tool-card .aitd-tool-category {
  margin-bottom: 0.4rem; /* Match main directory */
}

.aitd-category-archive .aitd-tool-card .aitd-tool-meta-row {
  margin-bottom: 0.2rem; /* Match main directory */
}

.aitd-category-archive .aitd-tool-card .aitd-tool-description {
  margin: 0.2rem 0; /* Match main directory */
}

.aitd-category-archive .aitd-tool-card .aitd-tool-rating {
  margin-bottom: 0.6rem; /* Match main directory */
}

.aitd-category-archive .aitd-tool-card .aitd-tool-footer {
  padding-top: 0.2rem; /* Match main directory */
}

/* Feature archive tool cards - Match main directory margins exactly */
.aitd-feature-archive .aitd-tool-card .aitd-tool-header {
  margin-bottom: 0.2rem; /* Match main directory */
}

.aitd-feature-archive .aitd-tool-card .aitd-tool-title {
  margin: 0 0 0.1rem 0; /* Match main directory */
}

.aitd-feature-archive .aitd-tool-card .aitd-tool-rating-title {
  margin-top: 0.2rem; /* Match main directory */
}

.aitd-feature-archive .aitd-tool-card .aitd-tool-category {
  margin-bottom: 0.4rem; /* Match main directory */
}

.aitd-feature-archive .aitd-tool-card .aitd-tool-meta-row {
  margin-bottom: 0.2rem; /* Match main directory */
}

.aitd-feature-archive .aitd-tool-card .aitd-tool-description {
  margin: 0.2rem 0; /* Match main directory */
}

.aitd-feature-archive .aitd-tool-card .aitd-tool-rating {
  margin-bottom: 0.6rem; /* Match main directory */
}

.aitd-feature-archive .aitd-tool-card .aitd-tool-footer {
  padding-top: 0.2rem; /* Match main directory */
}

/* Platform archive tool cards - Match main directory margins exactly */
.aitd-platform-archive .aitd-tool-card .aitd-tool-header {
  margin-bottom: 0.2rem; /* Match main directory */
}

.aitd-platform-archive .aitd-tool-card .aitd-tool-title {
  margin: 0 0 0.1rem 0; /* Match main directory */
}

.aitd-platform-archive .aitd-tool-card .aitd-tool-rating-title {
  margin-top: 0.2rem; /* Match main directory */
}

.aitd-platform-archive .aitd-tool-card .aitd-tool-category {
  margin-bottom: 0.4rem; /* Match main directory */
}

.aitd-platform-archive .aitd-tool-card .aitd-tool-meta-row {
  margin-bottom: 0.2rem; /* Match main directory */
}

.aitd-platform-archive .aitd-tool-card .aitd-tool-description {
  margin: 0.2rem 0; /* Match main directory */
}

.aitd-platform-archive .aitd-tool-card .aitd-tool-rating {
  margin-bottom: 0.6rem; /* Match main directory */
}

.aitd-platform-archive .aitd-tool-card .aitd-tool-footer {
  padding-top: 0.2rem; /* Match main directory */
}

/* Ensure all tool cards have auto height - Remove any equal height constraints */
.aitd-tool-card,
.aitd-related-tools .aitd-tool-card,
.aitd-category-archive .aitd-tool-card,
.aitd-feature-archive .aitd-tool-card,
.aitd-platform-archive .aitd-tool-card {
  height: auto !important;
  min-height: auto !important;
  max-height: none !important;
  align-self: start !important;
}

/* Ensure tool grids don't enforce equal heights */
.aitd-tools-grid,
.aitd-related-tools .aitd-tools-grid,
.aitd-category-archive .aitd-tools-grid,
.aitd-feature-archive .aitd-tools-grid,
.aitd-platform-archive .aitd-tools-grid {
  align-items: start !important;
  grid-template-rows: none !important;
}
