/* static/css/ai-directory.css */

:root {
    /* Colors */
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    --secondary: #0ea5e9;
    --accent: #6366f1;
    
    /* Backgrounds */
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-gray: #f1f5f9;
    --bg-blue-light: #eff6ff;
    
    /* Text */
    --text-dark: #0f172a;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    /* Borders */
    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;
    --border-blue: #bfdbfe;
    
    /* Status */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    /* Gradients */
    --gradient-blue: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    --gradient-purple: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-blue: 0 10px 40px rgba(37, 99, 235, 0.15);
    
    /* Category Colors */
    --cat-chatbot: #6366f1;
    --cat-image: #ec4899;
    --cat-video: #f59e0b;
    --cat-audio: #8b5cf6;
    --cat-writing: #10b981;
    --cat-code: #3b82f6;
    --cat-business: #64748b;
    --cat-research: #06b6d4;
    --cat-design: #f43f5e;
    --cat-education: #14b8a6;
    --cat-marketing: #f97316;
    --cat-data: #0891b2;
    --cat-automation: #eab308;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==================== NAVBAR ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu a {
    padding: 10px 18px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
    background: var(--bg-blue-light);
}

.nav-donate {
    background: var(--gradient-blue) !important;
    color: white !important;
}

.nav-donate:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-blue);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    padding: 20px;
    flex-direction: column;
    gap: 10px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

.mobile-menu a {
    padding: 14px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    border-radius: 10px;
    transition: background 0.3s ease;
}

.mobile-menu a:hover,
.mobile-menu a.active {
    background: var(--bg-blue-light);
    color: var(--primary);
}

/* ==================== HERO ==================== */
.hero {
    position: relative;
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 24px 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--bg-blue-light) 0%, var(--bg-white) 100%);
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 24px;
    border: 1px solid var(--border-blue);
    box-shadow: var(--shadow-md);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.gradient-text {
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Search */
.search-container {
    display: flex;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto 40px;
}

.search-box {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 16px 24px;
    border-radius: 16px;
    border: 2px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: var(--shadow-blue);
}

.search-box i {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.search-box input::placeholder {
    color: var(--text-light);
}

.search-clear {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-clear.visible {
    opacity: 1;
}

.voice-search {
    width: 60px;
    height: 60px;
    background: var(--gradient-blue);
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-blue);
}

.voice-search:hover {
    transform: scale(1.05);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ==================== FILTERS ==================== */
.filters-section {
    background: white;
    padding: 24px 0;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 70px;
    z-index: 100;
}

.filters-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-group select {
    padding: 10px 16px;
    border: 2px solid var(--border-light);
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    background: white;
    cursor: pointer;
    min-width: 180px;
    transition: border-color 0.3s ease;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.view-toggle {
    display: flex;
    gap: 4px;
    margin-left: auto;
    background: var(--bg-gray);
    padding: 4px;
    border-radius: 10px;
}

.view-btn {
    padding: 10px 14px;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.view-btn.active {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

#resultsCount {
    font-weight: 600;
    color: var(--text-secondary);
}

.reset-filters {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.reset-filters:hover {
    text-decoration: underline;
}

/* Active Filters */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.active-filter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-blue-light);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.active-filter button {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 0.9rem;
}

/* ==================== CATEGORY TABS ==================== */
.category-tabs-section {
    background: white;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
    overflow-x: auto;
}

.category-tabs {
    display: flex;
    gap: 8px;
    min-width: max-content;
}

.category-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-gray);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.category-tab:hover {
    background: var(--bg-blue-light);
    color: var(--primary);
}

.category-tab.active {
    background: var(--primary);
    color: white;
}

.category-tab i {
    font-size: 1rem;
}

/* ==================== FEATURED SECTION ==================== */
.featured-section {
    padding: 60px 0;
    background: var(--bg-gray);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.section-header h2 i {
    color: var(--warning);
}

.section-header p {
    color: var(--text-muted);
    margin-top: 8px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ==================== TOOLS GRID ==================== */
.tools-section {
    padding: 60px 0;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.tools-grid.list-view {
    grid-template-columns: 1fr;
}

/* Tool Card */
.tool-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    position: relative;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--border-blue);
}

.tool-card-header {
    padding: 24px 24px 0;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.tool-logo {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    object-fit: cover;
    background: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.tool-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 14px;
}

.tool-info {
    flex: 1;
    min-width: 0;
}

.tool-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.verified-badge {
    color: var(--primary);
    font-size: 0.9rem;
}

.tool-tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tool-card-body {
    padding: 16px 24px;
}

.tool-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
}

.tool-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tool-tag {
    padding: 4px 10px;
    background: var(--bg-gray);
    color: var(--text-muted);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.tool-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.tool-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.tool-category.chatbot { background: rgba(99, 102, 241, 0.1); color: var(--cat-chatbot); }
.tool-category.image { background: rgba(236, 72, 153, 0.1); color: var(--cat-image); }
.tool-category.video { background: rgba(245, 158, 11, 0.1); color: var(--cat-video); }
.tool-category.audio { background: rgba(139, 92, 246, 0.1); color: var(--cat-audio); }
.tool-category.writing { background: rgba(16, 185, 129, 0.1); color: var(--cat-writing); }
.tool-category.code { background: rgba(59, 130, 246, 0.1); color: var(--cat-code); }
.tool-category.business { background: rgba(100, 116, 139, 0.1); color: var(--cat-business); }
.tool-category.research { background: rgba(6, 182, 212, 0.1); color: var(--cat-research); }
.tool-category.design { background: rgba(244, 63, 94, 0.1); color: var(--cat-design); }

.tool-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    color: var(--warning);
}

.tool-card-footer {
    padding: 16px 24px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border-light);
}

.pricing-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
}

.pricing-badge.free {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.pricing-badge.freemium {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.pricing-badge.paid {
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent);
}

.pricing-badge.open-source {
    background: rgba(6, 182, 212, 0.1);
    color: #0891b2;
}

.tool-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border-light);
    background: white;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--bg-blue-light);
}

.action-btn.favorite.active {
    background: var(--danger);
    border-color: var(--danger);
    color: white;
}

.visit-btn {
    padding: 10px 20px;
    background: var(--gradient-blue);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.visit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-blue);
}

/* Featured Badge */
.featured-badge-card {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--gradient-blue);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* New Badge */
.new-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--success);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* List View */
.tools-grid.list-view .tool-card {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.tools-grid.list-view .tool-card-header {
    padding: 20px;
    flex-shrink: 0;
}

.tools-grid.list-view .tool-card-body {
    flex: 1;
    padding: 20px;
    border-left: 1px solid var(--border-light);
}

.tools-grid.list-view .tool-card-footer {
    padding: 20px;
    border-top: none;
    border-left: 1px solid var(--border-light);
    flex-shrink: 0;
}

.tools-grid.list-view .tool-description {
    -webkit-line-clamp: 1;
}

/* Loading Skeleton */
.loading-skeleton {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.skeleton-card {
    height: 320px;
    background: linear-gradient(90deg, var(--bg-gray) 25%, var(--bg-light) 50%, var(--bg-gray) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 20px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* No Results */
.no-results {
    display: none;
    text-align: center;
    padding: 80px 20px;
}

.no-results.visible {
    display: block;
}

.no-results-icon {
    width: 100px;
    height: 100px;
    background: var(--bg-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.no-results-icon i {
    font-size: 2.5rem;
    color: var(--text-light);
}

.no-results h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.no-results p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.no-results button {
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

/* Load More */
.load-more-container {
    text-align: center;
    margin-top: 48px;
}

.load-more-btn {
    padding: 16px 40px;
    background: white;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: var(--primary);
    color: white;
}

/* ==================== CATEGORIES OVERVIEW ==================== */
.categories-overview {
    padding: 80px 0;
    background: white;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.category-card {
    padding: 28px;
    background: var(--bg-light);
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.category-card:hover {
    background: white;
    border-color: var(--border-blue);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: white;
    font-size: 1.5rem;
}

.category-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.category-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.category-count {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

/* ==================== COMPARISON TABLE ==================== */
.comparison-section {
    padding: 80px 0;
    background: var(--bg-gray);
}

.comparison-table-wrapper {
    overflow-x: auto;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.comparison-table th {
    background: var(--bg-light);
    font-weight: 700;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-table tr:hover {
    background: var(--bg-blue-light);
}

.tool-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tool-cell img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: contain;
}

.tool-cell span {
    font-weight: 600;
    color: var(--text-dark);
}

.badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge.chatbot { background: rgba(99, 102, 241, 0.1); color: var(--cat-chatbot); }
.badge.image { background: rgba(236, 72, 153, 0.1); color: var(--cat-image); }
.badge.code { background: rgba(59, 130, 246, 0.1); color: var(--cat-code); }

.text-success { color: var(--success); }
.text-danger { color: var(--danger); }

.rating {
    font-weight: 600;
}

/* ==================== NEWSLETTER ==================== */
.newsletter-section {
    padding: 60px 0;
}

.newsletter-card {
    background: var(--gradient-blue);
    border-radius: 24px;
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.newsletter-content h2 {
    font-size: 1.75rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.newsletter-content p {
    color: rgba(255, 255, 255, 0.8);
}

.newsletter-form {
    display: flex;
    gap: 12px;
    flex: 1;
    max-width: 450px;
}

.newsletter-form input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
}

.newsletter-form button {
    padding: 16px 28px;
    background: white;
    color: var(--primary);
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ==================== SUBMIT SECTION ==================== */
.submit-section {
    padding: 60px 0;
}

.submit-card {
    background: white;
    border-radius: 24px;
    padding: 60px;
    text-align: center;
    border: 2px dashed var(--border-medium);
}

.submit-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-blue-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.submit-icon i {
    font-size: 2.5rem;
    color: var(--primary);
}

.submit-card h2 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.submit-card p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.submit-btn {
    padding: 16px 32px;
    background: var(--gradient-blue);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-blue);
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-links h4 {
    font-size: 1rem;
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom i {
    color: var(--danger);
}

/* ==================== MODALS ==================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 24px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 1.75rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--text-dark);
}

.modal-content h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dark);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.submit-form-btn {
    width: 100%;
    padding: 16px;
    background: var(--gradient-blue);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.submit-form-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-blue);
}

/* Tool Detail Modal */
.tool-detail-modal {
    max-width: 700px;
}

.tool-detail-header {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
}

.tool-detail-logo {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    object-fit: contain;
    background: var(--bg-gray);
}

.tool-detail-info h2 {
    font-size: 1.75rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tool-detail-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.tool-detail-body {
    margin-bottom: 24px;
}

.tool-detail-body h4 {
    margin-bottom: 12px;
    color: var(--text-dark);
}

.tool-detail-body p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.tool-features {
    list-style: none;
    margin: 16px 0;
}

.tool-features li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

.tool-features li i {
    color: var(--success);
}

.tool-detail-footer {
    display: flex;
    gap: 12px;
}

.tool-detail-footer .visit-btn {
    flex: 1;
    justify-content: center;
    padding: 16px;
}

/* ==================== BACK TO TOP ==================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-blue);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .mobile-menu.active {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    .voice-search {
        width: 100%;
        height: 50px;
    }
    
    .filters-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group select {
        min-width: 100%;
    }
    
    .view-toggle {
        margin-left: 0;
        justify-content: center;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .tools-grid.list-view .tool-card {
        flex-direction: column;
    }
    
    .newsletter-card {
        padding: 32px;
        text-align: center;
    }
    
    .newsletter-form {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .comparison-table {
        font-size: 0.85rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.85rem;
    }
    
    .category-tabs {
        gap: 6px;
    }
    
    .category-tab {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
    
    .category-tab span {
        display: none;
    }
    
    .tool-card-header {
        flex-direction: column;
        text-align: center;
    }
    
    .tool-meta {
        justify-content: center;
    }
    
    .tool-card-footer {
        flex-direction: column;
        gap: 16px;
    }
    
    .submit-card {
        padding: 40px 24px;
    }
}