/* ========================================
   AI TOOLS PAGE - STANDALONE CSS
   ========================================
   Complete CSS for search-all-ai-tools.php
   Can be placed in any folder
   ======================================== */

/* ========================================
   1. RESET AND BASE STYLES
   ======================================== */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #1C1F4A;
    --electric-purple: #7C3AED;
    --soft-gray: #E5E7EB;
    --white: #FFFFFF;
    --dark-bg: #0F1117;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-primary: #FFFFFF;
    --text-secondary: #A0AEC0;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #7C3AED 0%, #4F46E5 100%);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transform: translateZ(0);
}

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

/* ========================================
   2. NAVIGATION
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 17, 23, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(15, 17, 23, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    display: flex;
    gap: 5px;
}

.logo-text {
    color: var(--white);
}

.logo-studio {
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--electric-purple);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: all 0.3s ease;
}

/* ========================================
   3. BUTTONS
   ======================================== */
.btn-primary,
.btn-secondary {
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background: var(--gradient-2);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--electric-purple);
    border: 2px solid var(--electric-purple);
}

.btn-secondary:hover {
    background: var(--electric-purple);
    color: var(--white);
}

/* ========================================
   4. PAGE-SPECIFIC STYLES
   ======================================== */
.ai-tools-page {
    min-height: 100vh;
    padding-top: 80px;
}

/* ========================================
   5. HERO SECTION
   ======================================== */
.ai-hero-section {
    background: linear-gradient(180deg, var(--dark-bg) 0%, rgba(28, 31, 74, 0.3) 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.ai-hero-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: var(--electric-purple);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
    top: -200px;
    right: -100px;
    animation: float 20s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-30px); }
}

.ai-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.ai-hero-badge {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(124, 58, 237, 0.2);
    color: var(--electric-purple);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 30px;
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.ai-hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ai-hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
}

.ai-stats-row {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-stat-box {
    text-align: center;
}

.ai-stat-number {
    font-size: 48px;
    font-weight: 800;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.ai-stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   6. MAIN DIRECTORY SECTION
   ======================================== */
.ai-directory-main {
    padding: 60px 0 100px;
}

.back-to-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.back-to-home:hover {
    color: var(--electric-purple);
    transform: translateX(-5px);
}

/* ========================================
   7. SEARCH & FILTER SECTION
   ======================================== */
.ai-search-wrapper {
    margin-bottom: 50px;
}

.search-bar-container {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    margin-bottom: 30px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 20px;
    color: var(--text-secondary);
    pointer-events: none;
}

.ai-search-input {
    width: 100%;
    padding: 16px 50px 16px 55px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--white);
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.ai-search-input:focus {
    outline: none;
    border-color: var(--electric-purple);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.ai-search-input::placeholder {
    color: var(--text-secondary);
}

.clear-search-btn {
    position: absolute;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.clear-search-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.filter-wrapper {
    min-width: 220px;
}

.category-filter {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--white);
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23A0AEC0' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    padding-right: 45px;
}

.category-filter:focus {
    outline: none;
    border-color: var(--electric-purple);
    background-color: rgba(255, 255, 255, 0.08);
}

.category-filter option {
    background: #1a1d2e;
    color: var(--white);
    padding: 10px;
}

/* ========================================
   8. CATEGORY CHIPS
   ======================================== */
.category-chips {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.category-chip {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-chip:hover,
.category-chip.active {
    background: var(--electric-purple);
    border-color: var(--electric-purple);
    color: var(--white);
    transform: translateY(-2px);
}

/* ========================================
   9. RESULTS HEADER
   ======================================== */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.results-count {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* ========================================
   10. AI TOOLS GRID
   ======================================== */
.ai-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    min-height: 400px;
}

.ai-tool-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.ai-tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.ai-tool-card:hover {
    transform: translateY(-8px);
    border-color: var(--electric-purple);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.2);
}

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

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

.tool-category-badge {
    background: rgba(124, 58, 237, 0.2);
    color: var(--electric-purple);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tool-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--white);
}

.tool-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
    font-size: 15px;
}

.tool-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tool-tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.tool-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--electric-purple);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    padding: 12px 20px;
    background: rgba(124, 58, 237, 0.1);
    border-radius: 10px;
    text-align: center;
    justify-content: center;
}

.tool-link:hover {
    background: var(--electric-purple);
    color: var(--white);
    transform: translateX(5px);
}

/* ========================================
   11. LOADING & NO RESULTS STATES
   ======================================== */
.loading-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: var(--text-secondary);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(124, 58, 237, 0.2);
    border-top-color: var(--electric-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
}

.no-results-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-results h3 {
    font-size: 28px;
    margin-bottom: 12px;
    color: var(--white);
}

.no-results p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* ========================================
   12. FOOTER
   ======================================== */
.footer-minimal {
    background: rgba(15, 17, 23, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 0;
    text-align: center;
}

.footer-minimal p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.footer-minimal a {
    color: var(--electric-purple);
    text-decoration: none;
    font-weight: 600;
}

.footer-minimal a:hover {
    text-decoration: underline;
}

/* ========================================
   13. RESPONSIVE DESIGN - TABLET
   ======================================== */
@media (max-width: 968px) {
    .ai-tools-grid {
        grid-template-columns: 1fr;
    }
    
    .search-bar-container {
        grid-template-columns: 1fr;
    }
    
    .filter-wrapper {
        min-width: auto;
    }
}

@media (max-width: 768px) {
    .ai-hero-title {
        font-size: 36px;
    }
    
    .ai-hero-subtitle {
        font-size: 18px;
    }
    
    .ai-stats-row {
        flex-direction: column;
        gap: 30px;
    }
    
    .ai-stat-number {
        font-size: 36px;
    }
    
    .category-chips {
        gap: 8px;
    }
    
    .category-chip {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 300px;
        height: calc(100vh - 80px);
        background: rgba(15, 17, 23, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 40px;
        gap: 30px;
        transition: right 0.3s ease;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }
}

/* ========================================
   14. RESPONSIVE DESIGN - MOBILE
   ======================================== */
@media (max-width: 640px) {
    .ai-search-input {
        padding: 14px 45px 14px 50px;
        font-size: 15px;
    }
    
    .ai-tools-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .ai-tool-card {
        padding: 25px;
    }
    
    .tool-name {
        font-size: 20px;
    }
    
    .ai-hero-title {
        font-size: 28px;
    }
    
    .ai-hero-subtitle {
        font-size: 16px;
    }
    
    .ai-hero-badge {
        font-size: 12px;
        padding: 8px 18px;
    }
    
    .btn-primary {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .container {
        padding: 0 15px;
    }
}



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

:root {
    --primary-blue: #1C1F4A;
    --electric-purple: #7C3AED;
    --soft-gray: #E5E7EB;
    --white: #FFFFFF;
    --dark-bg: #0F1117;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-primary: #FFFFFF;
    --text-secondary: #A0AEC0;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #7C3AED 0%, #4F46E5 100%);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ========================================
   2. SECTION BASE STYLES
   ======================================== */
section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(124, 58, 237, 0.2);
    color: var(--electric-purple);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--white);
}

.section-description {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ========================================
   3. AI DIRECTORY SECTION
   ======================================== */
.ai-directory {
    background: linear-gradient(180deg, var(--dark-bg) 0%, rgba(28, 31, 74, 0.2) 100%);
    position: relative;
    padding: 100px 0;
}

/* ========================================
   4. QUICK SEARCH FORM
   ======================================== */
.ai-directory-search-container {
    max-width: 700px;
    margin: 50px auto;
}

.ai-directory-form {
    margin-bottom: 20px;
}

.ai-search-form-wrapper {
    position: relative;
    display: flex;
    gap: 10px;
}

.ai-search-input-container {
    position: relative;
    flex: 1;
}

.ai-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

.ai-quick-search-input {
    width: 100%;
    padding: 18px 20px 18px 55px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--white);
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.ai-quick-search-input:focus {
    outline: none;
    border-color: var(--electric-purple);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.ai-quick-search-input::placeholder {
    color: var(--text-secondary);
}

/* ========================================
   5. BUTTONS
   ======================================== */
.btn-primary,
.btn-secondary {
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background: var(--gradient-2);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--electric-purple);
}

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

.btn-large {
    padding: 16px 36px;
    font-size: 18px;
}

.ai-search-button {
    padding: 18px 30px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-2);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ai-search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.4);
}

/* ========================================
   6. INFO TEXT & LINKS
   ======================================== */
.ai-info-section {
    text-align: center;
}

.ai-info-text {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 12px;
}

.ai-browse-link {
    color: var(--electric-purple);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.ai-browse-link:hover {
    text-decoration: underline;
}

/* ========================================
   7. RESPONSIVE DESIGN - TABLET
   ======================================== */
@media (max-width: 968px) {
    section {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 40px;
    }
    
    .section-description {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .section-description {
        font-size: 16px;
    }
    
    .section-tag {
        font-size: 12px;
        padding: 6px 16px;
    }
    
    .ai-directory {
        padding: 60px 0;
    }
    
    .ai-directory-search-container {
        max-width: 100%;
        margin: 40px auto;
    }
}

/* ========================================
   8. RESPONSIVE DESIGN - MOBILE
   ======================================== */
@media (max-width: 640px) {
    section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-description {
        font-size: 15px;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .ai-directory {
        padding: 50px 0;
    }
    
    .ai-directory-search-container {
        margin: 30px auto;
    }
    
    /* Stack search form vertically on mobile */
    .ai-search-form-wrapper {
        flex-direction: column;
        gap: 12px;
    }
    
    .ai-quick-search-input {
        padding: 16px 20px 16px 50px;
        font-size: 15px;
    }
    
    .ai-search-button {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
    }
    
    .ai-info-text {
        font-size: 14px;
    }
    
    .ai-browse-link {
        font-size: 13px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .btn-large {
        padding: 14px 28px;
        font-size: 16px;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* ========================================
   9. ADDITIONAL UTILITY CLASSES
   ======================================== */

/* Smooth transitions for all interactive elements */
a, button, input {
    transition: all 0.3s ease;
}

/* Focus states for accessibility */
input:focus,
button:focus,
a:focus {
    outline: 2px solid var(--electric-purple);
    outline-offset: 2px;
}

/* Prevent text selection on buttons */
button {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

/* Smooth scroll for anchor links */
html {
    scroll-behavior: smooth;
}

