/*
Theme Name: AI Tools Directory
Theme URI: https://yoursite.com
Description: A modern, clean AI tools directory theme inspired by AIxploria.com. Features a comprehensive design system with subtle gradients, glassmorphism effects, and responsive layouts.
Author: Your Name
Author URI: https://yoursite.com
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ai-tools-directory
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, blog, portfolio, business
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* AI Tools Directory Design System - Inspired by AIxploria */

:root {
  /* Core Colors - AIxploria Inspired */
  --background: #ffffff;
  --background-soft: #fafafa;
  --background-subtle: #f5f5f5;
  
  /* Card System */
  --card: #ffffff;
  --card-foreground: #334155;
  --card-hover: #f8fafc;
  
  /* Brand Colors - Soft Tech Palette */
  --primary: #0ea5e9;
  --primary-foreground: #ffffff;
  --primary-soft: #bae6fd;
  --primary-pale: #f0f9ff;
  
  /* Tech Accent Colors */
  --accent-teal: #ccfbf1;
  --accent-blue: #dbeafe;
  
  /* Interactive Elements */
  --secondary: #f1f5f9;
  --secondary-foreground: #334155;
  
  --accent: #f59e0b;
  --accent-foreground: #ffffff;
  
  /* Status Colors */
  --success: #10b981;
  --success-foreground: #ffffff;
  
  --warning: #f59e0b;
  --warning-foreground: #ffffff;
  
  --destructive: #ef4444;
  --destructive-foreground: #ffffff;
  
  /* Neutral Grays */
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  
  --border: #e2e8f0;
  --input: #e2e8f0;
  --ring: #3b82f6;
  
  /* Gradients - Soft & Airy */
  --gradient-primary: linear-gradient(135deg, #0ea5e9, #3b82f6);
  --gradient-hero: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  --gradient-section: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(240, 249, 255, 0.1) 100%);
  
  /* Shadows - Ultra Soft */
  --shadow-soft: 0 1px 3px rgba(148, 163, 184, 0.08);
  --shadow-glass: 0 8px 32px rgba(14, 165, 233, 0.1);
  --shadow-float: 0 4px 16px rgba(148, 163, 184, 0.12);
  --shadow-subtle: 0 2px 8px rgba(148, 163, 184, 0.06);
  
  /* Animations */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);

  --radius: 0.75rem;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--background);
  color: var(--card-foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Modern Background System */
.modern-bg {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  overflow: hidden;
}

.modern-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 25% 25%, rgba(240, 249, 255, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(204, 251, 241, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(219, 234, 254, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.modern-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml,<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="soft-grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="%23e2e8f0" stroke-width="0.3" opacity="0.2"/></pattern></defs><rect width="100%" height="100%" fill="url(%23soft-grid)"/></svg>');
  opacity: 0.3;
  pointer-events: none;
}

/* Glassmorphism Effects */
.glass-panel {
  background: var(--gradient-glass);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-glass);
}

.glass-header {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(240, 249, 255, 0.4) 100%);
  backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Container and Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

/* Header Styles */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  padding: 0 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.125rem;
}

.logo-text h1 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.logo-text p {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin: 0;
}

/* Navigation */
.main-nav {
  display: none;
  gap: 2rem;
}

@media (min-width: 768px) {
  .main-nav {
    display: flex;
  }
}

.main-nav a {
  color: var(--card-foreground);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-fast);
}

.main-nav a:hover {
  color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition-fast);
  cursor: pointer;
  border: none;
  font-size: 0.875rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background: #0284c7;
}

.btn-outline {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--card-foreground);
}

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

.btn-ghost {
  background: transparent;
  color: var(--card-foreground);
}

.btn-ghost:hover {
  background: var(--secondary);
}

/* Hero Section */
.hero-section {
  padding: 4rem 0;
  text-align: center;
  position: relative;
  z-index: 10;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: var(--primary-pale);
  color: var(--primary);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--card-foreground), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4rem;
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Search Bar */
.search-container {
  max-width: 500px;
  margin: 0 auto 3rem;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  text-align: center;
  padding: 1rem;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}

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

/* Tool Cards */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.tool-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition-smooth);
  position: relative;
}

.tool-card:hover {
  box-shadow: var(--shadow-float);
  border-color: rgba(14, 165, 233, 0.2);
  transform: translateY(-2px);
}

.tool-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.tool-logo {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--primary);
}

.tool-info h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.tool-description {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  line-height: 1.5;
}

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

.tool-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.tool-badge-free {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.tool-badge-premium {
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.tool-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vote-button {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.vote-button:hover {
  background: var(--secondary);
}

/* Section Styling */
.section {
  padding: 4rem 0;
  position: relative;
  z-index: 10;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

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

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

/* Categories Grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.category-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: var(--transition-smooth);
  text-decoration: none;
  color: inherit;
}

.category-card:hover {
  box-shadow: var(--shadow-float);
  transform: translateY(-2px);
  border-color: rgba(14, 165, 233, 0.2);
}

.category-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  background: var(--primary-pale);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.category-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

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

/* Footer */
.site-footer {
  background: var(--background-soft);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

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

.footer-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-section ul li a:hover {
  color: var(--primary);
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .tools-grid {
    grid-template-columns: 1fr;
  }
}

/* Animations */
@keyframes float-gentle {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

.floating-shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.floating-shapes::before {
  content: '';
  position: absolute;
  top: 20%;
  right: 10%;
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, rgba(186, 230, 253, 0.1), rgba(204, 251, 241, 0.05));
  border-radius: 50%;
  filter: blur(40px);
  animation: float-gentle 8s ease-in-out infinite;
}

.floating-shapes::after {
  content: '';
  position: absolute;
  bottom: 30%;
  left: 15%;
  width: 150px;
  height: 150px;
  background: linear-gradient(45deg, rgba(219, 234, 254, 0.08), rgba(240, 249, 255, 0.04));
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  filter: blur(30px);
  animation: float-gentle 10s ease-in-out infinite reverse;
}

/* WordPress Specific */
.alignleft { float: left; margin-right: 1rem; }
.alignright { float: right; margin-left: 1rem; }
.aligncenter { display: block; margin: 0 auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.875rem; color: var(--muted-foreground); }
.sticky { /* Sticky post styles */ }
.bypostauthor { /* Post author styles */ }