/* =========================================
   LigoGame - Magic Tools
   سایدبار + بخش اصلی
========================================= */

/* ---------- سایدبار ابزارها ---------- */
.sidebar-tools-box {
    background: #ffffff;
    border-radius: 24px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(20, 184, 166, 0.08);
    border: 2px solid #ccfbf1;
    margin-bottom: 16px;
    direction: rtl;
    font-family: "Vazirmatn", sans-serif;
}

.st-header {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 2px dashed #99f6e4;
}

.st-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.st-icon {
    font-size: 22px;
}

.st-title {
    font-size: 16px;
    font-weight: 900;
    color: #115e59;
    margin: 0;
}

.st-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.st-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 16px;
    background: #f8fafc;
    border: 2px solid #f1f5f9;
    text-decoration: none;
    transition: all 0.2s ease;
}

.st-item:hover {
    transform: translateX(-4px);
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    border-color: #e2e8f0;
}

.st-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.st-item-title {
    flex: 1;
    font-size: 13px;
    font-weight: 800;
    color: #334155;
}

.st-item-arrow {
    font-size: 18px;
    font-weight: 900;
    color: #94a3b8;
    transition: all 0.2s ease;
}

.st-item:hover .st-item-arrow {
    color: #0f766e;
    transform: translateX(-3px);
}

/* ---------- بخش اصلی ابزارها (اگر در content استفاده شود) ---------- */
.magic-tools-container {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 28px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: inset 0 2px 10px rgba(255, 255, 255, 0.8), 0 10px 25px rgba(0, 0, 0, 0.05);
    direction: rtl;
    font-family: "Vazirmatn", sans-serif;
    border: 1px solid #cbd5e1;
}

.mt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px dashed #cbd5e1;
}

.mt-title-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mt-icon {
    font-size: 26px;
}

.mt-title {
    font-size: 18px;
    font-weight: 900;
    color: #1e293b;
    margin: 0;
}

.mt-desc {
    font-size: 11px;
    color: #475569;
    margin: 0;
    font-weight: 800;
    background: #ffffff;
    padding: 4px 10px;
    border-radius: 10px;
}

.mt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 14px;
}

.mt-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    border: 2px solid #ffffff;
    transition: all 0.3s ease;
}

.mt-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.15);
    border-color: #c7d2fe;
}

.mt-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    overflow: hidden;
    background: #f1f5f9;
    margin-bottom: 10px;
}

.mt-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mt-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.mt-name {
    font-size: 13px;
    font-weight: 900;
    color: #0f172a;
    margin: 0;
}

.mt-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 8px;
    width: 100%;
    background: #f1f5f9;
    color: #475569;
}

/* ---------- موبایل ---------- */
@media (max-width: 768px) {
    .sidebar-tools-box {
        padding: 14px;
        border-radius: 20px;
    }

    .magic-tools-container {
        padding: 14px;
        border-radius: 20px;
    }

    .mt-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}