:root {
    --primary-color: #B533FF;
    --primary-light: #D285FF;
    --primary-dark: #8F00E6;
    --text-color: #333333;
    --bg-light: #F8F9FA;
    --transition-speed: 0.3s;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

/* Header Styles */
.navbar {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    color: var(--primary-color) !important;
    font-weight: bold;
}

/* Search Section */
.search-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 3rem 0;
}

.search-container {
    position: relative;
}

#toolSearch {
    border-radius: 50px;
    padding: 1rem 1.5rem;
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: none;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

/* Tool Cards */
.tool-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    height: 100%;
    cursor: pointer;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.tool-card .card-body {
    padding: 1.5rem;
}

.tool-card .tool-icon {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.tool-card .card-title {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Category Filters */
.category-filters .btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.category-filters .btn-outline-primary:hover,
.category-filters .btn-outline-primary.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Ad Containers */
.ad-container-top,
.ad-container-middle {
    background-color: var(--bg-light);
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem 0;
}

/* Featured Tools Section */
.featured-tools {
    background-color: var(--bg-light);
}

.section-title {
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Footer */
footer {
    background-color: #2C2C2C;
    color: white;
    padding: 3rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-section {
        padding: 2rem 0;
    }
    
    .tool-card {
        margin-bottom: 1rem;
    }
    
    .category-filters {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 1rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tool-card {
    animation: fadeIn 0.5s ease-out;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #ffffff;
    }

    .tool-card {
        background-color: #2c2c2c;
    }

    .tool-card .card-title {
        color: #ffffff;
    }
} 