
/* Tools Section Styles */
.tools-showcase {
    padding: 5rem 0;
    background: white;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.tool-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    animation: fadeInUp 0.5s ease-out;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.tool-icon {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    position: relative;
    overflow: hidden;
}

.tool-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.tool-card:hover .tool-icon::before {
    transform: translateX(100%);
}

.tool-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.tool-card:hover .tool-icon img {
    transform: scale(1.1);
}

.tool-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin: 1.5rem 1.5rem 0.5rem;
}

.tool-description {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0 1.5rem;
}

.tool-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1.5rem;
    color: #2563eb;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.tool-link:hover {
    color: #1d4ed8;
}

.link-icon {
    width: 1rem;
    height: 1rem;
    transition: transform 0.3s ease;
}

.tool-link:hover .link-icon {
    transform: translateX(2px);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.5s ease-out;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.section-icon {
    width: 2rem;
    height: 2rem;
    color: #2563eb;
}

.section-description {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

.section-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Tools Page Specific Styles */
.tools-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    align-items: center;
}

.search-container {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    color: #6b7280;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.filter-container {
    min-width: 200px;
}

.filter-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Featured Tools */
.featured-tools {
    margin-bottom: 4rem;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.featured-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
    border-color: #2563eb;
}

.featured-content {
    padding: 1.5rem;
}

.featured-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.featured-description {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.featured-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.featured-category {
    font-size: 0.75rem;
    font-weight: 500;
    color: #2563eb;
    background: #dbeafe;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

.featured-popularity {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #059669;
}

.popularity-icon {
    width: 1rem;
    height: 1rem;
}

.featured-button {
    width: 100%;
    padding: 0.75rem;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.featured-button:hover {
    background: #1d4ed8;
}

/* Tool Categories */
.tool-categories {
    margin-bottom: 4rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.category-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
}

.category-icon {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.category-icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon img {
    transform: scale(1.1);
}

.category-content {
    padding: 1.5rem;
}

.category-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.category-description {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.category-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.category-count {
    font-size: 0.875rem;
    color: #6b7280;
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #2563eb;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-link:hover {
    color: #1d4ed8;
}

/* Request Tool CTA */
.request-tool-cta {
    background: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 100%);
    border-radius: 1rem;
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 4rem;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .featured-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .tools-showcase {
        padding: 3rem 0;
    }
    
    .tools-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-container {
        max-width: 100%;
    }
    
    .filter-container {
        min-width: 100%;
    }
    
    .section-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .tool-icon {
        height: 150px;
    }
    
    .tool-icon img {
        width: 60px;
        height: 60px;
    }
    
    .category-icon {
        height: 150px;
    }
    
    .category-icon img {
        width: 48px;
        height: 48px;
    }
    
    .request-tool-cta {
        padding: 2rem 1rem;
    }
    
    .cta-title {
        font-size: 1.5rem;
    }
    
    .cta-description {
        font-size: 1rem;
    }
}

@media (max-width: 640px) {
    .tools-showcase {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .tool-card {
        margin-bottom: 1rem;
    }
    
    .tool-icon {
        height: 120px;
    }
    
    .tool-icon img {
        width: 48px;
        height: 48px;
    }
    
    .category-icon {
        height: 120px;
    }
    
    .category-icon img {
        width: 40px;
        height: 40px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .tool-card,
    .featured-card,
    .category-card {
        background: #1f2937;
        border-color: #374151;
    }
    
    .tool-title,
    .featured-title,
    .category-title {
        color: #f9fafb;
    }
    
    .tool-description,
    .featured-description,
    .category-description {
        color: #d1d5db;
    }
    
    .tool-icon,
    .category-icon {
        background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    }
}
