/* Tools Page Specific Styles */
.tools-hero {
    padding: 100px 0;
    background: linear-gradient(135deg, #e6f4ff 0%, #d0e3ff 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tools-hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.tools-hero p {
    font-size: 20px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto 40px;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-container input {
    width: 100%;
    padding: 15px 20px;
    border-radius: 50px;
    border: 1px solid var(--light-gray);
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.search-container button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.search-container button:hover {
    background: #0d5cb6;
}

.tools-filter {
    padding: 30px 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tools-filter .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--light-gray);
    background: white;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-options label {
    color: var(--gray);
    font-size: 14px;
}

.sort-options select {
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid var(--light-gray);
    background: white;
    color: var(--dark);
}

.tools-section {
    background: #f9fbfd;
}

.recent-tools {
    background: white;
}

.recent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.recent-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    display: flex;
    align-items: center;
    padding: 15px;
    gap: 15px;
}

.recent-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.recent-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: #e8f0fe;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 20px;
}

.recent-content {
    flex-grow: 1;
}

.recent-content h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.recent-content p {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 0;
}

.recent-time {
    color: var(--gray);
    font-size: 12px;
    font-style: italic;
}

/* New badge for tools */
.new-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent);
    color: white;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.tool-card.new-tool {
    position: relative;
    border: 2px solid rgba(251, 188, 5, 0.3);
}

.no-results {
    text-align: center;
    grid-column: 1 / -1;
    font-size: 18px;
    color: var(--gray);
    padding: 40px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tools-hero {
        padding: 70px 0;
    }
    
    .tools-hero h1 {
        font-size: 36px;
    }
    
    .tools-filter .container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-options {
        width: 100%;
    }
    
    .sort-options {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 480px) {
    .tools-hero h1 {
        font-size: 28px;
    }
    
    .tools-hero p {
        font-size: 16px;
    }
}