﻿/* 💜 پس‌زمینه ملایم بنفش */
body {
    background: #f9f5ff;
}

.tools-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* 🧭 هدر */
.tools-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.home-button {
    background: linear-gradient(90deg, #7c3aed, #a855f7);
    color: white;
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}

    .home-button:hover {
        background: linear-gradient(90deg, #6d28d9, #9333ea);
        transform: translateY(-2px);
    }

/* عنوان */
.tools-title {
    text-align: center;
    font-weight: 800;
    color: #4c1d95;
    font-size: 2rem;
    flex-grow: 1;
    margin: 0;
}

/* 🔍 جستجو */
.search-box {
    display: flex;
    align-items: center;
    position: relative;
    max-width: 400px;
    flex-grow: 1;
}

    .search-box input {
        width: 100%;
        padding: 10px 15px 10px 38px;
        border-radius: 12px;
        border: 1px solid #ccc;
        transition: all 0.2s ease;
        background-color: white;
    }

.search-icon {
    position: absolute;
    left: 12px;
    font-size: 1.1rem;
    color: #7c3aed;
}

.search-box input:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
    outline: none;
}

/* 📦 شبکه ابزارها */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* 🎴 کارت‌ها */
.tool-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
}

    .tool-card:hover {
        background: #f3e8ff; /* بنفش خیلی ملایم در حالت هاور */
        transform: translateY(-6px);
        box-shadow: 0 12px 32px rgba(91, 33, 182, 0.15);
    }

.tool-content {
    flex-grow: 1;
}

.tool-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.tool-title {
    font-weight: 700;
    color: #5b21b6;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.tool-desc {
    color: #4b5563;
    font-size: 0.95rem;
    min-height: 45px;
}

.tool-arrow {
    font-size: 1.4rem;
    color: #7c3aed;
    align-self: flex-end;
    margin-top: 1rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.tool-card:hover .tool-arrow {
    transform: translateX(3px) translateY(-3px);
    color: #5b21b6;
}

/* 📱 موبایل */
@media (max-width: 768px) {
    .tools-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .home-button {
        width: 100%;
    }

    .search-box {
        max-width: 100%;
    }
}
