/* Search Agent Category Suggestions - Styles */

.search-agent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.search-agent-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.search-agent-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    margin-top: 80px;
}

.search-agent-overlay.visible .search-agent-container {
    transform: translateY(0);
}

.search-agent-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.search-agent-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.3;
}

.search-agent-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
    line-height: 1;
}

.search-agent-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.search-agent-content {
    padding: 24px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.category-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    cursor: pointer;
}

.category-card:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
}

.category-icon {
    font-size: 32px;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.category-info {
    flex: 1;
    min-width: 0;
}

.category-info h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.3;
}

.category-info p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

.search-agent-fallback {
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.fallback-button {
    background: none;
    border: 2px solid #e5e7eb;
    color: #6b7280;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fallback-button:hover {
    border-color: #d1d5db;
    color: #374151;
    background: #f9fafb;
}

/* Responsive design */
@media (max-width: 768px) {
    .search-agent-overlay {
        padding: 12px;
    }
    
    .search-agent-container {
        margin-top: 60px;
        max-height: 85vh;
    }
    
    .search-agent-header {
        padding: 20px 20px 16px;
    }
    
    .search-agent-header h3 {
        font-size: 20px;
    }
    
    .search-agent-content {
        padding: 20px;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .category-card {
        padding: 16px;
        gap: 12px;
    }
    
    .category-icon {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .category-info h4 {
        font-size: 16px;
    }
    
    .category-info p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .search-agent-overlay {
        padding: 8px;
    }
    
    .search-agent-container {
        border-radius: 8px;
        margin-top: 40px;
    }
    
    .search-agent-header {
        padding: 16px 16px 12px;
    }
    
    .search-agent-header h3 {
        font-size: 18px;
    }
    
    .search-agent-content {
        padding: 16px;
    }
    
    .category-card {
        padding: 12px;
        gap: 10px;
    }
    
    .category-icon {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
}

/* Integration with Webflow search styles */
.search-agent-overlay * {
    box-sizing: border-box;
}

/* Ensure overlay appears above Webflow elements */
.search-agent-overlay {
    z-index: 999999 !important;
}

/* Animation improvements */
@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.search-agent-overlay.visible .category-card {
    animation: slideInUp 0.3s ease forwards;
}

.search-agent-overlay.visible .category-card:nth-child(1) { animation-delay: 0.05s; }
.search-agent-overlay.visible .category-card:nth-child(2) { animation-delay: 0.1s; }
.search-agent-overlay.visible .category-card:nth-child(3) { animation-delay: 0.15s; }
.search-agent-overlay.visible .category-card:nth-child(4) { animation-delay: 0.2s; }
.search-agent-overlay.visible .category-card:nth-child(5) { animation-delay: 0.25s; }